Makefile.am 3.48 KB
Newer Older
1
2
## Process this file with automake to produce Makefile.in

Lynn Garren's avatar
Lynn Garren committed
3
4
5
6
if USE_GMAKE
  MAKE = gmake
endif

7
8
INCLUDES = -I$(top_builddir)

Lynn Garren's avatar
Lynn Garren committed
9
libCLHEP_GenericFunctions_@VERSION@_a_SOURCES = \
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
	Abs.cc       \
	AbsFunctional.cc       \
	AbsFunction.cc       \
	AbsParameter.cc       \
	ACos.cc       \
	AnalyticConvolution.cc       \
	ArrayFunction.cc       \
	ASin.cc       \
	AssociatedLaguerre.cc       \
	AssociatedLegendre.cc       \
	ATan.cc       \
	BivariateGaussian.cc       \
	ConstMinusFunction.cc       \
	ConstMinusParameter.cc       \
	ConstOverFunction.cc       \
	ConstOverParameter.cc       \
	ConstPlusFunction.cc       \
	ConstPlusParameter.cc       \
	ConstTimesFunction.cc       \
	ConstTimesParameter.cc       \
	Cos.cc       \
	CumulativeChiSquare.cc       \
	DefiniteIntegral.cc       \
	Erf.cc       \
	Exp.cc       \
	Exponential.cc       \
	FixedConstant.cc       \
	FloatingConstant.cc       \
	FunctionComposition.cc       \
	FunctionConvolution.cc       \
	FunctionDifference.cc       \
	FunctionDirectProduct.cc       \
	FunctionNegation.cc       \
	FunctionNoop.cc       \
	FunctionNumDeriv.cc       \
	FunctionPlusParameter.cc       \
	FunctionProduct.cc       \
	FunctionQuotient.cc       \
	FunctionSum.cc       \
	FunctionTimesParameter.cc       \
	Gaussian.cc       \
	IncompleteGamma.cc       \
	Landau.cc       \
	LikelihoodFunctional.cc       \
	Ln.cc       \
	LogGamma.cc       \
	LogisticFunction.cc       \
	Mod.cc       \
	Parameter.cc       \
	ParameterDifference.cc       \
	ParameterNegation.cc       \
	ParameterProduct.cc       \
	ParameterQuotient.cc       \
	ParameterSum.cc       \
	PeriodicRectangular.cc       \
	Power.cc       \
	Psi2Hydrogen.cc       \
	PtRelFcn.cc       \
68
	PuncturedSmearedExp.cc \
69
70
71
72
73
74
75
76
77
78
79
80
	RCBase.cc       \
	Rectangular.cc       \
	ReverseExponential.cc       \
	RKIntegrator.cc       \
	Sigma.cc	\
	Sin.cc       \
	Sqrt.cc       \
	Square.cc       \
	Tan.cc       \
	TrivariateGaussian.cc       \
	Variable.cc       \
	X.cc
Lynn Garren's avatar
Lynn Garren committed
81
82
83
84
85
86

libCLHEP_GenericFunctions_@VERSION@_so_OBJECTS = $(patsubst %.cc,$(shareddir)/%.$(OBJEXT),$(libCLHEP_GenericFunctions_@VERSION@_a_SOURCES))

# these if/else blocks will be parsed by automake and translated
if BUILD_SHARED
  shareddir = shared
Lynn Garren's avatar
Lynn Garren committed
87
88
89
if BUILD_VISUAL
  lib_shared = CLHEP-GenericFunctions-@VERSION@.$(SHEXT)
else
Lynn Garren's avatar
Lynn Garren committed
90
  lib_shared = libCLHEP-GenericFunctions-@VERSION@.$(SHEXT)
Lynn Garren's avatar
Lynn Garren committed
91
endif
Lynn Garren's avatar
Lynn Garren committed
92
  SHFLAGS = @MY_SHFLAGS@
93
  SHLINK = @MY_SHLINK@ @MY_SHEXTRA@
Lynn Garren's avatar
Lynn Garren committed
94
95
96
97
98
99
100
101
102
103
104
105
106
  SHNAME = @MY_SHNAME@
endif
if BUILD_STATIC
  lib_LIBRARIES = libCLHEP-GenericFunctions-@VERSION@.a
endif

CLEANFILES =  $(lib_shared)

all-local: $(shareddir) $(lib_shared)

$(shareddir):
	test -d $(shareddir) || mkdir $(shareddir)

Lynn Garren's avatar
Lynn Garren committed
107
108
109
110
111
112
113
if BUILD_VISUAL
$(lib_shared): $(libCLHEP_GenericFunctions_@VERSION@_so_OBJECTS)
	$(SHLINK) $(SHNAME)$@ $(libCLHEP_GenericFunctions_@VERSION@_so_OBJECTS)

$(shareddir)/%.$(OBJEXT): %.cc
	$(CXXCOMPILE) $(SHFLAGS) /c /Fo$@ $<
else
Lynn Garren's avatar
Lynn Garren committed
114
$(lib_shared): $(libCLHEP_GenericFunctions_@VERSION@_so_OBJECTS)
Lynn Garren's avatar
Lynn Garren committed
115
	$(CXXLINK) $(SHLINK) $(SHNAME)$@ $(libCLHEP_GenericFunctions_@VERSION@_so_OBJECTS)
Lynn Garren's avatar
Lynn Garren committed
116
117
118

$(shareddir)/%.$(OBJEXT): %.cc
	$(CXXCOMPILE) $(SHFLAGS) -c -o $@ $<
Lynn Garren's avatar
Lynn Garren committed
119
endif
Lynn Garren's avatar
Lynn Garren committed
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135

install-exec-local: $(lib_shared)
	@$(NORMAL_INSTALL)
	test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
	@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

clean-local:
	-test -d $(shareddir) && rm -f $(shareddir)/*.$(OBJEXT)

distclean-local:
	-test -d $(shareddir) && rm -rf ./$(shareddir)