diff options
-rwxr-xr-x | make | 5 | ||||
-rw-r--r-- | makefile | 36 |
2 files changed, 36 insertions, 5 deletions
@@ -1,5 +0,0 @@ -./makeglyphs < Glyphs > rufl_glyph_map.c - -/home/riscos/cross/bin/gcc -std=c99 -W -Wall -Wundef -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-unused-parameter -mpoke-function-name -I/home/riscos/env/include -L/home/riscos/env/lib -loslib -o rufl_test,ff8 rufl_test.c rufl_init.c rufl_quit.c rufl_dump_state.c rufl_character_set_test.c rufl_substitution_lookup.c rufl_paint.c rufl_glyph_map.c - -/home/riscos/cross/bin/gcc -std=c99 -O3 -W -Wall -Wundef -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-unused-parameter -mpoke-function-name -I/home/riscos/env/include -L/home/riscos/env/lib -loslib -o rufl_chars,ff8 rufl_chars.c rufl_init.c rufl_quit.c rufl_dump_state.c rufl_character_set_test.c rufl_substitution_lookup.c rufl_paint.c rufl_glyph_map.c diff --git a/makefile b/makefile new file mode 100644 index 0000000..1468de9 --- /dev/null +++ b/makefile @@ -0,0 +1,36 @@ +# +# This file is part of RUfl +# Licensed under the MIT License, +# http://www.opensource.org/licenses/mit-license +# Copyright 2005 James Bursa <james@semichrome.net> +# + +CC = /home/riscos/cross/bin/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 + +SOURCE = rufl_init.c rufl_quit.c rufl_dump_state.c \ + rufl_character_set_test.c rufl_substitution_lookup.c \ + rufl_paint.c rufl_glyph_map.c + +all: rufl.o rufl_test,ff8 rufl_chars,ff8 + +rufl.o: $(SOURCE) Glyphs + $(CC) $(CFLAGS) -c -o $@ $(SOURCE) + +rufl_glyph_map.c: Glyphs + ./makeglyphs < $^ > $@ + +rufl_test,ff8: rufl_test.c rufl.o + $(CC) $(CFLAGS) $(LIBS) -o $@ $^ + +rufl_chars,ff8: rufl_chars.c rufl.o + $(CC) $(CFLAGS) $(LIBS) -o $@ $^ + + +clean: + -rm rufl.o rufl_glyph_map.c rufl_test,ff8 rufl_chars,ff8 |