changed makefile to create a debuggable binary
[gl-cairo-simple.git] / makefile
blobba439c155d2f60ab617e9f95ba91f163bc9c7252
1 APP = gl-cairo-simple
3 CC = gcc
5 CFLAGS = -Wall -c -g \
6 `sdl-config --cflags` \
7 `pkg-config --cflags cairo`
9 LDFLAGS = `sdl-config --libs` \
10 `pkg-config --libs cairo` \
11 -lGL -lGLU -lm
13 SRCS = geometry.c \
14 opengl-rendering.c \
15 cairo-rendering.c \
16 main.c
18 OBJS = $(SRCS:.c=.o)
20 all: $(APP)
22 .c.o:
23 $(CC) $(CFLAGS) -c $< -o $@
25 # it is important that $(OBJS) stands _before_ $(LDFLAGS)
26 $(APP): $(OBJS)
27 $(CC) $(OBJS) $(LDFLAGS) -o$(APP)
29 clean:
30 rm *.o *~ $(APP) frame.png