summaryrefslogtreecommitdiff
path: root/trunk/Makefile
diff options
context:
space:
mode:
authorJames Shaw <jshaw@netsurf-browser.org>2007-11-25 19:04:32 +0000
committerJames Shaw <jshaw@netsurf-browser.org>2007-11-25 19:04:32 +0000
commit2da03295d0d851c06cc3e9cd84489eeb8843650a (patch)
treea356fd1bb501a69c9466101296391a6f7a25f340 /trunk/Makefile
parent620fb7b285d3f3b7801eb11be3cea1660d3b97cf (diff)
downloadlibrosprite-2da03295d0d851c06cc3e9cd84489eeb8843650a.tar.gz
librosprite-2da03295d0d851c06cc3e9cd84489eeb8843650a.tar.bz2
Split libsprite and test harness. Populate sprite->image.
svn path=/import/jshaw/libsprite/; revision=9987
Diffstat (limited to 'trunk/Makefile')
-rw-r--r--trunk/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/trunk/Makefile b/trunk/Makefile
new file mode 100644
index 0000000..62702de
--- /dev/null
+++ b/trunk/Makefile
@@ -0,0 +1,18 @@
+AR = ar
+CC = gcc
+LD = gcc
+ARFLAGS = -cru
+CFLAGS = -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \
+ -Wwrite-strings \
+ -Wnested-externs -Werror -pedantic -std=c99
+LDFLAGS = -L./
+#-Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes
+
+example: libsprite.a example.o
+ ${LD} -g -o $@ example.o ${LDFLAGS} -lsprite
+
+libsprite.a: libsprite.o
+ ${AR} ${ARFLAGS} libsprite.a libsprite.o
+
+%.o: %.c
+ ${CC} -c -g ${CFLAGS} -o $@ $< \ No newline at end of file