diff options
author | Matt Turner <mattst88@gmail.com> | 2008-02-23 05:42:32 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-02-23 05:42:32 +0000 |
commit | e510996901c57f36f226d0eec3c929fb8b69b8e0 (patch) | |
tree | 7fa347e74b00812c7fabf03476d4583c192ceea3 /Makefile | |
parent | 78002dcadcad1317a22277684e7f5675f568038c (diff) |
Use inline-asm only with gcc. Add fallback for other compilers
git-svn-id: svn://mattst88.com/svn/glpong3d/trunk@19 4dd1920e-271a-0410-bca0-81b404a81564
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 50 |
1 files changed, 25 insertions, 25 deletions
@@ -1,26 +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 -lSDL_net -lGL -lGLU -lGLC
-EXT=.exe
-
-EXE=glpong3d${EXT}
-
-OBJS=glpong3d.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 +CFLAGS=-g -Os -pipe -std=c99 ${WARN} +LDFLAGS=-Wl,-O1,-s +INCLUDES=`sdl-config --cflags` +LIBRARIES=`sdl-config --libs` -lSDL_image -lSDL_net -lGL -lGLU -lGLC +EXT=.exe + +EXE=glpong3d${EXT} + +OBJS=glpong3d.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 $@ $< |