-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (26 loc) · 1.18 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
BIN=./bin/
SRC=./src/
CFLAGS = -Wall -O -std=c++17 -stdlib=libc++
CC = g++
all: $(BIN)makeix $(BIN)getseq $(BIN)getseqno $(BIN)getids
$(BIN)makeix: $(SRC)make_index.o $(SRC)fastaf.o
$(CC) $(CFLAGS) -o $(BIN)makeix $(SRC)make_index.o $(SRC)fastaf.o
$(SRC)make_index.o: $(SRC)make_index.cpp
$(CC) $(CFLAGS) -c $(SRC)make_index.cpp -o $(SRC)make_index.o
$(BIN)getseq: $(SRC)get_seq.o $(SRC)fastaf.o
$(CC) $(CFLAGS) -o $(BIN)getseq $(SRC)get_seq.o $(SRC)fastaf.o
$(SRC)get_seq.o: $(SRC)get_seq.cpp
$(CC) $(CFLAGS) -c $(SRC)get_seq.cpp -o $(SRC)get_seq.o
$(BIN)getseqno: $(SRC)get_seq_number.o $(SRC)fastaf.o
$(CC) $(CFLAGS) -o $(BIN)getseqno $(SRC)get_seq_number.o $(SRC)fastaf.o
$(SRC)get_seq_number.o: $(SRC)get_seq_number.cpp
$(CC) $(CFLAGS) -c $(SRC)get_seq_number.cpp -o $(SRC)get_seq_number.o
$(BIN)getids: $(SRC)get_seq_ids.o $(SRC)fastaf.o
$(CC) $(CFLAGS) -o $(BIN)getids $(SRC)get_seq_ids.o $(SRC)fastaf.o
$(SRC)get_seq_ids.o: $(SRC)get_seq_ids.cpp
$(CC) $(CFLAGS) -c $(SRC)get_seq_ids.cpp -o $(SRC)get_seq_ids.o
$(SRC)fastaf.o: $(SRC)fastaf.cpp
$(CC) $(CFLAGS) -c $(SRC)fastaf.cpp -o $(SRC)fastaf.o
clean:
rm -f core $(SRC)*.o
rm -f $(BIN)getids $(BIN)getseq $(BIN)getseqno $(BIN)makeix