forked from arq5x/bits
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (56 loc) · 1.85 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# ==========================
# BEDTools Makefile
# (c) 2009 Aaron Quinlan
# ==========================
# define our object and binary directories
export OBJ_DIR = obj
export BIN_DIR = bin
export SRC_DIR = src
export CXX = g++
export CXXFLAGS = -Wall -O2 -fPIC
export LIBS = -lz
export BT_ROOT = src/utils/BamTools/
SUBDIRS = $(SRC_DIR)/bits_count_intersections \
$(SRC_DIR)/bits_count_intersections_cuda \
$(SRC_DIR)/bits_count_intersections_per_interval \
$(SRC_DIR)/bits_count_intersections_per_interval_cuda \
$(SRC_DIR)/bits_count_significance_cuda \
$(SRC_DIR)/bits_enumerate_intersections \
$(SRC_DIR)/bits_enumerate_intersections_cuda \
$(SRC_DIR)/bits_test_intersections \
$(SRC_DIR)/bits_test_intersections_cuda
UTIL_SUBDIRS = $(SRC_DIR)/utils/lineFileUtilities \
$(SRC_DIR)/utils/bedFile \
$(SRC_DIR)/utils/genomeFile \
$(SRC_DIR)/utils/gzstream \
$(SRC_DIR)/utils/fileType \
$(SRC_DIR)/utils/bits/utils/c/mt \
$(SRC_DIR)/utils/bits/utils/c/timer \
$(SRC_DIR)/utils/bits/binary_search/lib/cuda \
$(SRC_DIR)/utils/bits/binary_search/lib/seq \
$(SRC_DIR)/utils/bits/interval_intersection/lib/cuda \
$(SRC_DIR)/utils/bits/interval_intersection/lib/seq
all:
[ -d $(OBJ_DIR) ] || mkdir -p $(OBJ_DIR)
[ -d $(BIN_DIR) ] || mkdir -p $(BIN_DIR)
@echo "Building BEDTools:"
@echo "========================================================="
@for dir in $(UTIL_SUBDIRS); do \
echo "- Building in $$dir"; \
$(MAKE) --no-print-directory -C $$dir; \
echo ""; \
done
@for dir in $(SUBDIRS); do \
echo "- Building in $$dir"; \
$(MAKE) --no-print-directory -C $$dir; \
echo ""; \
done
.PHONY: all
clean:
@echo "Cleaning up."
@rm -f $(OBJ_DIR)/* $(BIN_DIR)/*
@rm -Rf $(BT_ROOT)/lib
@rm -f $(BT_ROOT)/src/api/*.o
@rm -f $(BT_ROOT)/src/api/internal/*.o
@rm -Rf $(BT_ROOT)/include
.PHONY: clean