1 # ==========================
3 # (c) 2010 Derek Barnett
6 # ==========================
8 # define main directories
13 # define compile/link flags
15 export CXXFLAGS = -Wall -O3 -D_FILE_OFFSET_BITS=64
18 # define current BamTools version
19 export BAMTOOLS_VERSION = 0.7.0812
21 # define source subdirectories
22 SUBDIRS = $(SRC_DIR)/api \
24 $(SRC_DIR)/third_party \
28 @echo "Building BamTools:"
29 @echo "Version: $$BAMTOOLS_VERSION"
30 @echo "========================================================="
32 @echo "- Creating target directories"
36 @for dir in $(SUBDIRS); do \
37 echo "- Building in $$dir"; \
38 $(MAKE) --no-print-directory -C $$dir; \
46 @rm -f $(OBJ_DIR)/* $(BIN_DIR)/*