]> Dogcows Code - chaz/rasterize/blob - Makefile
begin work on ray tracer project
[chaz/rasterize] / Makefile
1
2 PROJECT = raytrace
3 IUSE = EXTRA_INLINE
4
5 CXX = g++
6 EXEEXT =
7 CXXFLAGS= -O2 -g -pg
8 CPPFLAGS= -MMD $(IUSE:%=-D%)
9 LDLIBS = -lm
10
11 SRCS = main.cc common.cc list.cc raster.cc scene.cc
12 OBJS = $(SRCS:%.cc=%.o)
13 DEPS = $(OBJS:%.o=%.d)
14 PROG = $(PROJECT)$(EXEEXT)
15
16 all: $(PROG)
17
18 $(PROG): $(OBJS)
19 $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
20
21 clean:
22 rm -f $(PROG) $(OBJS) $(DEPS)
23
24 distclean: clean
25 rm -f tags gmon.out
26
27 realclean: distclean
28 rm -rf frames $(PROJECT).zip
29
30 dist:
31 git archive HEAD --prefix=$(PROJECT)/ --output=$(PROJECT).zip
32
33 run: $(PROG)
34 ./$<
35
36 debug: $(PROG)
37 gdb ./$<
38
39 -include $(DEPS)
40 $(OBJS): Makefile
41
42 .PHONY: all clean distclean dist run debug
43
This page took 0.037546 seconds and 4 git commands to generate.