diff options
author | Matt Turner <mattst88@gmail.com> | 2006-08-04 01:36:55 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2006-08-04 01:36:55 +0000 |
commit | c64c44b72db943b213d6dce03d4253528d13be92 (patch) | |
tree | c6990f788b1223584672b15b72167b145e50de3d /Makefile | |
parent | 1509e83602e81648f6457b6faaed7fcf99c7c5e9 (diff) |
git-svn-id: svn://mattst88.com/svn/glpong3d/trunk@2 4dd1920e-271a-0410-bca0-81b404a81564
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..4ff56b7 --- /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 -lGLU
+EXT=.exe
+
+EXE=glpong3d${EXT}
+
+OBJS=glpong3d.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 |