stratgame
annotate level/Makefile @ 5:2e38715de41b
terrain
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 27 May 2012 07:00:48 +0300 |
parents | 369b51c9e4a8 |
children |
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@3 | 6 CXXFLAGS = -std=c++0x -pedantic -Wall -g -I../gfx/src -I../common/src |
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) |