From 0e0bc15ac984dc5f5a96e346491c7e799d37baf1 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 4 Dec 2007 18:36:23 +0000 Subject: redo branch is now trunk. git-svn-id: svn://mattst88.com/svn/glpong/trunk@8 449aeecc-241a-0410-943f-e2f883e2d7a2 --- Makefile | 53 +++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8333d28..69f36fb 100644 --- a/Makefile +++ b/Makefile @@ -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 $@ $< + -- cgit v1.2.3