add scene lighting constructs; real stdin support
[chaz/rasterize] / Makefile
1
2 PROJECT = rasterize
3 IUSE = DEPTH_TEST EXTRA_INLINE SMOOTH_COLOR
4
5 VIEWER = feh
6
7 CC = gcc
8 CFLAGS = -std=c99 -O2 -g -pg
9 CPPFLAGS= -MMD $(IUSE:%=-D%)
10 LDLIBS = -lm
11
12 SRCS = main.c common.c list.c raster.c rbtree.c scene.c
13 OBJS = $(SRCS:%.c=%.o)
14 DEPS = $(OBJS:%.o=%.d)
15
16 all: $(PROJECT)
17
18 $(PROJECT): $(OBJS)
19 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
20
21 clean:
22 rm -f $(PROJECT) $(OBJS) $(DEPS)
23
24 distclean: clean
25 rm -f tags gmon.out
26
27 dist:
28 git archive HEAD --prefix=$(PROJECT)/ --output=$(PROJECT).zip
29
30 run: $(PROJECT)
31 ./$< && $(VIEWER) scene.ppm
32
33 debug: $(PROJECT)
34 gdb ./$<
35
36 -include $(DEPS)
37 $(OBJS): Makefile
38
39 .PHONY: all clean distclean run debug
40
This page took 0.038514 seconds and 4 git commands to generate.