stratgame
view level/Makefile @ 3:8d95187cb3ee
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 23 May 2012 17:10:46 +0300 |
parents | 369b51c9e4a8 |
children |
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 -I../gfx/src -I../common/src
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)