textpsys

view Makefile @ 2:4b1360a5d54d

switch between messages, and non-interactive
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 20 Aug 2015 04:52:30 +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)