# Makefile.in generated automatically by automake 1.3 from Makefile.am

# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

# We have to override the automake default, because we need to use
# $(CXX) instead of $(CC) when compiling with reSID.


SHELL = /bin/sh

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include

DISTDIR =

pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@

top_builddir = ..

ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
AR = @AR@
ARCH_DIR = @ARCH_DIR@
ARCH_INCLUDES = @ARCH_INCLUDES@
BINDIR = @BINDIR@
CC = @CC@
CPP = @CPP@
CXX = @CXX@
CXXCPP = @CXXCPP@
HAVE_READLINE = @HAVE_READLINE@
JOY_OBJS = @JOY_OBJS@
LDFLAGS = @LDFLAGS@
LEX = @LEX@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LINKCC = @LINKCC@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
PERL = @PERL@
RANLIB = @RANLIB@
READLINE = @READLINE@
RESID_DEP = @RESID_DEP@
RESID_DIR = @RESID_DIR@
RESID_INCLUDES = @RESID_INCLUDES@
RESID_LIBS = @RESID_LIBS@
SOUND_AIX_OBJ = @SOUND_AIX_OBJ@
SOUND_DRIVERS = @SOUND_DRIVERS@
SOUND_HPUX_OBJ = @SOUND_HPUX_OBJ@
SOUND_LIBS = @SOUND_LIBS@
SOUND_MIDAS_OBJ = @SOUND_MIDAS_OBJ@
SOUND_SDL_OBJ = @SOUND_SDL_OBJ@
SOUND_SGI_OBJ = @SOUND_SGI_OBJ@
SOUND_USS_OBJ = @SOUND_USS_OBJ@
VERSION = @VERSION@
X128_WINRES = @X128_WINRES@
X64_WINRES = @X64_WINRES@
XCBM2_WINRES = @XCBM2_WINRES@
XPET_WINRES = @XPET_WINRES@
XVIC_WINRES = @XVIC_WINRES@
YACC = @YACC@
cxx = @cxx@

LINK = @LINKCC@ $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -o $@

@HAVE_RS232_TRUE@@HAVE_PRINTER_TRUE@rs232_printer_ldadd = pruser.o prdevice.o rsuser.o
@HAVE_RS232_TRUE@@HAVE_PRINTER_FALSE@rs232_printer_ldadd = rsuser.o
@HAVE_RS232_FALSE@@HAVE_PRINTER_TRUE@rs232_printer_ldadd = pruser.o prdevice.o
@HAVE_RS232_FALSE@@HAVE_PRINTER_FALSE@rs232_printer_ldadd =

ARCH_LIBS = @ARCH_LIBS@

SUBDIRS = @RESID_DIR@ sounddrv drive c64 c128 vic20 pet cbm2 sid vicii arch

INCLUDES = \
	@ARCH_INCLUDES@ \
	-I$(top_builddir)/src \
	-I$(top_srcdir)/src \
	-I$(top_srcdir)/src/drive \
	-DPREFIX=\"@prefix@\"

YFLAGS = -dt

noinst_HEADERS = \
	6510core.h \
	acia.h \
	alarm.h \
	asm.h \
	attach.h \
	autostart.h \
	cartridge.h \
	charsets.h \
	cia.h \
	ciacore.h \
	clkguard.h \
	ciatimer.h \
	cmdline.h \
	config.h.in \
	crtc.h \
	datasette.h \
	emuid.h \
	fixpoint.h \
	findpath.h \
	fs_cbm.h \
	fsdevice.h \
	fliplist.h \
	gcr.h \
	iecdrive.h \
	imagecontents.h \
	info.h \
	interrupt.h \
	kbdbuf.h \
	log.h \
	machine.h \
	maincpu.h \
	mem.h \
	memutils.h \
	mon.h \
	mon_parse.h \
	mos6510.h \
	p00.h \
	palette.h \
	parallel.h \
	print.h \
	raster.h \
	resources.h \
	romset.h \
	rs232.h \
	serial.h \
	snapshot.h \
	sound.h \
	sysfile.h \
	t64.h \
	tap.h \
	tape.h \
	tpi.h \
	traps.h \
	types.h \
	usleep.h \
	utils.h \
	vdrive.h \
	vdrive-iec.h\
	via.h \
	viacore.h \
	vice.h \
	vmachine.h \
	warn.h \
	zfile.h \
	zipcode.h

