summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-02-17 20:50:53 +0000
committerJames Bursa <james@netsurf-browser.org>2005-02-17 20:50:53 +0000
commit0a3d61162504861df4f14b624e5b2efc9b2b34fc (patch)
treead05842df2a3344fcabfb65c4d68bbe8d7f7aaa6
parent8a7d90bd8b43ac9dca499aa613f624a952bdf4d7 (diff)
downloadlibrufl-0a3d61162504861df4f14b624e5b2efc9b2b34fc.tar.gz
librufl-0a3d61162504861df4f14b624e5b2efc9b2b34fc.tar.bz2
[project @ 2005-02-17 20:50:53 by bursa]
Write a proper makefile. svn path=/import/rufl/; revision=2447
-rwxr-xr-xmake5
-rw-r--r--makefile36
2 files changed, 36 insertions, 5 deletions
diff --git a/make b/make
deleted file mode 100755
index 1ef3634..0000000
--- a/make
+++ /dev/null
@@ -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