diff options
author | John Tytgat <joty@netsurf-browser.org> | 2006-01-05 21:54:47 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2006-01-05 21:54:47 +0000 |
commit | 6573d2c484ba089b510e4bee4d06cc08124b08c3 (patch) | |
tree | bdd7832802d338afbb1d72cb8885dd25696b5e5a | |
parent | 2307ea0cd73b0506f032e7ea6656ae1aec19dab7 (diff) | |
download | libpencil-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-- | makefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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 |