annotate BEDTools-Version-2.14.3/src/intersectBed/Makefile @ 0:dfcd8b6c1bda

Uploaded
author aaronquinlan
date Thu, 03 Nov 2011 10:25:04 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
1 UTILITIES_DIR = ../utils/
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
2 OBJ_DIR = ../../obj/
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
3 BIN_DIR = ../../bin/
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
4
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
5 # -------------------
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
6 # define our includes
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
7 # -------------------
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
8 INCLUDES = -I$(UTILITIES_DIR)/bedFile/ \
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
9 -I$(UTILITIES_DIR)/version/ \
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
10 -I$(UTILITIES_DIR)/gzstream/ \
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
11 -I$(UTILITIES_DIR)/genomeFile/ \
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
12 -I$(UTILITIES_DIR)/lineFileUtilities/ \
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
13 -I$(UTILITIES_DIR)/fileType/ \
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
14 -I$(UTILITIES_DIR)/BamTools/include \
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
15 -I$(UTILITIES_DIR)/BamTools-Ancillary \
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
16 -I$(UTILITIES_DIR)/chromsweep \
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
17
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
18 # ----------------------------------
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
19 # define our source and object files
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
20 # ----------------------------------
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
21 SOURCES= intersectMain.cpp intersectBed.cpp
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
22 OBJECTS= $(SOURCES:.cpp=.o)
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
23 _EXT_OBJECTS=bedFile.o lineFileUtilities.o BamAncillary.o gzstream.o fileType.o chromsweep.o
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
24 EXT_OBJECTS=$(patsubst %,$(OBJ_DIR)/%,$(_EXT_OBJECTS))
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
25 BUILT_OBJECTS= $(patsubst %,$(OBJ_DIR)/%,$(OBJECTS))
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
26 PROGRAM= intersectBed
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
27
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
28 all: $(PROGRAM)
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
29
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
30 .PHONY: all
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
31
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
32 $(PROGRAM): $(BUILT_OBJECTS) $(EXT_OBJECTS)
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
33 @echo " * linking $(PROGRAM)"
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
34 @$(CXX) $(LDFLAGS) $(CXXFLAGS) -o $(BIN_DIR)/$@ $^ -L$(UTILITIES_DIR)/BamTools/lib/ -lbamtools $(LIBS)
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
35
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
36 $(BUILT_OBJECTS): $(SOURCES)
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
37 @echo " * compiling" $(*F).cpp
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
38 @$(CXX) -c -o $@ $(*F).cpp $(LDFLAGS) $(CXXFLAGS) $(INCLUDES)
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
39
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
40 $(EXT_OBJECTS):
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
41 @$(MAKE) --no-print-directory -C $(UTILITIES_DIR)/bedFile/
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
42 @$(MAKE) --no-print-directory -C $(UTILITIES_DIR)/lineFileUtilities/
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
43 @$(MAKE) --no-print-directory -C $(UTILITIES_DIR)/BamTools/
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
44 @$(MAKE) --no-print-directory -C $(UTILITIES_DIR)/BamTools-Ancillary/
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
45 @$(MAKE) --no-print-directory -C $(UTILITIES_DIR)/gzstream/
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
46 @$(MAKE) --no-print-directory -C $(UTILITIES_DIR)/fileType/
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
47 @$(MAKE) --no-print-directory -C $(UTILITIES_DIR)/chromsweep/
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
48
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
49 clean:
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
50 @echo "Cleaning up."
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
51 @rm -f $(OBJ_DIR)/* $(BIN_DIR)/*
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
52
dfcd8b6c1bda Uploaded
aaronquinlan
parents:
diff changeset
53 .PHONY: clean