summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2006-01-05 21:54:47 (GMT)
committer John Tytgat <joty@netsurf-browser.org>2006-01-05 21:54:47 (GMT)
commit6573d2c484ba089b510e4bee4d06cc08124b08c3 (patch)
treebdd7832802d338afbb1d72cb8885dd25696b5e5a
parent2307ea0cd73b0506f032e7ea6656ae1aec19dab7 (diff)
downloadlibpencil-6573d2c484ba089b510e4bee4d06cc08124b08c3.tar.gz
libpencil-6573d2c484ba089b510e4bee4d06cc08124b08c3.tar.bz2
[project @ 2006-01-05 21:54:47 by joty]
Using GCCSDK_INSTALL_ENV/GCCSDK_INSTALL_CROSSBIN and provided install target svn path=/import/pencil/; revision=2478
-rw-r--r--makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/makefile b/makefile
index 5160b9d..ef4dbd0 100644
--- a/makefile
+++ b/makefile
@@ -7,13 +7,17 @@
SOURCE = pencil_build.c pencil_save.c
-CC = /home/riscos/cross/bin/gcc
+GCCSDK_INSTALL_CROSSBIN ?= /home/riscos/cross/bin
+GCCSDK_INSTALL_ENV ?= /home/riscos/env
+
+CC = $(GCCSDK_INSTALL_CROSSBIN)/gcc
CFLAGS = -std=c99 -O3 -W -Wall -Wundef -Wpointer-arith -Wcast-qual \
-Wcast-align -Wwrite-strings -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations \
-Wnested-externs -Winline -Wno-cast-align \
- -mpoke-function-name -I/home/riscos/env/include
-LIBS = -L/home/riscos/env/lib -loslib -lrufl
+ -mpoke-function-name -I$(GCCSDK_INSTALL_ENV)/include
+LIBS = -L$(GCCSDK_INSTALL_ENV)/lib -lOSLib32 -lrufl
+INSTALL = $(GCCSDK_INSTALL_ENV)/ro-install
all: pencil.o pencil_test,ff8
@@ -23,5 +27,9 @@ pencil.o: $(SOURCE) pencil.h pencil_internal.h
pencil_test,ff8: pencil_test.c pencil.o
$(CC) $(CFLAGS) $(LIBS) -o $@ $^
+install: pencil.o
+ $(INSTALL) pencil.o $(GCCSDK_INSTALL_ENV)/lib/libpencil.o
+ $(INSTALL) pencil.h $(GCCSDK_INSTALL_ENV)/include/pencil.h
+
clean:
-rm pencil.o pencil_test,ff8