made sure the windows back-pixmap is NULL
[gl-cairo-cube.git] / makefile
blob596fc38c9755c59673113359d387d15ec7699797
1 APP = gl-cairo-cube
3 CC = gcc
5 CFLAGS = -Wall -c -O3 -std=c99 \
6 `pkg-config --cflags gtkglext-1.0`
8 LDFLAGS = `pkg-config --libs gtkglext-1.0` \
9 -s -lGL -lGLU -lglut -lm
11 SRCS = geometry.c \
12 opengl-rendering.c \
13 cairo-rendering.c \
14 events.c \
15 main.c
17 OBJS = $(SRCS:.c=.o)
19 all: $(APP)
21 .c.o:
22 $(CC) $(CFLAGS) -c $< -o $@
24 # it is important that $(OBJS) stands _before_ $(LDFLAGS)
25 $(APP): $(OBJS)
26 $(CC) $(OBJS) $(LDFLAGS) -o$(APP)
28 clean:
29 rm -f *.o *~ $(APP)