-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
72 lines (61 loc) · 3.39 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
#/**********************************************************************
#** This program is part of 'MOOSE', the
#** Messaging Object Oriented Simulation Environment,
#** also known as GENESIS 3 base code.
#** copyright (C) 2004 Upinder S. Bhalla. and NCBS
#** It is made available under the terms of the
#** GNU General Public License version 2
#** See the file COPYING.LIB for the full notice.
#**********************************************************************/
ifndef CXXFLAGS
CXXFLAGS = -g -fpermissive -fno-strict-aliasing -fPIC -fno-inline-functions \
-Wall -Wno-long-long -pedantic -DDO_UNIT_TESTS -DUSE_GENESIS_PARSER -DSVN_REVISION=\"5340M\" \
-DLINUX -DUSE_GSL -DUSE_HDF5 -DH5_NO_DEPRECATED_SYMBOLS -I/usr/local/hdf5/include
endif
TARGET = _hsolve.o
CLIB = PN2S/_pn2s.o
OBJ = \
HSolveStruct.o \
HinesMatrix.o \
HSolvePassive.o \
RateLookup.o \
HSolveActive.o \
HSolveActiveSetup.o \
HSolveInterface.o \
HSolve.o \
HSolveUtils.o \
testHSolve.o \
ZombieCompartment.o \
ZombieCaConc.o \
ZombieHHChannel.o \
PN2S_Proxy.o
HEADERS = \
../basecode/header.h
SUBDIR = \
PN2S
default: $(TARGET)
$(OBJ) : $(HEADERS)
HSolveStruct.o: HSolveStruct.h
HinesMatrix.o: HinesMatrix.h TestHSolve.h HinesMatrix.cpp
HSolvePassive.o: HSolvePassive.h HinesMatrix.h HSolveStruct.h HSolveUtils.h TestHSolve.h ../biophysics/Compartment.h
RateLookup.o: RateLookup.h
HSolveActive.o: HSolveActive.h RateLookup.h HSolvePassive.h HinesMatrix.h HSolveStruct.h
HSolveActiveSetup.o: HSolveActive.h RateLookup.h HSolvePassive.h HinesMatrix.h HSolveStruct.h HSolveUtils.h ../biophysics/HHChannelBase.h ../biophysics/HHChannel.h ../biophysics/ChanBase.h ../biophysics/HHGate.h ../biophysics/CaConc.h
HSolveInterface.o: HSolve.h HSolveActive.h RateLookup.h HSolvePassive.h HinesMatrix.h HSolveStruct.h PN2S_Proxy.cpp PN2S_Proxy.h
HSolve.o: ../biophysics/Compartment.h ZombieCompartment.h ../biophysics/CaConc.h ZombieCaConc.h ../biophysics/HHGate.h ../biophysics/ChanBase.h ../biophysics/ChanCommon.h ../biophysics/HHChannelBase.h ../biophysics/HHChannel.h ZombieHHChannel.h HSolve.h HSolveActive.h RateLookup.h HSolvePassive.h HinesMatrix.h HSolveStruct.h ../basecode/ElementValueFinfo.h
ZombieCompartment.o: ../biophysics/CompartmentBase.h ZombieCompartment.h ../randnum/randnum.h ../biophysics/Compartment.h HSolve.h HSolveActive.h RateLookup.h HSolvePassive.h HinesMatrix.h HSolveStruct.h ../basecode/ElementValueFinfo.h
ZombieCaConc.o: ZombieCaConc.h ../biophysics/CaConc.h HSolve.h HSolveActive.h RateLookup.h HSolvePassive.h HinesMatrix.h HSolveStruct.h ../basecode/ElementValueFinfo.h
ZombieHHChannel.o: ZombieHHChannel.h ../biophysics/HHChannelBase.h ../biophysics/HHChannel.h ../biophysics/ChanBase.h ../biophysics/ChanCommon.h ../biophysics/HHGate.h HSolve.h HSolveActive.h RateLookup.h HSolvePassive.h HinesMatrix.h HSolveStruct.h ../basecode/ElementValueFinfo.h
PN2S_Proxy.o: PN2S_Proxy.cpp PN2S_Proxy.h
.cpp.o:
$(CXX) $(CXXFLAGS) $(SMOLDYN_FLAGS) -I. -I../basecode -I../msg -I./PN2S/libs -I./PN2S/libs/tbb/include $< -c -I/usr/local/cuda/include
$(TARGET): $(OBJ) $(SMOLDYN_OBJ) $(HEADERS) $(SUBDIR)
@(for i in $(SUBDIR) ; do $(MAKE) -C $$i; done)
$(LD) -r -o $(TARGET) $(OBJ) $(SMOLDYN_OBJ) $(SMOLDYN_LIB_PATH) $(SMOLDYN_LIBS) $(GSL_LIBS) $(CLIB)
$(SUBDIR): force
@(for i in $(SUBDIR) ; do $(MAKE) -C $$i; done)
.PHONY: force
force :;
clean:
@(for i in $(SUBDIR) ; do $(MAKE) -C $$i clean; done)
rm -f *.o $(TARGET) core core.*