eqemu

annotate Makefile @ 7:e9ab4861536d

added glow
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 18 Jul 2014 04:24:53 +0300
parents 3d3656360a82
children 819c7ebb1bec
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@5 8 LDFLAGS = -lGL -lGLU -lGLEW -lX11 -lm -lpthread -limago
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)