summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-11-20 20:04:28 +0000
committerJames Bursa <james@netsurf-browser.org>2005-11-20 20:04:28 +0000
commitdfce56be0d92c9859cb6ee5462dc7ce695311d8d (patch)
tree38493167a8a21e9530f04a02b822fd1048033188 /makefile
downloadlibpencil-dfce56be0d92c9859cb6ee5462dc7ce695311d8d.tar.gz
libpencil-dfce56be0d92c9859cb6ee5462dc7ce695311d8d.tar.bz2
[project @ 2005-11-20 20:04:28 by bursa]
Initial revision svn path=/import/pencil/; revision=2475
Diffstat (limited to 'makefile')
-rw-r--r--makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..5160b9d
--- /dev/null
+++ b/makefile
@@ -0,0 +1,27 @@
+#
+# This file is part of Pencil
+# Licensed under the MIT License,
+# http://www.opensource.org/licenses/mit-license
+# Copyright 2005 James Bursa <james@semichrome.net>
+#
+
+SOURCE = pencil_build.c pencil_save.c
+
+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-cast-align \
+ -mpoke-function-name -I/home/riscos/env/include
+LIBS = -L/home/riscos/env/lib -loslib -lrufl
+
+all: pencil.o pencil_test,ff8
+
+pencil.o: $(SOURCE) pencil.h pencil_internal.h
+ $(CC) $(CFLAGS) -c -o $@ $(SOURCE)
+
+pencil_test,ff8: pencil_test.c pencil.o
+ $(CC) $(CFLAGS) $(LIBS) -o $@ $^
+
+clean:
+ -rm pencil.o pencil_test,ff8