]> Dogcows Code - chaz/rasterize/blob - Makefile
add external supersampling to animate script
[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 array.c common.c list.c model.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 wipeout: distclean
28 rm -rf *.ppm *.bmp *.avi frames .*.raw .*.obj
29
30 dist:
31 git archive HEAD --prefix=$(PROJECT)/ --output=$(PROJECT).zip
32
33 run: $(PROJECT)
34 ./$< && $(VIEWER) scene.ppm
35
36 debug: $(PROJECT)
37 gdb ./$<
38
39 -include $(DEPS)
40 $(OBJS): Makefile
41
42 .PHONY: all clean distclean dist run debug
43
This page took 0.02967 seconds and 4 git commands to generate.