stratgame
view level/Makefile @ 5:2e38715de41b
terrain
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 27 May 2012 07:00:48 +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)