forked from neuronsimulator/nrn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
executable file
·121 lines (105 loc) · 2.4 KB
/
Makefile.am
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
## Subdirectories must be specified in the order they have to be compiled.
## A library is produced from _each_ subdirectory. This is because automake
## (version 1.4) doesn't yet work well with source files in multiple
## directories.
##
## The order of compilation is important in some cases. Directories are
## searched in the order they are specified.
READLINE_SUBDIRS = readline
MEMACS_SUBDIRS = memacs
if BUILD_MINGW
NMODL_SUBDIRS = modlunit nmodl
else
NMODL_SUBDIRS = modlunit nmodl
endif
NRNOC_SUBDIRS = sparse sparse13 scopmath Random123 nrnmpi oc nrnoc
NRNIV_SUBDIRS = sundials mesch gnu ivoc nrncvode parallel nrniv
IVOS_SUBDIRS = ivos
NRNJAVA_SUBDIRS = nrnjava
NRNPYTHON_SUBDIRS = nrnpython
if NMODL_BUILD
nmodlbuild = $(NMODL_SUBDIRS)
else
nmodlbuild =
endif
if BUILD_MEMACS
memacsbuild = $(MEMACS_SUBDIRS)
else
memacsbuild =
endif
if BUILD_READLINE
readlinebuild = $(READLINE_SUBDIRS)
else
readlinebuild =
endif
if BUILD_NRNIV
nrnivbuild = $(NRNIV_SUBDIRS)
else
nrnivbuild =
endif
if BUILD_IVOS
ivosbuild = $(IVOS_SUBDIRS)
else
ivosbuild =
endif
if BUILD_NRNJAVA
nrnjavabuild = $(NRNJAVA_SUBDIRS)
else
nrnjavabuild =
endif
if BUILD_NRNPYTHON
nrnpythonbuild = $(NRNPYTHON_SUBDIRS)
endif
if BUILD_NEURONMUSIC
neuronmusicbuild = neuronmusic
else
neuronmusicbuild =
endif
if BUILD_CYGWIN
mos2nrnbuild =
else
if BUILD_MINGW
mos2nrnbuild =
else
mos2nrnbuild = uxnrnbbs
endif
endif
if BUILD_6229
build_6229 = ni_pci_6229
else
build_6229 =
endif
if NMODL_ONLY
SUBDIRS = $(nmodlbuild)
else
if NRNPYTHON_ONLY
SUBDIRS = $(nrnpythonbuild) mswin
else
SUBDIRS = $(readlinebuild) $(memacsbuild) $(nmodlbuild) $(NRNOC_SUBDIRS) \
$(nrnjavabuild) $(ivosbuild) $(nrnpythonbuild) \
$(build_6229) $(nrnivbuild) $(mos2nrnbuild) $(neuronmusicbuild) \
mac mswin
endif
endif
DIST_SUBDIRS = $(MEMACS_SUBDIRS) $(READLINE_SUBDIRS) $(NMODL_SUBDIRS) $(NRNOC_SUBDIRS) \
$(NRNJAVA_SUBDIRS) $(NRNIV_SUBDIRS) $(IVOS_SUBDIRS) \
$(NRNPYTHON_SUBDIRS) mswin uxnrnbbs mac ni_pci_6229 neuronmusic
dist-hook: $(npydir)
for subdir in $(npydir) ; do \
test -d "$(distdir)/$$subdir" \
|| $(mkdir_p) "$(distdir)/$$subdir" \
|| exit 1; \
done
if NRNPYTHON_ONLY
else
install-exec-hook:
echo "enter install-exec-hook in nrn/src/Makefile.am"
if BUILD_NRNMPI_DYNAMIC
cd nrnmpi ; \
NEED_RTLD_GLOBAL='-L$(libdir) -loc -lnrniv' ; \
export NEED_RTLD_GLOBAL ; \
$(RM) *.la ; \
$(MAKE) -e install
endif
echo "leave install-exec-hook in nrn/src/Makefile.am"
endif