File: Makefile.am

package info (click to toggle)
gwyddion 2.67-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 54,152 kB
  • sloc: ansic: 412,023; python: 7,885; sh: 5,492; makefile: 4,957; xml: 3,954; cpp: 2,107; pascal: 418; perl: 154; ruby: 130
file content (107 lines) | stat: -rw-r--r-- 3,209 bytes parent folder | download
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
# $Id: Makefile.am 26390 2024-06-16 12:09:56Z klapetek $

# Put sources that are for some reason disabled yet present in svn checkouts
# here.  This makes them distributed and translations of their messages are
# kept.  If we remove them completely, various bits can get lost.
disabled_sources =

cmapdir = $(pkglibdir)/modules/cmap

# 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 = \
	cmap_align.la \
	cmap_basicops.la \
	cmap_crop.la \
	cmap_cutter.la \
	cmap_extractcurve.la \
	cmap_fdfit.la \
	cmap_fit.la \
	cmap_fztofd.la \
	cmap_linestat.la \
	cmap_lockin.la \
	cmap_polylevel.la \
	cmap_possearch.la \
	cmap_simplemech.la \
	cmap_sinebg.la \
	cmap_volumize.la

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

cmap_LTLIBRARIES = \
	$(cmap_modules)

EXTRA_DIST = \
	$(disabled_sources)

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@ @OPENMP_CFLAGS@
AM_LDFLAGS = -avoid-version -module $(no_undefined) $(module_libadd) @OPENMP_CFLAGS@

# Bundlable modules, must be listed in cmap_la_SOURCES below.
cmap_align_la_SOURCES        = cmap_align.c
cmap_basicops_la_SOURCES     = cmap_basicops.c
cmap_crop_la_SOURCES         = cmap_crop.c
cmap_cutter_la_SOURCES       = cmap_cutter.c
cmap_extractcurve_la_SOURCES = cmap_extractcurve.c
cmap_fdfit_la_SOURCES        = cmap_fdfit.c
cmap_fit_la_SOURCES          = cmap_fit.c
cmap_fztofd_la_SOURCES       = cmap_fztofd.c
cmap_linestat_la_SOURCES     = cmap_linestat.c
cmap_lockin_la_SOURCES       = cmap_lockin.c
cmap_polylevel_la_SOURCES    = cmap_polylevel.c
cmap_possearch_la_SOURCES    = cmap_possearch.c
cmap_simplemech_la_SOURCES   = cmap_simplemech.c
cmap_sinebg_la_SOURCES       = cmap_sinebg.c
cmap_volumize_la_SOURCES     = cmap_volumize.c

cmap_la_SOURCES = \
	$(cmap_align_la_SOURCES) \
	$(cmap_basicops_la_SOURCES) \
	$(cmap_crop_la_SOURCES) \
	$(cmap_cutter_la_SOURCES) \
	$(cmap_extractcurve_la_SOURCES) \
        $(cmap_fdfit_la_SOURCES) \
        $(cmap_fit_la_SOURCES) \
        $(cmap_fztofd_la_SOURCES) \
	$(cmap_linestat_la_SOURCES) \
	$(cmap_lockin_la_SOURCES) \
        $(cmap_polylevel_la_SOURCES) \
        $(cmap_possearch_la_SOURCES) \
	$(cmap_simplemech_la_SOURCES) \
	$(cmap_sinebg_la_SOURCES) \
	$(cmap_volumize_la_SOURCES) \
	cmap.c

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

CLEAN_FILES = cmap.c

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