stratgame

diff level/Makefile @ 0:86b53f76899f

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 21 May 2012 19:07:40 +0300
parents
children 55a43e27339a
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/level/Makefile	Mon May 21 19:07:40 2012 +0300
     1.3 @@ -0,0 +1,18 @@
     1.4 +ccsrc = $(wildcard src/*.cc)
     1.5 +obj = $(ccsrc:.cc=.o)
     1.6 +dep = $(obj:.o=.d)
     1.7 +lib_a = liblevel.a
     1.8 +
     1.9 +CXXFLAGS = -std=c++0x -pedantic -Wall -g
    1.10 +
    1.11 +$(lib_a): $(obj)
    1.12 +	$(AR) rcs $@ $(obj)
    1.13 +
    1.14 +-include $(dep)
    1.15 +
    1.16 +%.d: %.cc
    1.17 +	@$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
    1.18 +
    1.19 +.PHONY: clean
    1.20 +clean:
    1.21 +	rm -f $(obj) $(bin) $(dep)