summaryrefslogtreecommitdiff
path: root/trunk/Makefile
diff options
context:
space:
mode:
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