istereo
view Makefile @ 43:73813c1176de
better hgignore
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 14 Aug 2015 04:33:42 +0300 |
parents | 4d25539806d2 |
children |
line source
1 src = $(wildcard src/*.c)
3 obj = $(src:.c=.o)
4 dep = $(obj:.o=.d)
5 bin = test
7 CC = gcc
8 CFLAGS = -pedantic -Wall -g $(incdir)
9 LDFLAGS = -lGL -lGLU -lglut -lGLEW -lm
11 include libs/Makefile
13 $(bin): $(obj)
14 $(CC) -o $@ $(obj) $(LDFLAGS)
16 -include $(dep)
18 %.d: %.c
19 @$(CPP) $(CFLAGS) -MM -MT $(@:.d=.o) $< >$@
22 .PHONY: clean
23 clean:
24 rm -f $(obj) $(bin)
26 .PHONY: cleandep
27 cleandep:
28 rm -f $(dep)