diff options
author | James Bursa <james@netsurf-browser.org> | 2005-05-01 10:19:59 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-05-01 10:19:59 +0000 |
commit | 18781a787eb8aca7dc19d53189a7ef65856bb746 (patch) | |
tree | b10695345b705315da7945cd79a32e606bf26fc2 /makefile | |
parent | a13b4fc11cdeee628d92fd6d734ed0f5ffa497fc (diff) | |
download | librufl-18781a787eb8aca7dc19d53189a7ef65856bb746.tar.gz librufl-18781a787eb8aca7dc19d53189a7ef65856bb746.tar.bz2 |
[project @ 2005-05-01 10:19:59 by bursa]
Add Python module. Add support for compiling with Norcroft (mainly required for the Python module).
svn path=/import/rufl/; revision=2463
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 44 |
1 files changed, 39 insertions, 5 deletions
@@ -5,6 +5,18 @@ # Copyright 2005 James Bursa <james@semichrome.net> # +# choose one of the two below +COMPILER = gcc +#COMPILER = norcroft + + +SOURCE = rufl_init.c rufl_quit.c rufl_dump_state.c \ + rufl_character_set_test.c \ + rufl_paint.c rufl_glyph_map.c rufl_invalidate_cache.c + + +ifeq ($(COMPILER), gcc) +# cross-compiling using gccsdk CC = /home/riscos/cross/bin/gcc CFLAGS = -std=c99 -O3 -W -Wall -Wundef -Wpointer-arith -Wcast-qual \ -Wcast-align -Wwrite-strings -Wstrict-prototypes \ @@ -13,15 +25,37 @@ CFLAGS = -std=c99 -O3 -W -Wall -Wundef -Wpointer-arith -Wcast-qual \ -mpoke-function-name -I/home/riscos/env/include LIBS = -L/home/riscos/env/lib -loslib -SOURCE = rufl_init.c rufl_quit.c rufl_dump_state.c \ - rufl_character_set_test.c \ - rufl_paint.c rufl_glyph_map.c rufl_invalidate_cache.c - all: rufl.o rufl_test,ff8 rufl_chars,ff8 - rufl.o: $(SOURCE) rufl.h rufl_internal.h Glyphs $(CC) $(CFLAGS) -c -o $@ $(SOURCE) +else +# compiling on RISC OS using Norcroft +CC = cc +CFLAGS = -fn -ecz -wap -IOSLib: -DNDEBUG +LD = link +LDFLAGS = -aof +LIBS = OSLib:o.oslib32 +MKDLK = makedlk +SOURCE += strfuncs.c + +all: rufl.o rufl/pyd rufl_test,ff8 rufl_chars,ff8 +rufl.o: o.rufl +o.rufl: $(OBJS) rufl.h rufl_internal.h Glyphs + $(LD) $(LDFLAGS) -o $@ $(OBJS) +o.ruflmodule: ruflmodule.o rufl.o + $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) +ruflmodule.o: ruflmodule.c + $(CC) -fn -wp -IPyInc:Include,PyInc:RISCOS,TCPIPLibs:,OSLib: -c $@ $< +rufl/pyd: o.ruflmodule + $(MKDLK) -s <Python$$Dir>.RISCOS.s.linktab -o $< -d $@ -e initrufl +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< + +endif + + +# common rules rufl_glyph_map.c: Glyphs makeglyphs ./makeglyphs < Glyphs > $@ |