textpsys

view Makefile @ 0:a4ffd9e6984c

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 19 Aug 2015 09:13:48 +0300
parents
children 57c6f7b70126
line source
1 src = $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 dep = $(obj:.o=.d)
4 bin = textbomb
7 CXXFLAGS = -std=c++11 -pedantic -Wall -g
8 LDFLAGS = $(libgl_$(shell uname -s)) -lm
10 libgl_Linux = -lGL -lglut
11 libgl_Darwin = -framework OpenGL -framework GLUT
13 $(bin): $(obj)
14 $(CXX) -o $@ $(obj) $(LDFLAGS)
16 -include $(dep)
18 %.d: %.cc
19 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
21 .PHONY: clean
22 clean:
23 rm -f $(obj) $(bin)
25 .PHONY: cleandep
26 cleandep:
27 rm -f $(dep)