1## $Id: Makefile.am,v 1.8 2008/10/24 00:37:14 rleigh 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 27m4datadir = $(datadir)/aclocal 28pkgconfigdatadir = $(libdir)/pkgconfig 29 30 31## Programs 32 33if BUILD_LIBGUTENPRINTUI2 34lib_LTLIBRARIES = libgutenprintui2.la 35endif 36 37libgutenprintui2_la_SOURCES = \ 38 printrcy.y \ 39 printrcl.l \ 40 printrc.h \ 41 panel.c \ 42 plist.c \ 43 ui-utils.c \ 44 print-image-thumbnail.c \ 45 curve.c \ 46 gammacurve.c \ 47 typebuiltins.c \ 48 gutenprintui-internal.h 49 50libgutenprintui2_la_LIBADD = $(GUTENPRINTUI2_LIBDEPS) 51# Uncommment to build an unversioned library (version in soname) 52libgutenprintui2_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS) $(GUTENPRINT_CFLAGS) $(GTK2_CFLAGS) 53#libgutenprintui2_la_LDFLAGS = -release $(GUTENPRINT_VERSION) \ 54# -rpath $(libdir) -no-undefined 55# Uncomment to build a versioned library 56libgutenprintui2_la_LDFLAGS = \ 57 -version-info $(GUTENPRINTUI2_CURRENT_INTERFACE):$(GUTENPRINTUI2_INTERFACE_AGE):$(GUTENPRINTUI2_BINARY_AGE) \ 58 -rpath $(libdir) -no-undefined 59 60AM_LFLAGS = -i 61AM_YFLAGS = -d 62 63printrcl.o: printrcy.o 64plist.o: printrcy.o 65 66## Data 67 68if BUILD_LIBGUTENPRINTUI2 69pkgconfigdata_DATA = gutenprintui2.pc 70endif 71 72 73## Rules 74 75# Copied from include/gutenprintui2/Makefile.am 76# This duplication needs fixing somehow 77stpui_public_h_sources = \ 78 ../../include/gutenprintui2/gutenprintui.h \ 79 ../../include/gutenprintui2/curve.h \ 80 ../../include/gutenprintui2/gammacurve.h 81 82if MAINTAINER_MODE 83typebuiltins_extra_deps = Makefile 84endif 85 86# Really need to depend upon $(stpui_public_h_sources) here... 87$(srcdir)/typebuiltins.c: $(typebuiltins_extra_deps) 88 ( cd $(srcdir) && $(GLIB_MKENUMS) \ 89 --fhead "#include <gutenprintui2/gutenprintui.h>" \ 90 --fprod "\n/* enumerations from \"@filename@\" */" \ 91 --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \ 92 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ 93 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \ 94 $(stpui_public_h_sources) ) > $@.tmp 95 mv $@.tmp $@ 96 97 98## Clean 99 100MAINTAINERCLEANFILES = Makefile.in typebuiltins.c typebuiltins.c.tmp printrcl.c printrcy.c printrcy.h 101