File: Makefile.am

package info (click to toggle)
gnumeric 1.12.32-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 129,260 kB
  • ctags: 25,173
  • sloc: ansic: 288,510; xml: 55,625; perl: 5,366; sh: 4,503; makefile: 2,905; yacc: 1,330; python: 203
file content (90 lines) | stat: -rw-r--r-- 2,035 bytes parent folder | download | duplicates (5)
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
AM_CPPFLAGS = \
    -DGNOMELOCALEDIR=\""$(datadir)/locale"\" 		\
    -I$(top_srcdir)/src	-I$(top_builddir)/src		\
    $(GNUMERIC_CFLAGS) $(Z_CPPFLAGS)

BUILT_SOURCES =					\
	biff-types.c

gnumeric_plugin_exceldir = $(gnumeric_plugindir)/excel
xmldir = $(gnumeric_plugin_exceldir)
gnumeric_plugin_excel_LTLIBRARIES = excel.la
excel_la_LDFLAGS = -module $(GNUMERIC_PLUGIN_LDFLAGS)

# - Why do we need Z_LIBS here?
# - Because ms-escher.c contains a call to uncompress().
# - But I tried to remove it and everything worked fine; how is that possible?
# - Because when libgsf and libz are dynamic libraries, it's enough if you
#   link against libgsf.  But if libz is a static library, then you need to
#   list it here in order to get it.
#
# To sum up, keep $(Z_LIBS) here, even though it's needed only in a rare case.
#
excel_la_LIBADD  = $(Z_LIBS)

excel_la_SOURCES =		\
	boot.c			\
	boot.h			\
	excel.h			\
	formula-types.h		\
	ms-excel-biff.h		\
	ms-biff.c		\
	ms-biff.h		\
	biff-types.c		\
	biff-types.h		\
	escher-types.h		\
	ms-container.c		\
	ms-container.h		\
	ms-escher.c		\
	ms-escher.h		\
	ms-excel-util.c	        \
	ms-excel-util.h	        \
	ms-excel-xf.h		\
	ms-excel-read.c	 	\
	ms-excel-read.h		\
	ms-excel-write.c	\
	ms-excel-write.h	\
	ms-formula-read.c	\
	ms-formula-read.h	\
	ms-formula-write.c	\
	ms-formula-write.h	\
	ms-obj.c		\
	ms-obj.h		\
	ms-chart.h		\
	ms-chart.c		\
	rc4.c			\
	rc4.h			\
	crypt-md4.c		\
	crypt-md4.h		\
	md5.c			\
	md5.h			\
	\
	excel-xml-read.c	\
	\
	xls-read-pivot.c	\
	xls-write-pivot.c	\
	\
	xlsx-utils.h		\
	xlsx-utils.c		\
	xlsx-read.c		\
	xlsx-write.c

biff-types.c: biff-types.h $(top_srcdir)/tools/biffnames
	$(PERL) $(top_srcdir)/tools/biffnames <$< >$@.tmp
	mv $@.tmp $@

xml_in_files = plugin.xml.in
xml_DATA = $(xml_in_files:.xml.in=.xml)

@INTLTOOL_XML_RULE@

EXTRA_DIST = $(xml_in_files)	\
	xlsx-read-docprops.c	\
	xlsx-write-docprops.c	\
	xlsx-read-pivot.c	\
	xlsx-write-pivot.c	\
	xlsx-read-color.c	\
	xlsx-read-drawing.c	\
	xlsx-write-drawing.c

CLEANFILES = $(xml_DATA)