base_sources = \
	alarm.c \
	asm.c \
	attach.c \
	autostart.c \
	charsets.c \
	ciatimer.c \
	clkguard.c \
	cmdline.c \
	datasette.c \
	emuid.c \
	findpath.c \
	fsdevice.c \
	fliplist.c \
	gcr.c \
	info.c \
	interrupt.c \
	imagecontents.c \
	kbdbuf.c \
	log.c \
	main.c \
	memutils.c \
	mon.c \
	mon_lex.l \
	mon_parse.y \
	p00.c \
	palette.c \
	parallel.c \
	resources.c \
	romset.c \
	serial.c \
	snapshot.c \
	sound.c \
	sysfile.c \
	t64.c \
	tap.c \
	tape.c \
	traps.c \
	utils.c \
	vdrive.c \
	vdrive-iec.c \
	warn.c \
	zfile.c \
	zipcode.c

cpucore_sources = \
	6510core.c

maincpu_sources = \
	maincpu.c

printer_sources = \
	prdevice.c \
	prdevice.h \
	pruser.c \
	pruser.h

rs232_sources = \
	rsuser.c \
	rsuser.h

EXTRA_DIST = \
	6510core.c \
	ChangeLog \
	ChangeLog.1 \
	ChangeLog.2 \
	aciacore.c \
	ciacore.c \
	crtccore.c \
	convio \
	fixpoint.c \
	pia-tmpl.c \
	raster.c \
	tpi-tmpl.c \
	viacore.c \
	c1541.dsp \
	petcat.dsp \
	x128.dsp \
	x64.dsp \
	xcbm2.dsp \
	xpet.dsp \
	xvic.dsp \
	$(printer_sources) \
	$(rs232_sources)

BUILT_SOURCES = mon_parse.h mon_parse.c 

sounddrv_lib = $(top_builddir)/src/sounddrv/libsounddrv.a
drive_lib = $(top_builddir)/src/drive/libdrive.a
sid_lib = $(top_builddir)/src/sid/libsid.a
vicii_lib = $(top_builddir)/src/vicii/libvicii.a
c64_lib = $(top_builddir)/src/c64/libc64.a
c64c128_lib = $(top_builddir)/src/c64/libc64c128.a
c128_lib = $(top_builddir)/src/c128/libc128.a
vic20_lib = $(top_builddir)/src/vic20/libvic20.a
pet_lib = $(top_builddir)/src/pet/libpet.a
xcbm2_lib = $(top_builddir)/src/cbm2/libcbm2.a

bin_PROGRAMS = x64 x128 xvic xpet xcbm2 c1541 petcat

# x64
x64_SOURCES = $(base_sources) $(maincpu_sources)
x64_LDADD = $(c64_lib) $(sounddrv_lib) $(drive_lib) $(rs232_printer_ldadd) \
	$(sid_lib) @RESID_LIBS@ $(vicii_lib) @ALLOCA@ @LIBOBJS@ @ARCH_LIBS@ \
	@SOUND_LIBS@ @X_LIBS@ @READLINE@ @LEXLIB@ @X64_WINRES@
x64_DEPENDENCIES = $(c64_lib) $(sounddrv_lib) $(drive_lib) $(sid_lib) \
	@RESID_LIBS@ $(rs232_printer_ldadd) @ALLOCA@ @LIBOBJS@ @ARCH_LIBS@
x64_LDFLAGS = @x64_LDFLAGS@

# x128
x128_SOURCES = $(base_sources)
x128_LDADD = $(c128_lib) $(c64c128_lib) $(sounddrv_lib) $(drive_lib) \
	$(rs232_printer_ldadd) $(sid_lib) @RESID_LIBS@ $(vicii_lib) @ALLOCA@ \
	@LIBOBJS@ @ARCH_LIBS@ @SOUND_LIBS@ @X_LIBS@ @LEXLIB@ @READLINE@ \
	@X128_WINRES@
x128_DEPENDENCIES = $(c128_lib) $(c64c128_lib) $(sounddrv_lib) \
	$(rs232_printer_ldadd) $(drive_lib) $(sid_lib) @RESID_LIBS@ @ALLOCA@ \
	@LIBOBJS@ @ARCH_LIBS@
x128_LDFLAGS = @x128_LDFLAGS@ 

