UTILITIES_DIR = ../utils/ OBJ_DIR = ../../obj/ BIN_DIR = ../../bin/ # ------------------- # define our includes # ------------------- INCLUDES = -I$(UTILITIES_DIR)/bedFile/ \ -I$(UTILITIES_DIR)/gzstream/ \ -I$(UTILITIES_DIR)/genomeFile/ \ -I$(UTILITIES_DIR)/lineFileUtilities/ \ -I$(UTILITIES_DIR)/fileType/ \ -I$(UTILITIES_DIR)/BamTools/include \ -I$(UTILITIES_DIR)/BlockedIntervals \ -I$(UTILITIES_DIR)/BamTools-Ancillary \ -I$(UTILITIES_DIR)/chromsweep \ -I$(UTILITIES_DIR)/version/ # ---------------------------------- # define our source and object files # ---------------------------------- SOURCES= reldistMain.cpp reldist.cpp reldist.h OBJECTS= reldistMain.o reldist.o BUILT_OBJECTS= $(patsubst %,$(OBJ_DIR)/%,$(OBJECTS)) PROGRAM= reldist all: $(BUILT_OBJECTS) .PHONY: all $(BUILT_OBJECTS): $(SOURCES) @echo " * compiling" $(*F).cpp @$(CXX) -c -o $@ $(*F).cpp $(LDFLAGS) $(CXXFLAGS) $(DFLAGS) $(INCLUDES) clean: @echo "Cleaning up." @rm -f $(OBJ_DIR)/reldistMain.o $(OBJ_DIR)/reldist.o .PHONY: clean