-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (33 loc) · 1.27 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
SRC_DIR=src
INCL_DIR=include
BUILD_DIR=.
JSONLIBDIR=/usr/local/Cellar/jsoncpp/1.8.3/lib/
CXXFLAGS=-O2 -g -std=c++11
FOLDING_FLAG=-D__INCLUDE_FOLDING
types:
g++ -c -o $(BUILD_DIR)/[email protected] $(CXXFLAGS) $(FOLDING_FLAG) -I$(INCL_DIR)\
$(SRC_DIR)/[email protected]
folding:
g++ -c -o $(BUILD_DIR)/[email protected] $(CXXFLAGS) $(FOLDING_FLAG) -I$(INCL_DIR) \
$(SRC_DIR)/[email protected]
ensemble_utilities:
g++ -c -o $(BUILD_DIR)/[email protected] $(CXXFLAGS) $(FOLDING_FLAG) -I$(INCL_DIR) \
$(SRC_DIR)/[email protected]
rxn_utilities:
g++ -c -o $(BUILD_DIR)/[email protected] $(CXXFLAGS) $(FOLDING_FLAG) -I$(INCL_DIR) \
$(SRC_DIR)/[email protected]
pop_utilities:
g++ -c -o $(BUILD_DIR)/[email protected] $(CXXFLAGS) $(FOLDING_FLAG) -I$(INCL_DIR) \
$(SRC_DIR)/[email protected]
species_utilities:
g++ -c -o $(BUILD_DIR)/[email protected] $(CXXFLAGS) $(FOLDING_FLAG) -I$(INCL_DIR) \
$(SRC_DIR)/[email protected]
binary: types folding ensemble_utilities rxn_utilities pop_utilities species_utilities
g++ -o main $(CXXFLAGS) $(SRC_DIR)/toplevel.cxx $(addsuffix .o, $^) \
-I$(INCL_DIR) -L$(JSONLIBDIR) -ljsoncpp
binary-debug: types folding ensemble_utilities rxn_utilities pop_utilities species_utilities
g++ -o main $(CXXFLAGS) $(SRC_DIR)/toplevel.cxx $(addsuffix .o, $^) \
-I$(INCL_DIR) -L$(JSONLIBDIR) -ljsoncpp
clean:
rm -rf $(BUILD_DIR)/*.o $(BUILD_DIR)/main $(BUILD_DIR)/main.dSYM
rm *.pkl *.json