Makefile 1.46 KB
Newer Older
1
2
3
4
5
6
# ==========================
# BEDTools Makefile
# (c) 2009 Aaron Quinlan
# ==========================

# define our object and binary directories
Aaron's avatar
Aaron committed
7
8
9
10
11
12
export OBJ_DIR  = obj
export BIN_DIR  = bin
export SRC_DIR  = src
export CXX      = g++
export CXXFLAGS =	-Wall -O2
export LIBS     = -lz
13
14

# define our source subdirectories
Aaron's avatar
Aaron committed
15
SUBDIRS = $(SRC_DIR)/bamToBed $(SRC_DIR)/bedToBam $(SRC_DIR)/bedToIgv $(SRC_DIR)/bed12ToBed6 $(SRC_DIR)/closestBed $(SRC_DIR)/complementBed $(SRC_DIR)/coverageBed $(SRC_DIR)/fastaFromBed $(SRC_DIR)/genomeCoverageBed $(SRC_DIR)/groupBy $(SRC_DIR)/intersectBed $(SRC_DIR)/linksBed $(SRC_DIR)/maskFastaFromBed $(SRC_DIR)/mergeBed   $(SRC_DIR)/overlap $(SRC_DIR)/pairToBed $(SRC_DIR)/pairToPair $(SRC_DIR)/shuffleBed $(SRC_DIR)/slopBed $(SRC_DIR)/sortBed $(SRC_DIR)/subtractBed $(SRC_DIR)/windowBed    
16

17
UTIL_SUBDIRS =  $(SRC_DIR)/utils/lineFileUtilities $(SRC_DIR)/utils/bedFile $(SRC_DIR)/utils/genomeFile $(SRC_DIR)/utils/gzstream $(SRC_DIR)/utils/bedFilePE $(SRC_DIR)/utils/sequenceUtilities $(SRC_DIR)/utils/BamTools
18

19
20
21
22
all:

	@echo "Building BEDTools:"
	@echo "========================================================="
23
24
	
	@for dir in $(UTIL_SUBDIRS); do \
25
26
27
28
29
		echo "- Building in $$dir"; \
		$(MAKE) --no-print-directory -C $$dir; \
		echo ""; \
	done

30
	@for dir in $(SUBDIRS); do \
31
32
33
34
35
		echo "- Building in $$dir"; \
		$(MAKE) --no-print-directory -C $$dir; \
		echo ""; \
	done

36
37


38
39
40
41
42
43
44
.PHONY: all

clean:
	@echo "Cleaning up."
	@rm -f $(OBJ_DIR)/* $(BIN_DIR)/*

.PHONY: clean