diff options
author | Matt Turner <mattst88@gmail.com> | 2007-12-04 18:36:23 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2007-12-04 18:36:23 +0000 |
commit | 0e0bc15ac984dc5f5a96e346491c7e799d37baf1 (patch) | |
tree | a1791912ff3d0452ff1181a50793cf40e1b9a7bf /Makefile | |
parent | 06a8f078d427e4fd8ce9fd578344a2e29bbe872a (diff) |
redo branch is now trunk.
git-svn-id: svn://mattst88.com/svn/glpong/trunk@8 449aeecc-241a-0410-943f-e2f883e2d7a2
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 53 |
1 files changed, 27 insertions, 26 deletions
@@ -1,26 +1,27 @@ -CC=gcc
-STRIP=strip
-WARN=-Wall -W -ansi -pedantic
-CFLAGS=-Os -pipe -std=c99 ${WARN} -g
-LDFLAGS=-Wl,-O1
-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 $@ $<
-
+CC=gcc +STRIP=strip +WARN=-Wall -W -ansi -pedantic +DEFINES=-DINLINE=inline +CFLAGS=-Os -pipe -std=c99 -g ${DEFINES} -Wall #${WARN} +LDFLAGS=-Wl,-O1 +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 $@ $< + |