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