-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
50 lines (36 loc) · 1.13 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
# ==========================
# Spanner Makefile
# (c) 2011 Chip Stewart
# ==========================
# define object and binary directories
export OBJ_DIR = $(abspath ./obj)
export BIN_DIR = $(abspath ./bin)
export SRC_DIR = $(abspath ./src)
export CXX = g++
export CXXFLAGS = -Wall -O2
# define samtools area for sam.h and libbam.a
#==============================================
#export SAMTOOLS_DIR = /usr/local/samtools-0.1.16
export SAMTOOLS_DIR = $(abspath ../../samtools)
#==============================================
export LIBS = -L$(SAMTOOLS_DIR) -lbam -lz
SUBDIRS = $(SRC_DIR) \
$(SRC_DIR)/SpannerScan \
$(SRC_DIR)/SpannerX \
all:
@echo $(SAMTOOLS_DIR)
[ -d $(OBJ_DIR) ] || mkdir -p $(OBJ_DIR)
[ -d $(BIN_DIR) ] || mkdir -p $(BIN_DIR)
@echo "========================================================="
@echo "Building Spanner:"
@echo "========================================================="
@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)/*
.PHONY: clean