File: Makefile.am

package info (click to toggle)
gyoto 2.0.2-7
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 9,444 kB
  • sloc: cpp: 42,330; sh: 4,512; python: 3,436; xml: 2,865; makefile: 691; ansic: 346
file content (79 lines) | stat: -rw-r--r-- 3,213 bytes parent folder | download | duplicates (3)
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
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -I@top_srcdir@/include $(XERCES_CFLAGS) $(UDUNITS_CFLAGS) $(BOOST_CPPFLAGS) $(CFITSIO_CFLAGS) $(ARBLIB_CFLAGS) $(AEAE_CFLAGS) $(EIGEN_CFLAGS)
AM_LDFLAGS  = $(XERCES_LIBS) -export-dynamic $(PTHREAD_LIBS) \
	      $(UDUNITS_LIBS) $(CFITSIO_LIBS) $(ARBLIB_LIBS)
AM_CXXFLAGS = $(PTHREAD_CFLAGS) -DGYOTO_PKGLIBDIR=\"${pkglibdir}\"
if HAVE_LOCALPKGLIBDIR
AM_CXXFLAGS += -DGYOTO_LOCALPKGLIBDIR=\"${localpkglibdir}\"
endif
if HAVE_MPI
AM_LDFLAGS += $(BOOST_MPI_LDFLAGS) $(BOOST_MPI_LIBS) \
	      $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
endif


# HEADERS: where they are, where to install them
library_includedir=$(includedir)/Gyoto
library_include_HEADERS=$(top_srcdir)/include/*.h $(top_builddir)/include/*.h

# MAIN LIBRARY
lib_LTLIBRARIES = libgyoto@FEATURES@.la
libgyoto@FEATURES@_la_SOURCES =  \
	Value.C Property.C Object.C \
	Astrobj.C Factory.C Register.C SmartPointer.C Utils.C Metric.C	\
	WIP.C Worldline.C Photon.C Scenery.C			\
	WorldlineIntegState.C Error.C Screen.C Spectrum.C		\
	Spectrometer.C ComplexSpectrometer.C UniformSpectrometer.C \
	StandardAstrobj.C ThinDisk.C Converters.C Functors.C Hooks.C \
	GridData2D.C FitsRW.C
libgyoto@FEATURES@_la_LIBS = $(XERCES_LIBS)
libgyoto@FEATURES@_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(VERSINFO)

# STANDARD PLUGIN
soverdir=$(pkglibdir)/@sovers@
sover_LTLIBRARIES = libgyoto-stdplug.la
libgyoto_stdplug_la_CPPFLAGS = $(AM_CPPFLAGS) -DGYOTO_PLUGIN=stdplug
libgyoto_stdplug_la_SOURCES =  KerrBL.C KerrKS.C Minkowski.C \
	ChernSimons.C RezzollaZhidenko.C Hayward.C SchwarzschildHarmonic.C \
	Star.C StarTrace.C FixedStar.C InflateStar.C \
	Torus.C OscilTorus.C \
	PowerLawSpectrum.C BlackBodySpectrum.C \
	ThermalBremsstrahlungSpectrum.C \
	ThermalSynchrotronSpectrum.C \
	PowerLawSynchrotronSpectrum.C KappaDistributionSynchrotronSpectrum.C \
	ComplexAstrobj.C UniformSphere.C \
	ComplexMetric.C Shift.C PageThorneDisk.C \
	ThinDiskPL.C PolishDoughnut.C ThinDiskIronLine.C\
	DeformedTorus.C EquatorialHotSpot.C Jet.C Blob.C Plasmoid.C FreeStar.C ThickDisk.C\
	ThinDiskProfile.C SphericalAccretion.C StdPlug.C


# those files need cfitsio for some functionality
cfitsio_stdplug_sources = PatternDisk.C PatternDiskBB.C \
	DynamicalDisk.C DynamicalDiskBolometric.C \
	Disk3D.C DynamicalDisk3D.C DirectionalDisk.C XillverReflection.C \
	FlaredDiskSynchrotron.C ThinDiskGridIntensity.C
EXTRA_libgyoto_stdplug_la_SOURCES = $(cfitsio_stdplug_sources)

libgyoto_stdplug_la_SOURCES  +=	$(cfitsio_stdplug_sources)

libgyoto_stdplug_la_LDFLAGS = -module -export-dynamic $(AM_LDFLAGS) -avoid-version

# LORENE PLUGIN
if HAVE_LORENE
sover_LTLIBRARIES += libgyoto-lorene.la
endif
libgyoto_lorene_la_SOURCES = RotStar3_1.C NumericalMetricLorene.C \
	NeutronStar.C NeutronStarAnalyticEmission.C \
	NeutronStarModelAtmosphere.C LorenePlug.C
libgyoto_lorene_la_LDFLAGS = -module -export-dynamic $(LORENELDFLAGS) $(AM_LDFLAGS) -avoid-version
libgyoto_lorene_la_CPPFLAGS = $(AM_CPPFLAGS) $(LORENECPPFLAGS) -DGYOTO_PLUGIN=lorene

# pkg-config file
pkgconfigdir=$(libdir)/pkgconfig
pkgconfig_DATA=gyoto.pc

uninstall-hook:
	-rmdir $(DESTDIR)$(soverdir)
	-rmdir $(DESTDIR)$(pkglibdir)
	-rmdir $(DESTDIR)$(library_includedir)