-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
25 lines (19 loc) · 918 Bytes
/
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
CC=g++ -std=c++11 -pthread
OPT=-O3
CPPFLAGS=-I$(BOOSTINCLUDEDIR)
LDFLAGS=-L$(BOOSTLIBDIR) -lboost_filesystem -lboost_system -lboost_program_options
DBG=-g
.PHONY: default all clean debug
default: all
all: NB.run
proteus: Class.cpp Class.hpp NB.cpp NB.hpp main.cpp Genome.hpp Genome.cpp Diskutil.hpp Diskutil.cpp
$(CC) $(OPT) $(CPPFLAGS) Genome.cpp Class.hpp NB.cpp Diskutil.cpp main.cpp -o NB.run $(LDFLAGS)
chmod +x NB.run
debug: Class.cpp Class.hpp NB.cpp NB.hpp main.cpp Genome.hpp Genome.cpp Diskutil.hpp Diskutil.cpp
$(CC) $(OPT) $(DBG) $(CPPFLAGS) Genome.cpp Class.hpp NB.cpp Diskutil.cpp main.cpp -o NB.run $(LDFLAGS)
chmod +x NB.run
NB.run: Class.cpp Class.hpp NB.cpp NB.hpp main.cpp Genome.hpp Genome.cpp Diskutil.hpp Diskutil.cpp
$(CC) $(OPT) Genome.cpp Class.hpp NB.cpp Diskutil.cpp main.cpp -o NB.run -lboost_filesystem -lboost_system -lboost_program_options
chmod +x NB.run
clean:
@rm NB.run