gameui

view 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
line source
1 src = test.cc $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 dep = $(obj:.o=.d)
5 bin = test
7 CFLAGS = -pedantic -Wall -g -Iinclude -Isrc
8 CXXFLAGS = $(CFLAGS)
9 LDFLAGS = -lGL -lGLU -lglut -lpthread -ldl
11 $(bin): $(obj)
12 $(CXX) -o $@ $(obj) $(LDFLAGS)
14 -include $(dep)
17 %.d: %.c
18 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
20 %.d: %.cc
21 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
23 .PHONY: clean
24 clean:
25 rm -f $(obj) $(bin) $(dep)