eqemu
annotate Makefile @ 4:3d3656360a82
rendering properly, added picking, almost done...
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 17 Jul 2014 08:51:17 +0300 |
parents | 48dce4ee4850 |
children | 9b5bb05ae53a |
rev | line source |
---|---|
nuclear@0 | 1 src = $(wildcard src/*.cc) |
nuclear@0 | 2 obj = $(src:.cc=.o) |
nuclear@0 | 3 dep = $(obj:.o=.d) |
nuclear@0 | 4 bin = eqdummy |
nuclear@0 | 5 |
nuclear@0 | 6 CFLAGS = -pedantic -Wall -g |
nuclear@0 | 7 CXXFLAGS = $(CFLAGS) |
nuclear@4 | 8 LDFLAGS = -lGL -lGLU -lGLEW -lX11 -lm -lpthread |
nuclear@0 | 9 |
nuclear@0 | 10 $(bin): $(obj) |
nuclear@0 | 11 $(CXX) -o $@ $(obj) $(LDFLAGS) |
nuclear@0 | 12 |
nuclear@0 | 13 -include $(dep) |
nuclear@0 | 14 |
nuclear@0 | 15 %.d: %.cc |
nuclear@0 | 16 @$(CPP) $< $(CXXFLAGS) -MM -MT $(@:.d=.o) >$@ |
nuclear@0 | 17 |
nuclear@0 | 18 .PHONY: clean |
nuclear@0 | 19 clean: |
nuclear@0 | 20 rm -f $(obj) $(bin) |