eqemu

annotate Makefile @ 0:01fb0dee8a92

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 15 Jul 2014 04:46:10 +0300
parents
children 48dce4ee4850
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@0 8 LDFLAGS = -lGL -lGLU -lglut -lGLEW -lX11 -lm
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)