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 -lGLC EXT=.exe EXE=glpong${EXT} OBJS=glpong.o ball.o text.o fps.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 $@ $<