thin-provisioning-tools/unit-tests/Makefile.in

44 lines
1.2 KiB
Makefile
Raw Normal View History

TEST_SOURCE=\
unit-tests/block_t.cc \
unit-tests/btree_t.cc \
2011-10-21 21:27:28 +05:30
unit-tests/cache_t.cc \
unit-tests/endian_t.cc \
2011-11-15 21:11:27 +05:30
unit-tests/run_list_t.cc \
unit-tests/space_map_t.cc \
unit-tests/space_map_disk_t.cc \
unit-tests/transaction_manager_t.cc
TEST_PROGRAMS=$(subst .cc,,$(TEST_SOURCE))
.PHONEY: unit-test
unit-test: $(TEST_PROGRAMS)
for p in $(TEST_PROGRAMS); do echo Running $$p; ./$$p; done
unit-tests/block_t: unit-tests/block_t.o
g++ $(CPPFLAGS) -o $@ $+ $(LIBS)
unit-tests/btree_t: unit-tests/btree_t.o $(OBJECTS)
g++ $(CPPFLAGS) -o $@ $+ $(LIBS)
2011-10-21 21:27:28 +05:30
unit-tests/cache_t: unit-tests/cache_t.o $(OBJECTS)
g++ $(CPPFLAGS) -o $@ $+ $(LIBS)
2011-11-15 21:11:27 +05:30
unit-tests/run_list_t: unit-tests/run_list_t.o $(OBJECTS)
g++ $(CPPFLAGS) -o $@ $+ $(LIBS)
unit-tests/space_map_t: unit-tests/space_map_t.o $(OBJECTS)
g++ $(CPPFLAGS) -o $@ $+ $(LIBS)
unit-tests/space_map_disk_t: unit-tests/space_map_disk_t.o $(OBJECTS)
g++ $(CPPFLAGS) -o $@ $+ $(LIBS)
unit-tests/transaction_manager_t: unit-tests/transaction_manager_t.o $(OBJECTS)
g++ $(CPPFLAGS) -o $@ $+ $(LIBS)
unit-tests/metadata_t: unit-tests/metadata_t.o $(OBJECTS)
g++ $(CPPFLAGS) -o $@ $+ $(LIBS)
unit-tests/endian_t: unit-tests/endian_t.o $(OBJECTS)
g++ $(CPPFLAGS) -o $@ $+ $(LIBS)