stratgame

view level/Makefile @ 1:55a43e27339a

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 22 May 2012 05:02:00 +0300
parents 86b53f76899f
children 369b51c9e4a8
line source
1 ccsrc = $(wildcard src/*.cc)
2 obj = $(ccsrc:.cc=.o)
3 dep = $(obj:.o=.d)
4 lib_a = liblevel.a
6 CXXFLAGS = -std=c++0x -pedantic -Wall -g
8 ifeq ($(shell uname -s), Darwin)
9 CC = clang
10 CXX = clang++
11 endif
13 $(lib_a): $(obj)
14 $(AR) rcs $@ $(obj)
16 -include $(dep)
18 %.d: %.cc
19 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
21 .PHONY: clean
22 clean:
23 rm -f $(obj) $(bin) $(dep)