summaryrefslogtreecommitdiff
path: root/Makefile
blob: fe425b8c21522438170859e80305b45b4d652614 (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
CC=gcc
STRIP=strip
WARN=-Wall -W -ansi -pedantic -DDEBUG
CFLAGS=-ggdb -g3 -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 fps.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 $@ $<