streamline and test transaction_manager

This commit is contained in:
Joe Thornber
2011-07-14 15:31:00 +01:00
parent a0cae447f6
commit a4b5718a78
4 changed files with 194 additions and 95 deletions
+15 -4
View File
@@ -3,13 +3,21 @@ SOURCE=\
PROGRAM_SOURCE=\
block_t.cc \
space_map_t.cc
space_map_t.cc \
transaction_manager_t.cc
OBJECTS=$(subst .cc,.o,$(SOURCE))
CPPFLAGS=-Wall -std=c++0x
INCLUDES=
LIBS=-lstdc++
.PHONEY: unit-tests
unit-tests: block_t space_map_t transaction_manager_t
./block_t
./space_map_t
./transaction_manager_t
.SUFFIXES: .cc .o .d
%.d: %.cc
@@ -21,13 +29,16 @@ LIBS=-lstdc++
g++ -c $(CPPFLAGS) $(INCLUDES) -o $@ $<
multisnap_display: $(OBJECTS) main.o
g++ -o $@ $+ $(LIBS)
g++ $(CPPFLAGS) -o $@ $+ $(LIBS)
block_t: block_t.o
g++ -o $@ $+ $(LIBS)
g++ $(CPPFLAGS) -o $@ $+ $(LIBS)
space_map_t: space_map_t.o
g++ -o $@ $+ $(LIBS)
g++ $(CPPFLAGS) -o $@ $+ $(LIBS)
transaction_manager_t: transaction_manager_t.o
g++ $(CPPFLAGS) -o $@ $+ $(LIBS)
include $(subst .cc,.d,$(SOURCE))
include $(subst .cc,.d,$(PROGRAM_SOURCE))