-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
156 lines (113 loc) · 2.94 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#
# This file is part of synth.
#
# synth is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# synth is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with synth. If not, see <http://www.gnu.org/licenses/>.
#
CC=g++
OPT= -O2
#Path to openbabel directory which contains the header (.h) files
OB_INC= ${HOME}/apps/openbabel-2.3.2-install/include/openbabel-2.0/
#Path to openbabel directory which contains the (.so) files
OB_LIB= ${HOME}/apps/openbabel-2.3.2-install/lib/
GSL_LIB=/usr/lib64/
GSL_INC=/usr/include/
EXE = esynth
CFLAGS= $(OPT) -I$(GSL_INC) -L$(GSL_LIB) -I$(OB_INC) -L$(OB_LIB) -lz -lgsl -lgslcblas -lopenbabel -lpthread
ODIR=./obj
ODIR=./obj
DEPS = EdgeAggregator.h \
EdgeAnnotation.h \
Instantiator.h \
Linker.h \
Molecule.h \
Rigid.h \
Utilities.h \
Atom.h \
ConnectableAtom.h \
LinkerConnectableAtom.h \
RigidConnectableAtom.h \
Bond.h \
AtomT.h \
IdFactory.h \
OBWriter.h \
Options.h \
Validator.h \
obgen.h \
Constants.h \
Thread_Pool.h \
LevelHashMap.h \
LikeMoleculesContainer.h \
MinimalMolecule.h \
SmiMinimalMolecule.h \
MoleculeHashHypergraph.h \
FixedSortedList.h \
EdgeDatabase.h \
FragmentEdgeMap.h \
SimpleFragmentGraph.h \
zpipe.h \
TimedHashMap.h \
TimedLikeValueContainer.h \
bloom_filter.hpp
_OBGEN_DEPS = obgen.h
_WRITER_DEPS = compliantwriter.h
_TOSMI_DEPS = convertToSMI.h
_OBJ = Atom.o \
Instantiator.o \
Linker.o\
Main.o \
Molecule.o \
Rigid.o \
Utilities.o \
Atom.o \
ConnectableAtom.o \
LinkerConnectableAtom.o \
RigidConnectableAtom.o \
Bond.o \
AtomT.o \
OBWriter.o \
IdFactory.o \
Options.o \
Validator.o \
obgen.o \
Constants.o \
FragmentEdgeMap.o \
zpipe.o \
TimedHashMap.o \
TimedLikeValueContainer.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
$(ODIR)/%.o: %.cpp $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
$(EXE): $(OBJ)
$(CC) $^ $(CFLAGS) -o $@
_OBGEN_OBJ = synthobgen.o
OBGEN_OBJ = $(patsubst %,$(ODIR)/%,$(_OBGEN_OBJ))
$(ODIR)/%.o: %.cpp $(_OBGEN_DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
synthobgen: $(OBGEN_OBJ)
$(CC) $^ $(CFLAGS) -o $@
_WRITER_OBJ = compliantwriter.o
WRITER_OBJ = $(patsubst %,$(ODIR)/%,$(_WRITER_OBJ))
$(ODIR)/%.o: %.cpp $(_WRITER_DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
compliantwriter: $(WRITER_OBJ)
$(CC) $^ $(CFLAGS) -o $@
_TOSMI_OBJ = convertToSMI.o
TOSMI_OBJ = $(patsubst %,$(ODIR)/%,$(_TOSMI_OBJ))
$(ODIR)/%.o: %.cpp $(_TOSMI_DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
convertToSMI: $(TOSMI_OBJ)
$(CC) $^ $(CFLAGS) -o $@
.PHONY: clean
clean:
rm -f $(ODIR)/*.o *~ core $(EXE) synth.stackdump $(INCDIR)/*~