gameui

annotate Makefile @ 5:5a84873185ff

rudimentary theme plugin system and other minor fixes
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 22 Mar 2014 01:50:01 +0200
parents f1014234dece
children
rev   line source
nuclear@0 1 src = test.cc $(wildcard src/*.cc)
nuclear@0 2 obj = $(src:.cc=.o)
nuclear@5 3 dep = $(obj:.o=.d)
nuclear@0 4
nuclear@0 5 bin = test
nuclear@0 6
nuclear@3 7 CFLAGS = -pedantic -Wall -g -Iinclude -Isrc
nuclear@0 8 CXXFLAGS = $(CFLAGS)
nuclear@5 9 LDFLAGS = -lGL -lGLU -lglut -lpthread -ldl
nuclear@0 10
nuclear@0 11 $(bin): $(obj)
nuclear@0 12 $(CXX) -o $@ $(obj) $(LDFLAGS)
nuclear@0 13
nuclear@5 14 -include $(dep)
nuclear@5 15
nuclear@5 16
nuclear@5 17 %.d: %.c
nuclear@5 18 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
nuclear@5 19
nuclear@5 20 %.d: %.cc
nuclear@5 21 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
nuclear@5 22
nuclear@0 23 .PHONY: clean
nuclear@0 24 clean:
nuclear@5 25 rm -f $(obj) $(bin) $(dep)