block_manager and unit test

This commit is contained in:
Joe Thornber
2011-07-13 15:09:33 +01:00
parent c090bb88b5
commit 8a7f0214d3
4 changed files with 208 additions and 44 deletions

View File

@@ -1,7 +1,9 @@
SOURCE=\
main.cc \
metadata.cc
PROGRAM_SOURCE=\
block_t.cc
OBJECTS=$(subst .cc,.o,$(SOURCE))
CPPFLAGS=-Wall -std=c++0x
INCLUDES=
@@ -17,7 +19,11 @@ LIBS=-lstdc++
.cc.o:
g++ -c $(CPPFLAGS) $(INCLUDES) -o $@ $<
multisnap_display: $(OBJECTS)
multisnap_display: $(OBJECTS) main.o
g++ -o $@ $+ $(LIBS)
include $(subst .cc,.d,$(SOURCE))
block_t: block_t.o
g++ -o $@ $+ $(LIBS)
include $(subst .cc,.d,$(SOURCE))
include $(subst .cc,.d,$(PROGRAM_SOURCE))