eqemu

diff Makefile @ 0:01fb0dee8a92

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 15 Jul 2014 04:46:10 +0300
parents
children 48dce4ee4850
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Tue Jul 15 04:46:10 2014 +0300
     1.3 @@ -0,0 +1,20 @@
     1.4 +src = $(wildcard src/*.cc)
     1.5 +obj = $(src:.cc=.o)
     1.6 +dep = $(obj:.o=.d)
     1.7 +bin = eqdummy
     1.8 +
     1.9 +CFLAGS = -pedantic -Wall -g
    1.10 +CXXFLAGS = $(CFLAGS)
    1.11 +LDFLAGS = -lGL -lGLU -lglut -lGLEW -lX11 -lm
    1.12 +
    1.13 +$(bin): $(obj)
    1.14 +	$(CXX) -o $@ $(obj) $(LDFLAGS)
    1.15 +
    1.16 +-include $(dep)
    1.17 +
    1.18 +%.d: %.cc
    1.19 +	@$(CPP) $< $(CXXFLAGS) -MM -MT $(@:.d=.o) >$@
    1.20 +
    1.21 +.PHONY: clean
    1.22 +clean:
    1.23 +	rm -f $(obj) $(bin)