File: Makefile.am

package info (click to toggle)
gwyddion 2.62-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 51,952 kB
  • sloc: ansic: 398,486; python: 7,877; sh: 5,492; makefile: 4,723; xml: 3,883; cpp: 1,969; pascal: 418; perl: 154; ruby: 130
file content (85 lines) | stat: -rw-r--r-- 2,129 bytes parent folder | download | duplicates (2)
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
# $Id: Makefile.am 25070 2022-10-06 15:01:28Z yeti-dn $

layerdir = $(pkglibdir)/modules/layer

# Only bundle modules without own dependencies.  If something goes wrong with
# any required libraries at run-time, it will at most break these individual
# unbundled modules, not the bundle.
bundlable_modules = \
	axis.la \
	cross.la \
	ellipse.la \
	lattice.la \
	line.la \
	path.la \
	point.la \
	projective.la \
	rectangle.la

# layer_modules is either the bundle or all the individual modules.
if MODULE_BUNDLING
layer_modules = layer.la
BUILT_SOURCES = layer.c
layer_la_CFLAGS = $(AM_CFLAGS) -DGWY_MODULE_BUNDLING
else
layer_modules = $(bundlable_modules)
endif

layer_LTLIBRARIES = \
	$(layer_modules)

noinst_HEADERS = \
	layer.h

if OS_MSWIN
no_undefined = -no-undefined
endif

if MODULE_DEPENDENCIES
module_libadd = \
	$(top_builddir)/app/libgwyapp2.la \
	$(top_builddir)/libdraw/libgwydraw2.la \
	$(top_builddir)/libgwyddion/libgwyddion2.la \
	$(top_builddir)/libgwydgets/libgwydgets2.la \
	$(top_builddir)/libgwymodule/libgwymodule2.la \
	$(top_builddir)/libprocess/libgwyprocess2.la \
	@GTK_LIBS@ @LIBM@
else
module_libadd = @LIBM@
endif

AM_CPPFLAGS = -I$(top_srcdir) -DG_LOG_DOMAIN=\"Module\"
AM_CFLAGS = @COMMON_CFLAGS@
AM_LDFLAGS = -avoid-version -module $(no_undefined) $(module_libadd)

# Bundlable modules, must be listed in layer_la_SOURCES below.
axis_la_SOURCES       = axis.c
cross_la_SOURCES      = cross.c
ellipse_la_SOURCES    = ellipse.c
lattice_la_SOURCES    = lattice.c
line_la_SOURCES       = line.c
path_la_SOURCES       = path.c
point_la_SOURCES      = point.c
projective_la_SOURCES = projective.c
rectangle_la_SOURCES  = rectangle.c

layer_la_SOURCES = \
	$(axis_la_SOURCES) \
	$(cross_la_SOURCES) \
	$(ellipse_la_SOURCES) \
	$(lattice_la_SOURCES) \
	$(line_la_SOURCES) \
	$(path_la_SOURCES) \
	$(point_la_SOURCES) \
	$(projective_la_SOURCES) \
	$(rectangle_la_SOURCES) \
	layer.h \
	layer.c

layer.c: $(srcdir)/Makefile.am $(top_srcdir)/utils/gen-module-bundle.sh
	$(SHELL) $(top_srcdir)/utils/gen-module-bundle.sh layer.c $(bundlable_modules)

CLEAN_FILES = layer.c

clean-local:
	rm -f core.* *~