Makefile 2.16 KB
Newer Older
nkindlon's avatar
nkindlon committed
1
2
3
4
5
6
7
8
OBJ_DIR = ../../../obj/
BIN_DIR = ../../../bin/
UTILITIES_DIR = ../../utils/
# -------------------
# define our includes
# -------------------
INCLUDES =  -I$(UTILITIES_DIR)/general/ \
			-I$(UTILITIES_DIR)/fileType/ \
9
10
11
			-I$(UTILITIES_DIR)/FileRecordTools/ \
           -I$(UTILITIES_DIR)/FileRecordTools/FileReaders/ \
           -I$(UTILITIES_DIR)/FileRecordTools/Records/ \
12
			-I$(UTILITIES_DIR)/KeyListOps/ \
nkindlon's avatar
nkindlon committed
13
			-I$(UTILITIES_DIR)/GenomeFile/ \
14
15
 			-I$(UTILITIES_DIR)/BamTools/include \
			-I$(UTILITIES_DIR)/BamTools/src/ \
16
17
			-I$(UTILITIES_DIR)/version/
			
nkindlon's avatar
nkindlon committed
18
19
20
21

# ----------------------------------
# define our source and object files
# ----------------------------------
arq5x's avatar
arq5x committed
22
SOURCES= ContextBase.cpp ContextBase.h ContextIntersect.cpp ContextIntersect.h ContextFisher.cpp ContextFisher.h ContextMap.cpp \
23
	ContextMap.h ContextSample.cpp ContextSpacing.cpp ContextSample.h ContextSpacing.h ContextMerge.h ContextMerge.cpp ContextJaccard.h ContextJaccard.cpp \
24
25
	ContextClosest.cpp ContextClosest.h ContextSubtract.cpp ContextSubtract.h ContextCoverage.cpp ContextCoverage.h ContextComplement.cpp ContextComplement.h \
	ContextGroupBy.cpp ContextGroupBy.cpp
26
OBJECTS= ContextBase.o ContextIntersect.o ContextFisher.o ContextMap.o ContextSample.o ContextSpacing.o ContextMerge.o ContextJaccard.o ContextClosest.o \
27
	ContextSubtract.o ContextCoverage.o ContextComplement.o ContextGroupBy.o
nkindlon's avatar
nkindlon committed
28
29
30
31
32
33
34
35
36
37
38
39
40
41
_EXT_OBJECTS=ParseTools.o QuickString.o
EXT_OBJECTS=$(patsubst %,$(OBJ_DIR)/%,$(_EXT_OBJECTS))
BUILT_OBJECTS= $(patsubst %,$(OBJ_DIR)/%,$(OBJECTS))

all: $(BUILT_OBJECTS)

.PHONY: all

$(BUILT_OBJECTS): $(SOURCES)
	@echo "  * compiling" $(*F).cpp
	@$(CXX) -c -o $@ $(*F).cpp $(LDFLAGS) $(CXXFLAGS) $(INCLUDES)

clean:
	@echo "Cleaning up."
42
43
	@rm -f $(OBJ_DIR)/ContextBase.o \
	       $(OBJ_DIR)/ContextIntersect.o \
arq5x's avatar
arq5x committed
44
	       $(OBJ_DIR)/ContextFisher.o \
45
	       $(OBJ_DIR)/ContextMap.o \
46
	       $(OBJ_DIR)/ContextSample.o \
47
	       $(OBJ_DIR)/ContextSpacing.o \
48
	       $(OBJ_DIR)/ContextMerge.o \
49
	       $(OBJ_DIR)/ContextJaccard.o \
arq5x's avatar
arq5x committed
50
	       $(OBJ_DIR)/ContextClosest.o \
51
52
53
54
		   $(OBJ_DIR)/ContextSubtract.o \
		   $(OBJ_DIR)/ContextCoverage.o \
		   $(OBJ_DIR)/ContextComplement.o \
		   $(OBJ_DIR)/ContextGroupBy.o
Brent Pedersen's avatar
Brent Pedersen committed
55
.PHONY: clean