1## Process this file with automake to produce Makefile.in
2## Copyright (c) 1999-2002 Philip Kendall
3## Copyright (c) 2013-2015 Sergio Baldovi
4
5## This program is free software; you can redistribute it and/or modify
6## it under the terms of the GNU General Public License as published by
7## the Free Software Foundation; either version 2 of the License, or
8## (at your option) any later version.
9##
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty of
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13## GNU General Public License for more details.
14##
15## You should have received a copy of the GNU General Public License along
16## with this program; if not, write to the Free Software Foundation, Inc.,
17## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18##
19## Author contact information:
20##
21## E-mail: philip-fuse@shadowmagic.org.uk
22
23AUTOMAKE_OPTIONS = foreign
24
25ACLOCAL_AMFLAGS = -I m4
26
27bin_PROGRAMS = createhdf \
28	       fmfconv \
29	       listbasic \
30	       profile2map \
31	       raw2hdf \
32	       rzxdump \
33	       rzxtool \
34	       scl2trd \
35	       snap2tzx \
36	       snapconv \
37	       snapdump \
38	       tapeconv \
39	       tape2pulses \
40	       tzxlist
41
42if BUILD_AUDIOTOOLS
43bin_PROGRAMS += audio2tape tape2wav
44endif
45
46if BUILD_RZXCHECK
47bin_PROGRAMS += rzxcheck
48endif
49
50EXTRA_PROGRAMS = rzxcheck audio2tape tape2wav
51
52AM_CPPFLAGS = $(LIBSPECTRUM_CFLAGS) $(AUDIOFILE_CFLAGS) $(GLIB_CFLAGS)
53
54createhdf_SOURCES = ide.c createhdf.c
55
56fmfconv_SOURCES = fmfconv.c \
57		  fmfconv_compr.c \
58		  fmfconv_types.c \
59		  fmfconv_output/fmfconv_aiff.c \
60		  fmfconv_output/fmfconv_au.c \
61		  fmfconv_output/fmfconv_avi.c \
62		  fmfconv_output/fmfconv_ppm.c \
63		  fmfconv_output/fmfconv_scr.c \
64		  fmfconv_output/fmfconv_wav.c \
65		  fmfconv_output/fmfconv_yuv.c
66
67if COMPAT_GETOPT
68fmfconv_SOURCES += compat/getopt.c compat/getopt1.c
69endif
70
71if HAVE_LIBJPEG
72fmfconv_SOURCES += fmfconv_output/fmfconv_jpg.c
73endif
74
75if HAVE_LIBPNG
76fmfconv_SOURCES += fmfconv_output/fmfconv_png.c
77endif
78
79fmfconv_LDADD = $(JPEG_LIBS) $(PNG_LIBS) compat/libcompatos.a
80
81listbasic_SOURCES = listbasic.c utils.c
82listbasic_LDADD = $(LIBSPECTRUM_LIBS) compat/libcompatos.a
83
84profile2map_SOURCES = profile2map.c utils.c
85profile2map_LDADD = $(LIBSPECTRUM_LIBS) compat/libcompatos.a
86
87raw2hdf_SOURCES = ide.c raw2hdf.c
88
89rzxcheck_SOURCES = rzxcheck.c keys.c utils.c
90rzxcheck_LDADD = $(LIBSPECTRUM_LIBS) compat/libcompatos.a
91
92rzxdump_SOURCES = rzxdump.c utils.c
93rzxdump_LDADD = $(LIBSPECTRUM_LIBS) compat/libcompatos.a
94
95rzxtool_SOURCES = rzxtool.c utils.c
96rzxtool_LDADD = $(LIBSPECTRUM_LIBS) compat/libcompatos.a
97
98scl2trd_SOURCES = scl2trd.c
99
100snap2tzx_SOURCES = snap2tzx.c utils.c
101snap2tzx_LDADD = $(LIBSPECTRUM_LIBS) compat/libcompatos.a
102
103snapconv_SOURCES = snapconv.c utils.c
104snapconv_LDADD = $(LIBSPECTRUM_LIBS) compat/libcompatos.a
105
106snapdump_SOURCES = snapdump.c utils.c
107snapdump_LDADD = $(LIBSPECTRUM_LIBS) compat/libcompatos.a
108
109tapeconv_SOURCES = tapeconv.c utils.c
110tapeconv_LDADD = $(LIBSPECTRUM_LIBS) compat/libcompatos.a
111
112tzxlist_SOURCES = tzxlist.c utils.c
113tzxlist_LDADD = $(LIBSPECTRUM_LIBS) $(LTLIBICONV) compat/libcompatos.a
114
115audio2tape_SOURCES = audio2tape.cc importer/soundfile.cc importer/trigger.cc \
116                     converter/findpilot.cc converter/findsync1.cc \
117                     converter/getpulse1.cc converter/getpulse2.cc \
118                     converter/getsync2.cc converter/romloader.cc \
119                     converter/romloaderstate.cc utils.c
120audio2tape_LDADD = $(LIBSPECTRUM_LIBS) $(AUDIOFILE_LIBS) \
121                   compat/libcompatos.a
122
123tape2wav_SOURCES = tape2wav.c utils.c
124tape2wav_LDADD = $(LIBSPECTRUM_LIBS) $(AUDIOFILE_LIBS) \
125                 compat/libcompatos.a
126
127tape2pulses_SOURCES = tape2pulses.c utils.c
128tape2pulses_LDADD = $(LIBSPECTRUM_LIBS) compat/libcompatos.a
129
130noinst_HEADERS = compat.h ide.h utils.h audio2tape.h importer/interpolator.h \
131                 importer/schmitt.h importer/simple.h importer/soundfile.h \
132                 importer/trigger.h converter/findpilot.h \
133                 converter/findsync1.h converter/getpulse1.h \
134                 converter/getpulse2.h converter/getsync2.h \
135                 converter/romloader.h converter/romloaderstate.h \
136                 compat/getopt.h fmfconv.h fmfconv_compr.h fmfconv_types.h \
137                 movie_tables.h
138
139noinst_LIBRARIES =
140
141EXTRA_DIST =
142
143include compat/Makefile.am
144include hacking/Makefile.am
145include m4/Makefile.am
146include man/Makefile.am
147
148## Resources for Windows executables
149if HAVE_WINDRES
150audio2tape_SOURCES += audio2tape_res.rc
151createhdf_SOURCES += createhdf_res.rc
152fmfconv_SOURCES += fmfconv_res.rc
153listbasic_SOURCES += listbasic_res.rc
154profile2map_SOURCES += profile2map_res.rc
155raw2hdf_SOURCES += raw2hdf_res.rc
156rzxcheck_SOURCES += rzxcheck_res.rc
157rzxdump_SOURCES += rzxdump_res.rc
158rzxtool_SOURCES += rzxtool_res.rc
159scl2trd_SOURCES += scl2trd_res.rc
160snap2tzx_SOURCES += snap2tzx_res.rc
161snapconv_SOURCES += snapconv_res.rc
162snapdump_SOURCES += snapdump_res.rc
163tape2pulses_SOURCES += tape2pulses_res.rc
164tape2wav_SOURCES += tape2wav_res.rc
165tapeconv_SOURCES += tapeconv_res.rc
166tzxlist_SOURCES += tzxlist_res.rc
167
168.rc.o:
169	$(AM_V_GEN)$(WINDRES) -I$(srcdir) -I$(top_builddir) $(LIBSPECTRUM_CFLAGS) $(CPPFLAGS) -o $@ $<
170endif
171