b3e118f57f6faadb104bbb4f92ee613f6944f09b
[chaz/rasterize] / Makefile
1
2 PROJECT = project1
3 SRCS = main.c common.c list.c pixmap.c scene.c tri.c
4
5 VIEWER = feh
6
7 CC = gcc
8 CFLAGS = -std=c99 -O0 -ggdb
9 CPPFLAGS= -MMD -DDEBUG
10 LDLIBS = -lm
11
12 OBJS = $(SRCS:%.c=%.o)
13 DEPS = $(OBJS:%.o=%.d)
14
15 all: $(PROJECT)
16
17 $(PROJECT): $(OBJS)
18 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
19
20 clean:
21 rm -f $(PROJECT) $(OBJS) $(DEPS)
22
23 distclean: clean
24 rm -f scene.ppm scene.bmp
25
26 run: $(PROJECT)
27 ./$< && $(VIEWER) scene.ppm
28
29 debug: $(PROJECT)
30 gdb ./$<
31
32 -include $(DEPS)
33
This page took 0.037265 seconds and 3 git commands to generate.