eqemu
annotate Makefile @ 2:48dce4ee4850
the fake device is working
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 15 Jul 2014 14:37:51 +0300 |
parents | 01fb0dee8a92 |
children | 3d3656360a82 |
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@2 | 8 LDFLAGS = -lGL -lGLU -lglut -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) |