summaryrefslogtreecommitdiff
path: root/Makefile
blob: c809dfc88428eeee5989bbbfb841ac63836dccee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CC=gcc
STRIP=strip
WARN=-Wall -W -pedantic
DEFINES=-DINLINE=__inline__ -DDEBUG=1
CFLAGS=-Os -pipe -std=c99 -g ${DEFINES} ${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 $@ $<