# xvic
xvic_SOURCES = $(base_sources) $(maincpu_sources)
xvic_LDADD = $(vic20_lib) $(sounddrv_lib) $(drive_lib) $(rs232_printer_ldadd) \
	@ALLOCA@ @LIBOBJS@ @ARCH_LIBS@ @SOUND_LIBS@ @X_LIBS@ @LEXLIB@ \
	@READLINE@ @XVIC_WINRES@
xvic_DEPENDENCIES = $(vic20_lib) $(sounddrv_lib) $(drive_lib) \
	$(rs232_printer_ldadd) @ALLOCA@ @LIBOBJS@ @ARCH_LIBS@
xvic_LDFLAGS = @xvic_LDFLAGS@

# xpet
xpet_SOURCES = $(base_sources) $(maincpu_sources)
xpet_LDADD = $(drive_lib) $(pet_lib) $(sounddrv_lib) $(rs232_printer_ldadd) \
	@ALLOCA@ @LIBOBJS@ @ARCH_LIBS@ @SOUND_LIBS@ @X_LIBS@ @LEXLIB@ \
	@READLINE@ @XPET_WINRES@
xpet_DEPENDENCIES = $(drive_lib) $(pet_lib) $(sounddrv_lib) \
	$(rs232_printer_ldadd) @ALLOCA@ @LIBOBJS@ @ARCH_LIBS@
xpet_LDFLAGS = @xpet_LDFLAGS@

# xcbm2
xcbm2_SOURCES = $(base_sources)
xcbm2_LDADD = $(drive_lib) $(xcbm2_lib) $(sounddrv_lib) \
	$(rs232_printer_ldadd) $(sid_lib) @RESID_LIBS@ @ALLOCA@ @LIBOBJS@ \
	@ARCH_LIBS@ @SOUND_LIBS@ @X_LIBS@ @LEXLIB@ @READLINE@ @XCBM2_WINRES@
xcbm2_DEPENDENCIES = $(drive_lib) $(xcbm2_lib) $(sounddrv_lib) \
	$(rs232_printer_ldadd) $(sid_lib) @RESID_LIBS@ @ALLOCA@ @LIBOBJS@ \
	@ARCH_LIBS@
xcbm2_LDFLAGS = @xcbm2_LDFLAGS@

# c1541
c1541_SOURCES = \
	c1541.c \
	charsets.c \
	cmdline.c \
	findpath.c \
	gcr.c \
	info.c \
	log.c \
	p00.c \
	resources.c \
	t64.c \
	utils.c \
	vdrive-iec.c \
	vdrive.c \
	zfile.c \
	zipcode.c

# FIXME: I don't like linking `archdep.o' this way, but we cannot use
# the generic `ARCH_LIBS', because we would have to link against X11
# libs too then.
c1541_LDADD = @ARCH_DIR@/archdep.o @READLINE@

# petcat
petcat_SOURCES = \
	charsets.c \
	cmdline.c \
	findpath.c \
	log.c \
	p00.c \
	petcat.c \
	resources.c \
	utils.c \
	zfile.c \
	zipcode.c

petcat_LDADD = @ARCH_DIR@/archdep.o
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES = 
PROGRAMS =  $(bin_PROGRAMS)


