diff options
author | Dennis Peeten <dpeeten@onsneteindhoven.nl> | 2008-05-06 08:20:40 (GMT) |
---|---|---|
committer | Dennis Peeten <dpeeten@onsneteindhoven.nl> | 2008-05-06 08:20:40 (GMT) |
commit | 90e452660d230c7dd181ee7c3fbc5b5a117ed937 (patch) | |
tree | a666b6f565a125f21a44c23e39fbb7d3d5412d3a /MatchBloxEngine/MatchBloxEngine/Makefile | |
parent | 0a92d39e9e8774d96a6277f51890ee6eb345b40b (diff) | |
download | 2iv55-90e452660d230c7dd181ee7c3fbc5b5a117ed937.zip 2iv55-90e452660d230c7dd181ee7c3fbc5b5a117ed937.tar.gz 2iv55-90e452660d230c7dd181ee7c3fbc5b5a117ed937.tar.bz2 |
Diffstat (limited to 'MatchBloxEngine/MatchBloxEngine/Makefile')
-rw-r--r-- | MatchBloxEngine/MatchBloxEngine/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/MatchBloxEngine/MatchBloxEngine/Makefile b/MatchBloxEngine/MatchBloxEngine/Makefile new file mode 100644 index 0000000..383ce98 --- /dev/null +++ b/MatchBloxEngine/MatchBloxEngine/Makefile @@ -0,0 +1,31 @@ +CFLAGS= -I/usr/include/ -O +LDFLAGS= -lglut +sources= C_3DObject.cpp \ + C_Hand.cpp \ + C_MatchBloxEngine.cpp \ + C_Block.cpp \ + C_Log.cpp \ + bitmap.cpp \ + C_Environment.cpp \ + C_Box.cpp \ + main.cpp +objects= $(sources:.cpp=.o) + +all: MatchBloxEngine + +MatchBloxEngine: $(objects) + $(CC) $(LDFLAGS) -o $@ $(objects) + +#automatically generate targets with their dependencies +%.d: %.cpp + @set -e; rm -f $@; \ + $(CC) -M $(CFLAGS) $< > $@.$$$$; \ + sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ + rm -f $@.$$$$ + +#include the automatically generated targets +include $(sources:.cpp=.d) + +clean: + -rm MatchBloxEngine $(objects) *.d + |