thin-provisioning-tools/Makefile

23 lines
413 B
Makefile
Raw Normal View History

2011-06-16 12:46:10 +05:30
SOURCE=\
main.cc \
2011-06-27 15:15:30 +05:30
metadata.cc
2011-06-16 12:46:10 +05:30
OBJECTS=$(subst .cc,.o,$(SOURCE))
CPPFLAGS=-Wall -std=c++0x
2011-06-16 12:46:10 +05:30
INCLUDES=
LIBS=-lstdc++
2011-06-27 15:15:30 +05:30
.SUFFIXES: .cc .o .d
2011-06-16 12:46:10 +05:30
2011-06-27 15:15:30 +05:30
%.d: %.cc
$(CC) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
2011-06-16 12:46:10 +05:30
.cc.o:
g++ -c $(CPPFLAGS) $(INCLUDES) -o $@ $<
multisnap_display: $(OBJECTS)
g++ -o $@ $+ $(LIBS)
2011-06-27 15:15:30 +05:30
include $(subst .cc,.d,$(SOURCE))