From e510996901c57f36f226d0eec3c929fb8b69b8e0 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 23 Feb 2008 05:42:32 +0000 Subject: 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 --- Makefile | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c95d7ef..eed7203 100644 --- a/Makefile +++ b/Makefile @@ -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 $@ $< -- cgit v1.2.3