summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2006-01-05 21:52:44 (GMT)
committer John Tytgat <joty@netsurf-browser.org>2006-01-05 21:52:44 (GMT)
commitc94e41097c99b51fc95ee36c91149e6b69ff1abe (patch)
treee59b0dcc2b352de84c9cad8a3099545f41dd20fa
parent48ac730696ef6d89eda6fd8edcc6961004242b2a (diff)
downloadlibrufl-c94e41097c99b51fc95ee36c91149e6b69ff1abe.tar.gz
librufl-c94e41097c99b51fc95ee36c91149e6b69ff1abe.tar.bz2
[project @ 2006-01-05 21:52:44 by joty]
Using GCCSDK_INSTALL_ENV/GCCSDK_INSTALL_CROSSBIN and provided install target svn path=/import/rufl/; revision=2467
-rw-r--r--makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/makefile b/makefile
index ca7c541..12985d7 100644
--- a/makefile
+++ b/makefile
@@ -16,19 +16,27 @@ SOURCE = rufl_init.c rufl_quit.c rufl_dump_state.c \
ifeq ($(COMPILER), gcc)
-# cross-compiling using gccsdk
-CC = /home/riscos/cross/bin/gcc
+# cross-compiling using GCCSDK
+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-unused-parameter \
- -mpoke-function-name -I/home/riscos/env/include
-LIBS = -L/home/riscos/env/lib -loslib
+ -mpoke-function-name -I$(GCCSDK_INSTALL_ENV)/include
+LIBS = -L$(GCCSDK_INSTALL_ENV)/lib -lOSLib32
+INSTALL = $(GCCSDK_INSTALL_ENV)/ro-install
all: rufl.o rufl_test,ff8 rufl_chars,ff8
+
rufl.o: $(SOURCE) rufl.h rufl_internal.h Glyphs
$(CC) $(CFLAGS) -c -o $@ $(SOURCE)
+install: rufl.o
+ $(INSTALL) rufl.o $(GCCSDK_INSTALL_ENV)/lib/librufl.o
+ $(INSTALL) rufl.h $(GCCSDK_INSTALL_ENV)/include/rufl.h
else
# compiling on RISC OS using Norcroft
CC = cc