-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.am
executable file
·131 lines (112 loc) · 3.82 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
122
123
124
125
126
127
128
129
130
131
## Process this file with automake to produce Makefile.in
## Special note: Run buildDoxy.sh here to generate the html reference documentation.
## Then copy or move the html directory to the appropriate place.
if USE_GMAKE
MAKE = gmake
endif
includedir = $(prefix)/include/CLHEP
SUBDIRS = Units Utility Vector Evaluator GenericFunctions Geometry \
Random Matrix RandomObjects Cast RefCount Exceptions
bin_SCRIPTS = clheplib clhep-config
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
CXXFLAGS = @CXXFLAGS@
CXXLD = $(CXX)
CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
# these if/else blocks will be parsed by automake and translated
if BUILD_SHARED
shareddir = shared
if BUILD_VISUAL
lib_shared = CLHEP-@VERSION@.$(SHEXT)
else
lib_shared = libCLHEP-@VERSION@.$(SHEXT)
endif
SHFLAGS = @MY_SHFLAGS@
SHLINK = @MY_SHLINK@
SHNAME = @MY_SHNAME@
endif
if BUILD_STATIC
CLHEPLIB = libCLHEP-@[email protected]
endif
if BUILD_VISUAL
MAKE_STATIC_CLHEP = $(COPY_P) libCLHEP-@[email protected] libCLHEP.a
MAKE_SHARED_CLHEP = $(COPY_P) CLHEP-@VERSION@.$(SHEXT) CLHEP.$(SHEXT)
else
MAKE_STATIC_CLHEP = $(LN_S) libCLHEP-@[email protected] libCLHEP.a
MAKE_SHARED_CLHEP = $(LN_S) libCLHEP-@VERSION@.$(SHEXT) libCLHEP.$(SHEXT)
endif
CLEANFILES = clheplib library-list $(CLHEPLIB) $(lib_shared) ClhepVersion.h
all-local: $(CLHEPLIB) $(lib_shared) versionheader
$(CLHEPLIB):
-rm -f $@
liblist=`$(top_builddir)/getObjectList -static $(SUBDIRS)`; \
$(AR) $(ARFLAGS) $@ $$liblist; $(RANLIB) $@
if BUILD_VISUAL
$(lib_shared):
-rm -f $@
liblist=`$(top_builddir)/getObjectList -shared $(SUBDIRS)`; \
$(SHLINK) $(SHNAME)$@ $$liblist
else
$(lib_shared):
-rm -f $@
liblist=`$(top_builddir)/getObjectList -shared $(SUBDIRS)`; \
$(CXXLINK) $(SHLINK) $(SHNAME)$@ $$liblist -o $@
endif
docs:
list='$(SUBDIRS)'; for subdir in $$list; do \
if test -d "$$subdir"/doc; then (cd $$subdir; $(MAKE) $(AM_MAKEFLAGS) docs; cd .. ); fi; \
done
install-docs:
list='$(SUBDIRS)'; for subdir in $$list; do \
if test -d "$$subdir"/doc; then (cd $$subdir; $(MAKE) $(AM_MAKEFLAGS) install-docs; cd .. ); fi; \
done
clheplib: build-clheplib
./build-clheplib $(SUBDIRS)
versionheader: build-header
./build-header
install-exec-local: install-CLHEPLIB install-versionheader
install-CLHEPLIB: $(CLHEPLIB) $(lib_shared)
@$(NORMAL_INSTALL)
test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
@list='$(CLHEPLIB)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_DATA) '$$p' '$(DESTDIR)$(libdir)/$$p'"; \
$(INSTALL_DATA) "$$p" "$(DESTDIR)$(libdir)/$$p"; \
else :; fi; \
done
@$(POST_INSTALL)
@list='$(CLHEPLIB)'; for p in $$list; do \
if test -f $$p; then \
echo " $(RANLIB) '$(DESTDIR)$(libdir)/$$p'"; \
$(RANLIB) "$(DESTDIR)$(libdir)/$$p"; \
if test -f $(DESTDIR)$(libdir)/libCLHEP.a; then \
(rm -f $(DESTDIR)$(libdir)/libCLHEP.a); fi; \
(cd $(DESTDIR)$(libdir) && $(MAKE_STATIC_CLHEP) ); \
else :; fi; \
done
@$(NORMAL_INSTALL)
@list='$(lib_shared)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL) '$$p' '$(DESTDIR)$(libdir)/$$p'"; \
$(INSTALL) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
else :; fi; \
done
@$(POST_INSTALL)
@list='$(lib_shared)'; for p in $$list; do \
if test -f $$p; then \
if test -f $(DESTDIR)$(libdir)/libCLHEP.a; then \
(rm -f $(DESTDIR)$(libdir)/libCLHEP.$(SHEXT)); fi; \
(cd $(DESTDIR)$(libdir) && $(MAKE_SHARED_CLHEP) ); \
else :; fi; \
done
install-versionheader: versionheader
@$(NORMAL_INSTALL)
test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
if test -f ClhepVersion.h; then \
echo " $(INSTALL_DATA) 'ClhepVersion.h' '$(DESTDIR)$(includedir)/ClhepVersion.h'"; \
$(INSTALL_DATA) "ClhepVersion.h" "$(DESTDIR)$(includedir)/ClhepVersion.h"; \
else :; fi
@$(POST_INSTALL)
clean-local:
rm -f *-dep-list
rm -f *-library-list