DEFS = @DEFS@ -I. -I$(srcdir) -I.
CPPFLAGS = @CPPFLAGS@
X_CFLAGS = @X_CFLAGS@
X_LIBS = @X_LIBS@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_PRE_LIBS = @X_PRE_LIBS@
x64_OBJECTS =  alarm.o asm.o attach.o autostart.o charsets.o ciatimer.o \
clkguard.o cmdline.o datasette.o emuid.o findpath.o fsdevice.o \
fliplist.o gcr.o info.o interrupt.o imagecontents.o kbdbuf.o log.o \
main.o memutils.o mon.o mon_lex.o mon_parse.o p00.o palette.o \
parallel.o resources.o romset.o serial.o snapshot.o sound.o sysfile.o \
t64.o tap.o tape.o traps.o utils.o vdrive.o vdrive-iec.o warn.o zfile.o \
zipcode.o maincpu.o
x128_OBJECTS =  alarm.o asm.o attach.o autostart.o charsets.o ciatimer.o \
clkguard.o cmdline.o datasette.o emuid.o findpath.o fsdevice.o \
fliplist.o gcr.o info.o interrupt.o imagecontents.o kbdbuf.o log.o \
main.o memutils.o mon.o mon_lex.o mon_parse.o p00.o palette.o \
parallel.o resources.o romset.o serial.o snapshot.o sound.o sysfile.o \
t64.o tap.o tape.o traps.o utils.o vdrive.o vdrive-iec.o warn.o zfile.o \
zipcode.o
xvic_OBJECTS =  alarm.o asm.o attach.o autostart.o charsets.o ciatimer.o \
clkguard.o cmdline.o datasette.o emuid.o findpath.o fsdevice.o \
fliplist.o gcr.o info.o interrupt.o imagecontents.o kbdbuf.o log.o \
main.o memutils.o mon.o mon_lex.o mon_parse.o p00.o palette.o \
parallel.o resources.o romset.o serial.o snapshot.o sound.o sysfile.o \
t64.o tap.o tape.o traps.o utils.o vdrive.o vdrive-iec.o warn.o zfile.o \
zipcode.o maincpu.o
xpet_OBJECTS =  alarm.o asm.o attach.o autostart.o charsets.o ciatimer.o \
clkguard.o cmdline.o datasette.o emuid.o findpath.o fsdevice.o \
fliplist.o gcr.o info.o interrupt.o imagecontents.o kbdbuf.o log.o \
main.o memutils.o mon.o mon_lex.o mon_parse.o p00.o palette.o \
parallel.o resources.o romset.o serial.o snapshot.o sound.o sysfile.o \
t64.o tap.o tape.o traps.o utils.o vdrive.o vdrive-iec.o warn.o zfile.o \
zipcode.o maincpu.o
xcbm2_OBJECTS =  alarm.o asm.o attach.o autostart.o charsets.o \
ciatimer.o clkguard.o cmdline.o datasette.o emuid.o findpath.o \
fsdevice.o fliplist.o gcr.o info.o interrupt.o imagecontents.o kbdbuf.o \
log.o main.o memutils.o mon.o mon_lex.o mon_parse.o p00.o palette.o \
parallel.o resources.o romset.o serial.o snapshot.o sound.o sysfile.o \
t64.o tap.o tape.o traps.o utils.o vdrive.o vdrive-iec.o warn.o zfile.o \
zipcode.o
c1541_OBJECTS =  c1541.o charsets.o cmdline.o findpath.o gcr.o info.o \
log.o p00.o resources.o t64.o utils.o vdrive-iec.o vdrive.o zfile.o \
zipcode.o
c1541_DEPENDENCIES =  @ARCH_DIR@/archdep.o
c1541_LDFLAGS = 
petcat_OBJECTS =  charsets.o cmdline.o findpath.o log.o p00.o petcat.o \
resources.o utils.o zfile.o zipcode.o
petcat_DEPENDENCIES =  @ARCH_DIR@/archdep.o
petcat_LDFLAGS = 
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LEXLIB = @LEXLIB@
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
HEADERS =  $(noinst_HEADERS)

DIST_COMMON =  ChangeLog Makefile.am Makefile.in alloca.c config.h.in \
memcmp.c mon_lex.c mon_parse.c stamp-h.in usleep.c


DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = tar
GZIP = --best
SOURCES = $(x64_SOURCES) $(x128_SOURCES) $(xvic_SOURCES) $(xpet_SOURCES) $(xcbm2_SOURCES) $(c1541_SOURCES) $(petcat_SOURCES)
OBJECTS = $(x64_OBJECTS) $(x128_OBJECTS) $(xvic_OBJECTS) $(xpet_OBJECTS) $(xcbm2_OBJECTS) $(c1541_OBJECTS) $(petcat_OBJECTS)

all: all-recursive-am all-am

.SUFFIXES:
.SUFFIXES: .S .c .l .o .s .y
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
	cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/Makefile

Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
	cd $(top_builddir) \
	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status


config.h: stamp-h
	@:
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
	cd $(top_builddir) \
	  && CONFIG_FILES= CONFIG_HEADERS=src/config.h \
	     $(SHELL) ./config.status
	@echo timestamp > stamp-h
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) 
	cd $(top_srcdir) && $(AUTOHEADER)
	@echo timestamp > $(srcdir)/stamp-h.in

mostlyclean-hdr:

clean-hdr:

