1##  Makefile.am -- an automake template for a Makefile.in file
2##  Copyright (C) 2004, 2005, 2007, 2008  Olaf Meeuwissen
3##
4##  This file is part of the "Image Scan!" build infra-structure.
5##
6##  The "Image Scan!" build infra-structure is free software.
7##  You can redistribute it and/or modify it under the terms of the GNU
8##  General Public License as published by the Free Software Foundation;
9##  either version 2 of the License or at your option any later version.
10##
11##  This program is distributed in the hope that it will be useful, but
12##  WITHOUT ANY WARRANTY;  without even the implied warranty of FITNESS
13##  FOR A PARTICULAR PURPOSE or MERCHANTABILITY.
14##  See the GNU General Public License for more details.
15##
16##  You should have received a verbatim copy of the GNU General Public
17##  License along with this program; if not, write to:
18##
19##      Free Software Foundation, Inc.
20##      59 Temple Place, Suite 330
21##      Boston, MA  02111-1307  USA
22
23if ENABLE_FRONTEND
24bin_PROGRAMS = iscan
25iscan_CPPFLAGS = \
26	-I$(top_srcdir)/include \
27	-I$(top_srcdir)/non-free \
28	-DLOCALEDIR=\"$(datadir)/locale\"
29iscan_CXXFLAGS = \
30	@GTK_CFLAGS@ \
31	@GIMP_CFLAGS@ \
32	@GDK_IMLIB_CFLAGS@
33iscan_LDADD = \
34	$(top_builddir)/lib/libimage-stream.la \
35	-lsane \
36	@LIBLTDL@ \
37	@GTK_LIBS@ \
38	@GDK_IMLIB_LIBS@ \
39	$(top_builddir)/non-free/libesmod.so
40iscan_SOURCES = \
41	$(iscan_source_files)
42endif
43
44iscan_source_files = \
45	file-selector.cc \
46	file-selector.h \
47	gimp-plugin.h \
48	pisa_aleart_dialog.cc \
49	pisa_aleart_dialog.h \
50	pisa_change_unit.cc \
51	pisa_change_unit.h \
52	pisa_configuration.cc \
53	pisa_configuration.h \
54	pisa_default_val.h \
55	pisa_enums.h \
56	pisa_error.cc \
57	pisa_error.h \
58	pisa_esmod_structs.h \
59	pisa_gamma_correction.cc \
60	pisa_gamma_correction.h \
61	pisa_gimp.cc \
62	pisa_gimp.h \
63	pisa_gimp_1_0_patch.h \
64	pisa_image_controls.cc \
65	pisa_image_controls.h \
66	pisa_img_converter.cc \
67	pisa_img_converter.h \
68	pisa_main.cc \
69	pisa_main.h \
70	pisa_main_window.cc \
71	pisa_main_window.h \
72	pisa_marquee.cc \
73	pisa_marquee.h \
74	pisa_preference.cc \
75	pisa_preference.h \
76	pisa_preview_window.cc \
77	pisa_preview_window.h \
78	pisa_progress_window.cc \
79	pisa_progress_window.h \
80	pisa_sane_scan.cc \
81	pisa_sane_scan.h \
82	pisa_scan_manager.cc \
83	pisa_scan_manager.h \
84	pisa_scan_selector.cc \
85	pisa_scan_selector.h \
86	pisa_scan_tool.cc \
87	pisa_scan_tool.h \
88	pisa_settings.cc \
89	pisa_settings.h \
90	pisa_structs.h \
91	pisa_tool.cc \
92	pisa_tool.h \
93	pisa_view_manager.cc \
94	pisa_view_manager.h \
95	xpm_data.cc \
96	xpm_data.h
97
98
99##  Utilities to help test GUI functionality.
100
101if ENABLE_FRONTEND
102
103noinst_PROGRAMS = \
104	test-file-selector
105
106
107test_file_selector_CPPFLAGS = \
108	-I$(top_srcdir)/include
109test_file_selector_CXXFLAGS = \
110	$(GTK_CFLAGS)
111test_file_selector_LDADD    = \
112	$(top_builddir)/lib/libimage-stream.la \
113	$(GTK_LIBS)
114test_file_selector_SOURCES  = \
115	$(test_file_selector_files)
116endif
117
118test_file_selector_files = \
119	test-file-selector.cc
120
121
122EXTRA_DIST = \
123	$(iscan_source_files) \
124	$(test_file_selector_files)
125