eqemu
view Makefile @ 0:01fb0dee8a92
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 15 Jul 2014 04:46:10 +0300 |
parents | |
children | 48dce4ee4850 |
line source
1 src = $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 dep = $(obj:.o=.d)
4 bin = eqdummy
6 CFLAGS = -pedantic -Wall -g
7 CXXFLAGS = $(CFLAGS)
8 LDFLAGS = -lGL -lGLU -lglut -lGLEW -lX11 -lm
10 $(bin): $(obj)
11 $(CXX) -o $@ $(obj) $(LDFLAGS)
13 -include $(dep)
15 %.d: %.cc
16 @$(CPP) $< $(CXXFLAGS) -MM -MT $(@:.d=.o) >$@
18 .PHONY: clean
19 clean:
20 rm -f $(obj) $(bin)