summaryrefslogtreecommitdiff
path: root/src/gutenprintui2/Makefile.am
blob: 6b93566a8caab1bf47eca070a720009650b81758 (plain)
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
91
92
93
94
95
96
97
98
99
100
101
## $Id: Makefile.am,v 1.5 2005/06/26 10:56:51 rleigh Exp $
## Copyright (C) 2000 Roger Leigh
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

## Process this file with automake to produce Makefile.in.

AUTOMAKE_OPTIONS = 1.4 gnu

@SET_MAKE@

MAINT_CHARSET = latin1

include $(top_srcdir)/scripts/global.mk


## Variables

m4datadir = $(datadir)/aclocal
pkgconfigdatadir = $(libdir)/pkgconfig


## Programs

if BUILD_LIBGUTENPRINTUI2
lib_LTLIBRARIES = libgutenprintui2.la
endif

libgutenprintui2_la_SOURCES =			\
	printrcy.y				\
	printrcl.l				\
	printrc.h				\
	panel.c					\
	plist.c					\
	ui-utils.c				\
	print-image-thumbnail.c			\
	curve.c					\
	gammacurve.c				\
	typebuiltins.c				\
	gutenprintui-internal.h

libgutenprintui2_la_LIBADD = $(GUTENPRINTUI2_LIBDEPS)
# Uncommment to build an unversioned library (version in soname)
libgutenprintui2_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS) $(GUTENPRINT_CFLAGS) $(GTK2_CFLAGS)
#libgutenprintui2_la_LDFLAGS = -release $(GUTENPRINT_VERSION) \
#	-rpath $(libdir) -no-undefined
# Uncomment to build a versioned library
libgutenprintui2_la_LDFLAGS = \
 -version-info  $(GUTENPRINTUI2_CURRENT_INTERFACE):$(GUTENPRINTUI2_INTERFACE_AGE):$(GUTENPRINTUI2_BINARY_AGE) \
 -rpath $(libdir) -no-undefined

AM_LFLAGS = -i
AM_YFLAGS = -d

printrcl.o: printrcy.o
plist.o: printrcy.o

## Data

pkgconfigdata_DATA = gutenprintui2.pc


## Rules

# Copied from include/gutenprintui2/Makefile.am
# This duplication needs fixing somehow
stpui_public_h_sources = \
	../../include/gutenprintui2/gutenprintui.h	\
	../../include/gutenprintui2/curve.h		\
	../../include/gutenprintui2/gammacurve.h

if MAINTAINER_MODE
typebuiltins_extra_deps = Makefile
endif

# Really need to depend upon $(stpui_public_h_sources) here...
$(srcdir)/typebuiltins.c: $(typebuiltins_extra_deps)
	( cd $(srcdir) && $(GLIB_MKENUMS) \
			--fhead "#include <gutenprintui2/gutenprintui.h>" \
			--fprod "\n/* enumerations from \"@filename@\" */" \
			--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[] = {" \
			--vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
			--vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
		$(stpui_public_h_sources) ) > $@


## Clean

MAINTAINERCLEANFILES = Makefile.in typebuiltins.c printrcl.c printrcy.c printrcy.h