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