Debian Codegraph @

src/main/Makefile.am

raw
1 ## Copyright (C) 2000 Roger Leigh
2 ##
3 ## This program is free software; you can redistribute it and/or modify
4 ## it under the terms of the GNU General Public License as published by
5 ## the Free Software Foundation; either version 2, or (at your option)
6 ## any later version.
7 ##
8 ## This program is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 ## GNU General Public License for more details.
12 ##
13 ## You should have received a copy of the GNU General Public License
14 ## along with this program. If not, see <https://www.gnu.org/licenses/>.
15
16 ## Process this file with automake to produce Makefile.in.
17
18 @SET_MAKE@
19
20 include $(top_srcdir)/scripts/global.mk
21
22
23 ## Variables
24
25 pkgconfigdatadir = $(libdir)/pkgconfig
26 pkgmoduledir = $(pkglibdir)/@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@/modules
27
28
29 ## Programs
30
31 # So we can maintainerclean these files even if
32 # modules aren't (currently) in use.
33 pkg_libraries = \
34 color-traditional.la \
35 print-canon.la \
36 print-escp2.la \
37 print-lexmark.la \
38 print-pcl.la \
39 print-dpl.la \
40 print-ps.la \
41 print-dyesub.la \
42 print-raw.la
43
44 if BUILD_MODULES
45 pkgmodule_LTLIBRARIES = \
46 $(pkg_libraries)
47 endif
48
49 color_traditional_la_SOURCES = \
50 print-color.c \
51 color-conversion.h \
52 color-conversions.c
53
54 color_traditional_la_LDFLAGS = -module -avoid-version
55
56 print_canon_la_SOURCES = \
57 print-canon.c \
58 print-canon.h \
59 canon-inks.h \
60 canon-media.h \
61 canon-modes.h \
62 canon-printers.h \
63 canon-media-mode.h
64
65 print_canon_la_LDFLAGS = -module -avoid-version
66
67 print_escp2_la_SOURCES = \
68 print-escp2.c \
69 escp2-driver.c \
70 print-escp2.h \
71 print-escp2-data.c \
72 escp2-channels.c \
73 escp2-papers.c \
74 escp2-resolutions.c
75 print_escp2_la_LDFLAGS = -module -avoid-version
76
77 print_lexmark_la_SOURCES = print-lexmark.c
78 print_lexmark_la_LDFLAGS = -module -avoid-version
79
80 print_pcl_la_SOURCES = print-pcl.c
81 print_pcl_la_LDFLAGS = -module -avoid-version
82
83 print_dpl_la_SOURCES = print-dpl.c
84 print_dpl_la_LDFLAGS = -module -avoid-version
85
86 print_ps_la_SOURCES = print-ps.c xmlppd.c xmlppd.h
87 print_ps_la_LDFLAGS = -module -avoid-version
88
89 print_dyesub_la_SOURCES = print-dyesub.c
90 print_dyesub_la_LDFLAGS = -module -avoid-version
91
92 print_raw_la_SOURCES = print-raw.c
93 print_raw_la_LDFLAGS = -module -avoid-version
94
95 lib_LTLIBRARIES = libgutenprint.la
96
97 module_SOURCES = \
98 $(color_traditional_la_SOURCES) \
99 $(print_canon_la_SOURCES) \
100 $(print_escp2_la_SOURCES) \
101 $(print_lexmark_la_SOURCES) \
102 $(print_pcl_la_SOURCES) \
103 $(print_dpl_la_SOURCES) \
104 $(print_ps_la_SOURCES) \
105 $(print_dyesub_la_SOURCES) \
106 $(print_raw_la_SOURCES)
107
108 if !BUILD_MODULES
109 libgutenprint_modules = $(module_SOURCES)
110 endif
111
112 mxml_SOURCES = \
113 mxml-attr.c \
114 mxml-file.c \
115 mxml-node.c \
116 mxml-search.c
117
118 libgutenprint_headers = \
119 dither-impl.h \
120 dither-inlined-functions.h \
121 generic-options.h \
122 gutenprint-internal.h
123
124 libgutenprint_la_SOURCES = \
125 array.c \
126 bit-ops.c \
127 channel.c \
128 color.c \
129 curve.c \
130 curve-cache.c \
131 dither-ed.c \
132 dither-eventone.c \
133 dither-inks.c \
134 dither-main.c \
135 dither-ordered.c \
136 dither-very-fast.c \
137 dither-predithered.c \
138 generic-options.c \
139 image.c \
140 buffer-image.c \
141 module.c \
142 path.c \
143 print-dither-matrices.c \
144 print-list.c \
145 print-papers.c \
146 print-util.c \
147 print-vars.c \
148 print-version.c \
149 print-weave.c \
150 printers.c \
151 refcache.c \
152 sequence.c \
153 string-list.c \
154 xml.c \
155 $(mxml_SOURCES) \
156 $(libgutenprint_headers) \
157 $(libgutenprint_modules)
158
159 libgutenprint_la_LIBADD = $(GUTENPRINT_LIBDEPS)
160 # Uncommment to build an unversioned library (version in soname)
161 #libgutenprint_version = -release $(GUTENPRINT_VERSION)
162 # Uncomment to build a versioned library
163 libgutenprint_version = -version-info $(GUTENPRINT_CURRENT_INTERFACE):$(GUTENPRINT_INTERFACE_AGE):$(GUTENPRINT_BINARY_AGE)
164 libgutenprint_la_LDFLAGS = $(libgutenprint_version) \
165 -rpath $(libdir) -no-undefined
166 # libtool currently needs a patch for symbol export to work correctly
167 # using a linker version script.
168 # -export-symbols $(srcdir)/libgutenprint.sym
169
170
171 ## Data
172
173 pkgconfigdata_DATA = gutenprint.pc
174
175
176 ## Clean
177
178 MAINTAINERCLEANFILES = Makefile.in $(pkg_libraries)
179
180 EXTRA_DIST = libgutenprint.sym