]> git.donarmstrong.com Git - bamtools.git/blob - src/utils/Makefile
Changed GetNextAlignmentCore() calls to GetNextAlignment() in FilterTool
[bamtools.git] / src / utils / Makefile
1 # ==========================
2 # BamTools Makefile
3 # (c) 2010 Derek Barnett
4 #
5 # src/utils
6 # ==========================
7
8 API_DIR = ../api
9 OBJ_DIR = ../../obj
10 BIN_DIR = ../../bin
11
12 INCLUDES = -I$(API_DIR)/
13
14 # ----------------------------------
15 # define our source and object files
16 # ----------------------------------
17 SOURCES = bamtools_fasta.cpp \
18           bamtools_options.cpp \
19           bamtools_pileup_engine.cpp \
20           bamtools_utilities.cpp 
21 OBJECTS= $(SOURCES:.cpp=.o)
22 BUILT_OBJECTS= $(patsubst %,$(OBJ_DIR)/%,$(OBJECTS))
23
24 all: $(BUILT_OBJECTS)
25
26 $(BUILT_OBJECTS): $(SOURCES)
27         @echo "  * compiling" $(*F).cpp
28         @$(CXX) -c -o $@ $(*F).cpp $(LDFLAGS) $(CXXFLAGS) $(INCLUDES)
29
30 .PHONY: all
31
32 clean:
33         @echo "Cleaning up."
34         @rm -f $(OBJ_DIR)/* $(BIN_DIR)/*
35
36 .PHONY: clean