From 6573d2c484ba089b510e4bee4d06cc08124b08c3 Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Thu, 5 Jan 2006 21:54:47 +0000 Subject: [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 --- makefile | 14 +++++++++++--- 1 file 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 -- cgit v1.2.3