File: Makefile.am

package info (click to toggle)
gwyddion 2.47-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 38,180 kB
  • ctags: 37,276
  • sloc: ansic: 317,531; sh: 5,122; xml: 3,583; python: 3,067; makefile: 2,694; cpp: 2,550; pascal: 418; perl: 154; ruby: 130; sed: 17
file content (195 lines) | stat: -rw-r--r-- 4,649 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# @(#) $Id: Makefile.am 19258 2016-11-15 08:25:23Z yeti-dn $

libgwyddion = $(top_builddir)/libgwyddion/libgwyddion2.la
libgwymodule = $(top_builddir)/libgwymodule/libgwymodule2.la
libgwyprocess = $(top_builddir)/libprocess/libgwyprocess2.la
libgwydraw = $(top_builddir)/libdraw/libgwydraw2.la
libgwydgets = $(top_builddir)/libgwydgets/libgwydgets2.la

libgwyapp2includedir = $(pkgincludedir)/app
uidatadir = $(pkgdatadir)/ui


if MODULE_DEPENDENCIES
libgwyapp_libadd = \
	$(libgwymodule) \
	$(libgwydgets) \
	$(libgwydraw) \
	$(libgwyprocess) \
	$(libgwyddion)
endif

libgwyapp2include_HEADERS = \
	app.h \
	data-browser.h \
	datachooser.h \
	file.h \
	filelist.h \
	funcuse.h \
	glmaterial-editor.h \
	gradient-editor.h \
	gwyapp.h \
	gwyapptypes.h \
	gwymoduleutils.h \
	gwymoduleutils-file.h \
	gwyplaintool.h \
	gwytool.h \
	help.h \
	log.h \
	logging.h \
	menu.h \
	meta.h \
	resource-editor.h \
	settings.h \
	undo.h \
	validate.h \
	wait.h

noinst_HEADERS = \
	mac_integration.h\
	authors.h \
	gwyappfilechooser.h \
	gwyappinternal.h \
	gwyddion.h \
	toolbox.h

uidata_DATA = toolbox.xml

bin_PROGRAMS = gwyddion
lib_LTLIBRARIES = libgwyapp2.la

BUILT_SOURCES = \
	authors.h

if OS_MSWIN
no_undefined = -no-undefined
export_symbols = -export-symbols libgwyapp2.def
win32_libs = -lole32
libgwyapp2_la_DEPENDENCIES = libgwyapp2.def
endif

# Must init
EXTRA_DIST = \
	README.objdata \
	toolbox.xml
CLEANFILES = libgwyapp2.def
MAINTAINERCLEANFILES = authors.h

MKENUM_NAME = gwyapptypes
MKENUM_ID = GWY_APP_TYPES
MKENUM_HFILES = \
	$(srcdir)/data-browser.h \
	$(srcdir)/gwymoduleutils.h \
	$(srcdir)/gwymoduleutils-file.h \
	$(srcdir)/gwyplaintool.h \
	$(srcdir)/gwytool.h \
	$(srcdir)/help.h \
	$(srcdir)/logging.h \
	$(srcdir)/menu.h \
	$(srcdir)/settings.h \
	$(srcdir)/validate.h
include $(top_srcdir)/utils/mkenum.mk

if OS_DARWIN
darwin_cflags = -ObjC -g
darwin_ldflags = -framework AppKit -framework ApplicationServices
endif

libgwyapp2.def: $(libgwyapp2_la_OBJECTS)
	$(AM_V_GEN)echo EXPORTS >libgwyapp2.def
	$(AM_V_at)for lo in $(libgwyapp2_la_OBJECTS); do \
		o=`sed "s/^pic_object='\\(.*\\)'/\\1/;t;d" "$$lo"`; \
		$(NM) --defined-only --demangle --no-sort "$$o" \
		| awk -F' ' '($$2=="T" && $$3 ~ /^gwy_/){print "     ",$$3}'; \
	done | sort >>libgwyapp2.def

AM_CFLAGS = $(darwin_cflags) @GTK_MAC_CFLAGS@ @FFTW3_CFLAGS@ @UNIQUE_CFLAGS@ @COMMON_CFLAGS@ @GIO_CFLAGS@
AM_CPPFLAGS = -I$(top_srcdir)
AM_LDFLAGS = $(darwin_ldflags)

# In following order do:
# Any code change     C:   R++: A
# Any iface change    C++: 0:   A
# Adding ifaces       C:   R:   A++
# Changing ifaces     C:   R:   0
libversion = -version-info 17:0:17
#libversion = -release @LIBRARY_RELEASE@
libgwyapp2_la_LDFLAGS = @GTKGLEXT_LIBS@ @GIO_LIBS@ @BASIC_LIBS@ $(win32_libs) -export-dynamic $(no_undefined) $(export_symbols) $(libversion)
libgwyapp2_la_CPPFLAGS = -DG_LOG_DOMAIN=\"GwyApp\" $(AM_CPPFLAGS)
libgwyapp2_la_LIBADD = $(libgwyapp_libadd)

libgwyapp2_la_SOURCES = \
	app.c \
	data-browser.c \
	data-browser-aux.c \
	datachooser.c \
	file.c \
	filelist.c \
	funcuse.c \
	glmaterial-editor.c \
	gradient-editor.c \
	gwyappfilechooser.c \
	gwyapptypes.c \
	gwymoduleutils.c \
	gwymoduleutils-file.c \
	gwyplaintool.c \
	gwytool.c \
	help.c \
	log.c \
	logging.c \
	menu.c \
	meta.c \
	settings.c \
	resource-editor.c \
	undo.c \
	validate.c \
	wait.c

gwyddion_SOURCES = \
	about.c \
	gwyddion.c \
	mac_integration.c \
	remote.c \
	remote-unique.c \
	remote-win32.c \
	remote-x11.c \
	splash.c \
	tips.c \
	toolbox.c \
	toolbox-editor.c \
	toolbox-spec.c


gwyddion_LDADD = @COMMON_LDFLAGS@ @GTK_MAC_LIBS@ @GTKGLEXT_LIBS@ @FFTW3_LIBS@ @UNIQUE_LIBS@ @GIO_LIBS@ @BASIC_LIBS@ $(LIBXMU) \
	libgwyapp2.la \
	$(libgwymodule) \
	$(libgwydgets) \
	$(libgwydraw) \
	$(libgwyprocess) \
	$(libgwyddion)

# This is ugly a bit, but uses only very basic sed constructs
authors.h: ${top_srcdir}/AUTHORS ${top_srcdir}/NEWS
	$(AM_V_GEN){ \
		echo '/* This is a GENERATED file */'; \
		echo '/*< private_header >*/'; \
		echo 'static const gchar developers[] ='; \
		sed -n -e '/=== Developers ===/,/^$$/{' \
			-e 's/^[ =].*//' -e t -e 's/^$$//' -e t \
			-e 's/ *<.*//' -e 's/.*/    "&\\n"/' -e p -e '}' \
			${top_srcdir}/AUTHORS; \
		echo ';'; \
		echo 'static const gchar translators[] ='; \
		sed -n -e '/=== Translators ===/,/^$$/{' \
			-e 's/^[ =].*//' -e t -e 's/^$$//' -e t \
			-e 's/ *<.*//' -e 's/.*/    "&\\n"/' -e p -e '}' \
			${top_srcdir}/AUTHORS; \
		echo ';'; \
		echo 'static const gchar releasedate[] ='; \
		sed -n -e '1s/^.*(/    "/' -e '1s/)/"/' -e '1p' -e '1q' \
			${top_srcdir}/NEWS; \
		echo ';'; \
	} >authors.h

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