stratgame

annotate 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
rev   line source
nuclear@0 1 ccsrc = $(wildcard src/*.cc)
nuclear@0 2 obj = $(ccsrc:.cc=.o)
nuclear@0 3 dep = $(obj:.o=.d)
nuclear@0 4 lib_a = liblevel.a
nuclear@0 5
nuclear@0 6 CXXFLAGS = -std=c++0x -pedantic -Wall -g
nuclear@0 7
nuclear@1 8 ifeq ($(shell uname -s), Darwin)
nuclear@1 9 CC = clang
nuclear@1 10 CXX = clang++
nuclear@1 11 endif
nuclear@1 12
nuclear@0 13 $(lib_a): $(obj)
nuclear@0 14 $(AR) rcs $@ $(obj)
nuclear@0 15
nuclear@0 16 -include $(dep)
nuclear@0 17
nuclear@0 18 %.d: %.cc
nuclear@0 19 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
nuclear@0 20
nuclear@0 21 .PHONY: clean
nuclear@0 22 clean:
nuclear@0 23 rm -f $(obj) $(bin) $(dep)