All pastes #491315 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-16 16:08 UTC
rendered paste body
CC=gcc

STRIP=strip

WARN=-Wall -W -ansi -pedantic

CFLAGS=-Os -march=pentium3 -fomit-frame-pointer -pipe ${WARN}

LDFLAGS=-Wl,-O1,-s

INCLUDES=`sdl-config --cflags`

LIBRARIES=`sdl-config --libs` -lSDL_ttf -lSDL_image

EXT=.exe



EXE=pong${EXT}



OBJS=pong.o color.o text.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 $@ $<