diff options
author | Matt Turner <mattst88@gmail.com> | 2006-08-04 00:56:19 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2006-08-04 00:56:19 +0000 |
commit | f6997ebd1de555916c491dbd603f7a0e9c1d9c58 (patch) | |
tree | 23645695bcf2c9ddd154d004dfe09693139ffbf0 /Makefile | |
parent | f2837ef813150240c00741018542dc271213ff5c (diff) |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c6abdc8 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +CC=gcc
+STRIP=strip
+WARN=-Wall -W -ansi -pedantic
+CFLAGS=-Os -march=pentium3 -fomit-frame-pointer -pipe ${WARN}
+LDFLAGS=-Wl,-O1,-s
+INCLUDES=`sdl-config --cflags`
+LIBRARIES=`sdl-config --libs` -lSDL_ttf -lSDL_image
+EXT=.exe
+
+EXE=pong${EXT}
+
+OBJS=pong.o color.o text.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 |