textpsys

view Makefile @ 1:57c6f7b70126

renamed to textpsys
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 19 Aug 2015 09:17:20 +0300
parents a4ffd9e6984c
children
line source
1 src = $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 dep = $(obj:.o=.d)
4 bin = textpsys
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)