stratgame
annotate level/Makefile @ 0:86b53f76899f
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 21 May 2012 19:07:40 +0300 |
parents | |
children | 55a43e27339a |
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@0 | 8 $(lib_a): $(obj) |
nuclear@0 | 9 $(AR) rcs $@ $(obj) |
nuclear@0 | 10 |
nuclear@0 | 11 -include $(dep) |
nuclear@0 | 12 |
nuclear@0 | 13 %.d: %.cc |
nuclear@0 | 14 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@ |
nuclear@0 | 15 |
nuclear@0 | 16 .PHONY: clean |
nuclear@0 | 17 clean: |
nuclear@0 | 18 rm -f $(obj) $(bin) $(dep) |