distclean-hdr:
	-rm -f config.h

maintainer-clean-hdr:

mostlyclean-binPROGRAMS:

clean-binPROGRAMS:
	-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)

distclean-binPROGRAMS:

maintainer-clean-binPROGRAMS:

install-binPROGRAMS: $(bin_PROGRAMS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(bindir)
	@list='$(bin_PROGRAMS)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo "  $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
	     $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
	  else :; fi; \
	done

uninstall-binPROGRAMS:
	@$(NORMAL_UNINSTALL)
	list='$(bin_PROGRAMS)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
	done

.c.o:
	$(COMPILE) -c $<

.s.o:
	$(COMPILE) -c $<

.S.o:
	$(COMPILE) -c $<

mostlyclean-compile:
	-rm -f *.o core *.core

clean-compile:

distclean-compile:
	-rm -f *.tab.c

maintainer-clean-compile:

x64: $(x64_OBJECTS) $(x64_DEPENDENCIES)
	@rm -f x64
	$(LINK) $(x64_LDFLAGS) $(x64_OBJECTS) $(x64_LDADD) $(LIBS)

x128: $(x128_OBJECTS) $(x128_DEPENDENCIES)
	@rm -f x128
	$(LINK) $(x128_LDFLAGS) $(x128_OBJECTS) $(x128_LDADD) $(LIBS)

xvic: $(xvic_OBJECTS) $(xvic_DEPENDENCIES)
	@rm -f xvic
	$(LINK) $(xvic_LDFLAGS) $(xvic_OBJECTS) $(xvic_LDADD) $(LIBS)

xpet: $(xpet_OBJECTS) $(xpet_DEPENDENCIES)
	@rm -f xpet
	$(LINK) $(xpet_LDFLAGS) $(xpet_OBJECTS) $(xpet_LDADD) $(LIBS)

xcbm2: $(xcbm2_OBJECTS) $(xcbm2_DEPENDENCIES)
	@rm -f xcbm2
	$(LINK) $(xcbm2_LDFLAGS) $(xcbm2_OBJECTS) $(xcbm2_LDADD) $(LIBS)

c1541: $(c1541_OBJECTS) $(c1541_DEPENDENCIES)
	@rm -f c1541
	$(LINK) $(c1541_LDFLAGS) $(c1541_OBJECTS) $(c1541_LDADD) $(LIBS)

petcat: $(petcat_OBJECTS) $(petcat_DEPENDENCIES)
	@rm -f petcat
	$(LINK) $(petcat_LDFLAGS) $(petcat_OBJECTS) $(petcat_LDADD) $(LIBS)
.y.c:
	$(YACC) $(YFLAGS) $< && mv y.tab.c $*.c
	if test -f y.tab.h; then \
	if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \
	else :; fi
mon_parse.h: mon_parse.c

.l.c:
	$(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@

# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
#     (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.

@SET_MAKE@

all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive  \
check-recursive installcheck-recursive info-recursive dvi-recursive:
	@set fnord $(MAKEFLAGS); amf=$$2; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  target=`echo $@ | sed s/-recursive//`; \
	  echo "Making $$target in $$subdir"; \
	  (cd $$subdir && $(MAKE) $$target) \
	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$$fail"

mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
	@set fnord $(MAKEFLAGS); amf=$$2; \
	rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
	  rev="$$subdir $$rev"; \
	done; \
	for subdir in $$rev; do \
	  target=`echo $@ | sed s/-recursive//`; \
	  echo "Making $$target in $$subdir"; \
	  (cd $$subdir && $(MAKE) $$target) \
	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$$fail"
tags-recursive:
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  (cd $$subdir && $(MAKE) tags); \
	done

tags: TAGS

ID: $(HEADERS) $(SOURCES) $(LISP)
	here=`pwd` && cd $(srcdir) \
	  && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)

TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
	done; \
	list='$(SOURCES) $(HEADERS)'; \
	unique=`for i in $$list; do echo $$i; done | \
	  awk '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
	  || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)

mostlyclean-tags:

clean-tags:

distclean-tags:
	-rm -f TAGS ID

maintainer-clean-tags:

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)

subdir = src

distdir: $(DISTFILES)
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  test -f $(distdir)/$$file \
	  || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	  || cp -p $$d/$$file $(distdir)/$$file; \
	done
	for subdir in $(SUBDIRS); do \
	  test -d $(distdir)/$$subdir \
	  || mkdir $(distdir)/$$subdir \
	  || exit 1; \
	  chmod 777 $(distdir)/$$subdir; \
	  (cd $$subdir && $(MAKE) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
	    || exit 1; \
	done
alarm.o: alarm.c vice.h config.h alarm.h types.h log.h utils.h
asm.o: asm.c vice.h config.h asm.h types.h
attach.o: attach.c vice.h config.h attach.h types.h vdrive.h fs_cbm.h \
	serial.h traps.h log.h snapshot.h fliplist.h resources.h
autostart.o: autostart.c vice.h config.h autostart.h types.h attach.h \
	vdrive.h fs_cbm.h serial.h traps.h log.h snapshot.h charsets.h \
	fsdevice.h interrupt.h vmachine.h 6510core.h mem.h kbdbuf.h \
	machine.h p00.h resources.h tape.h arch/unix/ui.h \
	arch/unix/xaw/ui.h palette.h utils.h zfile.h
c1541.o: c1541.c vice.h config.h arch/unix/archdep.h charsets.h types.h \
	gcr.h info.h p00.h serial.h traps.h t64.h utils.h vdrive-iec.h \
	vdrive.h fs_cbm.h log.h zipcode.h
charsets.o: charsets.c vice.h config.h charsets.h types.h
ciatimer.o: ciatimer.c vice.h config.h types.h alarm.h log.h interrupt.h \
	vmachine.h 6510core.h mem.h snapshot.h ciatimer.h
clkguard.o: clkguard.c vice.h config.h clkguard.h types.h utils.h
cmdline.o: cmdline.c vice.h config.h types.h utils.h cmdline.h \
	resources.h
datasette.o: datasette.c vice.h config.h alarm.h types.h log.h \
	c64/c64cia.h cia.h snapshot.h datasette.h tap.h maincpu.h \
	6510core.h mem.h clkguard.h mon.h mos6510.h interrupt.h \
	vmachine.h
emuid.o: emuid.c vice.h config.h types.h
findpath.o: findpath.c vice.h config.h findpath.h utils.h types.h
fliplist.o: fliplist.c vice.h config.h log.h utils.h types.h fliplist.h \
	attach.h vdrive.h fs_cbm.h serial.h traps.h snapshot.h
fsdevice.o: fsdevice.c vice.h config.h fsdevice.h types.h \
	arch/unix/archdep.h charsets.h cmdline.h resources.h log.h \
	p00.h utils.h vdrive.h fs_cbm.h serial.h traps.h
gcr.o: gcr.c vice.h config.h gcr.h types.h
imagecontents.o: imagecontents.c vice.h config.h imagecontents.h types.h \
	charsets.h log.h t64.h utils.h vdrive.h fs_cbm.h serial.h \
	traps.h zfile.h
info.o: info.c
interrupt.o: interrupt.c vice.h config.h interrupt.h types.h vmachine.h \
	6510core.h mem.h snapshot.h
kbdbuf.o: kbdbuf.c vice.h config.h maincpu.h 6510core.h mem.h types.h \
	snapshot.h alarm.h log.h clkguard.h mon.h mos6510.h interrupt.h \
	vmachine.h kbdbuf.h charsets.h
log.o: log.c vice.h config.h log.h cmdline.h resources.h \
	arch/unix/archdep.h utils.h types.h
main.o: main.c vice.h config.h arch/unix/archdep.h attach.h types.h \
	vdrive.h fs_cbm.h serial.h traps.h log.h snapshot.h autostart.h \
	cartridge.h charsets.h cmdline.h resources.h drive/drivecpu.h \
	alarm.h clkguard.h mos6510.h mon.h mem.h interrupt.h vmachine.h \
	6510core.h findpath.h fsdevice.h arch/unix/joystick.h \
	arch/unix/kbd.h machine.h maincpu.h sound.h warn.h sysfile.h \
	tape.h arch/unix/ui.h arch/unix/xaw/ui.h palette.h utils.h \
	arch/unix/video.h arch/unix/vsync.h arch/unix/mouse.h
maincpu.o: maincpu.c vice.h config.h maincpu.h 6510core.h mem.h types.h \
	snapshot.h alarm.h log.h clkguard.h mon.h mos6510.h interrupt.h \
	vmachine.h machine.h resources.h traps.h arch/unix/ui.h \
	arch/unix/xaw/ui.h palette.h vdrive.h fs_cbm.h serial.h \
	6510core.c
memutils.o: memutils.c vice.h config.h memutils.h types.h log.h \
	resources.h sysfile.h utils.h
mon.o: mon.c vice.h config.h arch/unix/archdep.h asm.h types.h \
	charsets.h drive/drivecpu.h alarm.h log.h clkguard.h mos6510.h \
	mon.h mem.h snapshot.h interrupt.h vmachine.h 6510core.h \
	mon_parse.h resources.h utils.h vdrive.h fs_cbm.h serial.h \
	traps.h arch/unix/vsync.h
mon_lex.o: mon_lex.c vice.h config.h types.h mon.h mos6510.h mem.h \
	snapshot.h interrupt.h vmachine.h 6510core.h mon_parse.h \
	utils.h
mon_parse.o: mon_parse.c vice.h config.h types.h asm.h utils.h mon.h \
	mos6510.h mem.h snapshot.h interrupt.h vmachine.h 6510core.h \
	machine.h
p00.o: p00.c vice.h config.h p00.h types.h vdrive.h fs_cbm.h serial.h \
	traps.h log.h
palette.o: palette.c vice.h config.h log.h utils.h types.h palette.h \
	sysfile.h
parallel.o: parallel.c vice.h config.h types.h parallel.h serial.h \
	traps.h drive/drive.h vdrive.h fs_cbm.h log.h drive/drivecpu.h \
	alarm.h clkguard.h mos6510.h mon.h mem.h snapshot.h interrupt.h \
	vmachine.h 6510core.h
petcat.o: petcat.c vice.h config.h charsets.h types.h p00.h
prdevice.o: prdevice.c vice.h config.h resources.h cmdline.h vdrive.h \
	types.h fs_cbm.h serial.h traps.h log.h charsets.h utils.h \
	prdevice.h print.h
pruser.o: pruser.c vice.h config.h types.h print.h pruser.h resources.h \
	cmdline.h
resources.o: resources.c vice.h config.h log.h resources.h \
	arch/unix/archdep.h utils.h types.h
romset.o: romset.c config.h types.h mem.h snapshot.h resources.h \
	sysfile.h log.h utils.h romset.h
rsuser.o: rsuser.c vice.h config.h types.h alarm.h log.h clkguard.h \
	cmdline.h resources.h interrupt.h vmachine.h 6510core.h mem.h \
	snapshot.h maincpu.h mon.h mos6510.h rs232.h rsuser.h
serial.o: serial.c vice.h config.h drive/drive.h types.h vdrive.h \
	fs_cbm.h serial.h traps.h log.h drive/drivecpu.h alarm.h \
	clkguard.h mos6510.h mon.h mem.h snapshot.h interrupt.h \
	vmachine.h 6510core.h maincpu.h parallel.h tape.h utils.h \
	prdevice.h
snapshot.o: snapshot.c vice.h config.h snapshot.h types.h log.h utils.h \
	zfile.h
sound.o: sound.c vice.h config.h sound.h types.h warn.h clkguard.h \
	cmdline.h resources.h log.h maincpu.h 6510core.h mem.h \
	snapshot.h alarm.h mon.h mos6510.h interrupt.h vmachine.h \
	arch/unix/ui.h arch/unix/xaw/ui.h palette.h utils.h \
	arch/unix/vsync.h
sysfile.o: sysfile.c vice.h config.h sysfile.h cmdline.h resources.h \
	findpath.h arch/unix/archdep.h utils.h types.h
t64.o: t64.c vice.h config.h t64.h types.h utils.h zfile.h
tap.o: tap.c vice.h config.h datasette.h tap.h types.h utils.h zfile.h
tape.o: tape.c vice.h config.h tape.h types.h traps.h datasette.h tap.h \
	log.h mem.h snapshot.h maincpu.h 6510core.h alarm.h clkguard.h \
	mon.h mos6510.h interrupt.h vmachine.h serial.h t64.h utils.h \
	zfile.h
traps.o: traps.c vice.h config.h traps.h types.h log.h maincpu.h \
	6510core.h mem.h snapshot.h alarm.h clkguard.h mon.h mos6510.h \
	interrupt.h vmachine.h resources.h cmdline.h utils.h
utils.o: utils.c vice.h config.h utils.h types.h arch/unix/archdep.h \
	log.h
vdrive-iec.o: vdrive-iec.c vice.h config.h vdrive.h types.h fs_cbm.h \
	serial.h traps.h log.h vdrive-iec.h utils.h
vdrive.o: vdrive.c vice.h config.h charsets.h types.h drive/drive.h \
	vdrive.h fs_cbm.h serial.h traps.h log.h drive/drivecpu.h \
	alarm.h clkguard.h mos6510.h mon.h mem.h snapshot.h interrupt.h \
	vmachine.h 6510core.h fsdevice.h utils.h vdrive-iec.h zfile.h
warn.o: warn.c vice.h config.h warn.h log.h utils.h types.h
zfile.o: zfile.c vice.h config.h log.h utils.h types.h zfile.h zipcode.h
zipcode.o: zipcode.c vice.h config.h zipcode.h types.h

info: info-recursive
dvi: dvi-recursive
check: all-am
	$(MAKE) check-recursive
installcheck: installcheck-recursive
all-recursive-am: config.h
	$(MAKE) all-recursive

all-am: Makefile $(PROGRAMS) $(HEADERS) config.h

install-exec-am: install-binPROGRAMS

uninstall-am: uninstall-binPROGRAMS

install-exec: install-exec-recursive install-exec-am
	@$(NORMAL_INSTALL)

install-data: install-data-recursive
	@$(NORMAL_INSTALL)

install: install-recursive install-exec-am
	@:

uninstall: uninstall-recursive uninstall-am

install-strip:
	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
installdirs: installdirs-recursive
	$(mkinstalldirs)  $(DATADIR)$(bindir)


mostlyclean-generic:
	-test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)

clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	-rm -f Makefile $(DISTCLEANFILES)
	-rm -f config.cache config.log stamp-h stamp-h[0-9]*
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS \
		mostlyclean-compile mostlyclean-tags \
		mostlyclean-generic

clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-tags \
		clean-generic mostlyclean-am

distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile \
		distclean-tags distclean-generic clean-am

maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS \
		maintainer-clean-compile maintainer-clean-tags \
		maintainer-clean-generic distclean-am

mostlyclean:  mostlyclean-recursive mostlyclean-am

clean:  clean-recursive clean-am

distclean:  distclean-recursive distclean-am
	-rm -f config.status

maintainer-clean:  maintainer-clean-recursive maintainer-clean-am
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."

.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile install-data-recursive \
uninstall-data-recursive install-exec-recursive \
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
all-recursive check-recursive installcheck-recursive info-recursive \
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir info dvi \
installcheck all-recursive-am all-am install-exec-am uninstall-am \
install-exec install-data install uninstall all installdirs \
mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean

.PHONY: x64-all
x64-all: libc64 libsounddrv libdrive libarch libsid libvicii @RESID_DEP@ x64
.PHONY: x128-all
x128-all: libc128 libc64c128 libsounddrv libdrive libarch libsid \
	libvicii @RESID_DEP@ x128
.PHONY: xvic-all
xvic-all: libvic20 libsounddrv libdrive libarch xvic
.PHONY: xpet-all
xpet-all: libpet libsounddrv libarch libdrive xpet 
.PHONY: xcbm2-all
xcbm2-all: libcbm2 libsounddrv libarch libsid @RESID_DEP@ libdrive xcbm2

# Special targets to build libraries in subdirectories.

.PHONY: libc64 libc128 libvic20 libpet libcbm2 libdrive libsounddrv libarch \
	libsid @RESID_DEP@

libc64:
	(cd c64 && $(MAKE) libc64.a)
libc64c128:
	(cd c64 && $(MAKE) libc64c128.a)
libc128:
	(cd c128 && $(MAKE))
libvic20:
	(cd vic20 && $(MAKE))
libpet:
	(cd pet && $(MAKE))
libcbm2:
	(cd cbm2 && $(MAKE))
libdrive:
	(cd drive && $(MAKE))
libsounddrv:
	(cd sounddrv && $(MAKE))
libarch:
	(cd arch && $(MAKE))
libsid:
	(cd sid && $(MAKE))
libresid:
	(cd resid && $(MAKE))
libvicii:
	(cd vicii && $(MAKE))

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
