## Process this file with automake to produce Makefile.in
## Copyright (c) 2001-2018 Philip Kendall
## 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 of the License, 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.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
##
## Author contact information:
##
## E-mail: philip-fuse@shadowmagic.org.uk
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
lib_LTLIBRARIES = libspectrum.la
libspectrum_la_SOURCES = bzip2.c \
buffer.c \
creator.c \
crypto.c \
csw.c \
dck.c \
ide.c \
libspectrum.c \
memory.c \
microdrive.c \
mmc.c \
plusd.c \
pzx_read.c \
rzx.c \
sna.c \
snp.c \
dsnap.c \
snapshot.c \
snap_accessors.c \
sp.c \
symbol_table.c \
szx.c \
tap.c \
tape.c \
tape_accessors.c \
tape_block.c \
tape_set.c \
timings.c \
tzx_read.c \
tzx_write.c \
utilities.c \
warajevo_read.c \
wav.c \
windres.rc \
z80.c \
z80em.c \
zxs.c
if HAVE_ZLIB
libspectrum_la_SOURCES += zip.c \
zlib.c
endif
## The version info is made of three components: current, revision and age
## We update the version when we release according to the guide at
## https://autotools.io/libtool/version.html
## The rules of thumb, when dealing with these values are:
## * Increase the current value whenever an interface has been added, removed or
## changed.
## * Always increase the revision value.
## * Increase the age value only if the changes made to the ABI are backward
## compatible.
libspectrum_la_LDFLAGS = -version-info 17:15:8 -no-undefined @WINDRES_LDFLAGS@
libspectrum_la_LIBADD = @AUDIOFILE_LIBS@ @GLIB_LIBS@ -lm
libspectrum_la_DEPENDENCIES = @WINDRES_OBJ@
BUILT_SOURCES = libspectrum.h snap_accessors.c tape_accessors.c tape_set.c
nodist_include_HEADERS = libspectrum.h
noinst_HEADERS = internals.h \
zip.h
noinst_PROGRAMS =
noinst_DATA =
# Install the pkg-config file; the directory is set using
# PKG_INSTALLDIR in configure.ac.
pkgconfig_DATA = libspectrum.pc
AM_CFLAGS = -DLIBSPECTRUM_EXPORTS -fvisibility=hidden
make-perl$(EXEEXT): $(srcdir)/make-perl.c config.h
$(AM_V_CC)$(CC_FOR_BUILD) -I. -o $@ $<
libspectrum.h: libspectrum.h.in generate.pl snap_accessors.txt tape_accessors.txt config.h
$(AM_V_GEN)$(PERL) -p generate.pl $(srcdir) $(srcdir)/libspectrum.h.in > $@.tmp && mv $@.tmp $@
generate.pl: make-perl$(EXEEXT) generate.pl.in
$(AM_V_GEN)./make-perl$(EXEEXT) > $@
$(AM_V_at)cat $(srcdir)/generate.pl.in >> $@
snap_accessors.c: accessor.pl snap_accessors.txt
$(AM_V_GEN)$(PERL) $(srcdir)/accessor.pl $(srcdir)/snap_accessors.txt > $@.tmp && mv $@.tmp $@
tape_accessors.c: tape_accessors.pl tape_accessors.txt
$(AM_V_GEN)$(PERL) $(srcdir)/tape_accessors.pl $(srcdir)/tape_accessors.txt > $@.tmp && mv $@.tmp $@
tape_set.c: tape_set.pl tape_accessors.txt
$(AM_V_GEN)$(PERL) $(srcdir)/tape_set.pl $(srcdir)/tape_accessors.txt > $@.tmp && mv $@.tmp $@
windres.o: windres.rc
$(AM_V_GEN)$(WINDRES) -I. $(srcdir)/windres.rc windres.o
AM_CPPFLAGS = @GLIB_CFLAGS@ @AUDIOFILE_CFLAGS@
EXTRA_DIST = accessor.pl \
buffer_license.txt \
dll.c \
generate.pl.in \
m4/audiofile.m4 \
m4/ax_create_stdint_h.m4 \
m4/pkg.m4 \
make-perl.c \
tape_accessors.pl \
tape_accessors.txt \
tape_block.h \
tape_set.pl \
libspectrum.h.in \
snap_accessors.txt
CLEANFILES = libspectrum.h \
snap_accessors.c \
tape_accessors.c \
tape_set.c \
generate.pl \
make-perl$(EXEEXT)
include doc/Makefile.am
include myglib/Makefile.am
include test/Makefile.am