summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2006-08-03 22:55:17 +0000
committerMatt Turner <mattst88@gmail.com>2006-08-03 22:55:17 +0000
commitd680d25c6a10678f0c999ade1041e363b0df7e91 (patch)
treee83fdf7d6f9bba468915f237a93dd68041ae11d9 /Makefile
parent6038164bf457873d51a825ff48cf50f6080ff818 (diff)
Code Import
git-svn-id: svn://mattst88.com/svn/glpong/trunk@2 449aeecc-241a-0410-943f-e2f883e2d7a2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..de596c5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+CC=gcc
+STRIP=strip
+WARN=-Wall -W -ansi -pedantic
+CFLAGS=-Os -pipe -std=c99 ${WARN}
+LDFLAGS=-Wl,-O1,-s
+INCLUDES=`sdl-config --cflags`
+LIBRARIES=`sdl-config --libs` -lSDL_image -lGL
+EXT=.exe
+
+EXE=glpong${EXT}
+
+OBJS=glpong.o ball.o paddle.o
+
+all: ${OBJS}
+ ${CC} ${LDFLAGS} ${OBJS} -o ${EXE} ${LIBRARIES}
+
+clean:
+ rm -f ${OBJS}
+ rm -f ${EXE}
+
+rebuild: clean all
+remake: rebuild
+
+%.o: %.c
+ ${CC} ${CFLAGS} ${INCLUDES} -c -o $@ $<
+ \ No newline at end of file