# Makefile.am for the Unix version of `libarch.a'.

if MACOSX_COCOA
SUBDIRS = macosx
else
if UNIX_MACOSX_COMPILE
if NEED_READLINE
SUBDIRS = gui x11 readline macosx
else
SUBDIRS = gui x11 macosx
endif
else
if UNIX_GP2X_COMPILE
SUBDIRS = gp2x
else
if UNIX_WIZ_COMPILE
SUBDIRS = gp2x
else
if NEED_READLINE
SUBDIRS = gui x11 readline
else
SUBDIRS = gui x11
endif
endif
endif
endif
endif

INCLUDES = \
	@ARCH_INCLUDES@ \
	-I$(top_builddir)/src \
	-I$(top_srcdir)/src/drive \
	-I$(top_srcdir)/src/arch/unix/readline \
	-I$(top_srcdir)/src/rs232drv \
	-I$(top_srcdir)/src/c64 \
	-I$(top_srcdir)/src/c64dtv \
	-I$(top_srcdir)/src/c128 \
	-I$(top_srcdir)/src/vic20 \
	-I$(top_srcdir)/src/pet \
	-I$(top_srcdir)/src/cbm2 \
	-I$(top_srcdir)/src/sid \
	-I$(top_srcdir)/src/lib/p64 \
	-I$(top_srcdir)/src/platform \
	-I$(top_srcdir)/src

noinst_LIBRARIES = libarch.a

libarch_a_SOURCES = \
	archdep.c \
	archdep.h \
	blockdev.c \
	catweaselmkiii.c \
	coproc.h \
	coproc.c \
	dynlib.c \
	fullscreenarch.h \
	hardsid.c \
	icon.h \
	joy.c \
	joy.h \
	joy_usb.c \
	kbd.h \
	mididrv.c \
	mousedrv.c \
	mousedrv.h \
	openGL_sync.h \
	parsid.c \
	rs232.c \
	signals.c \
	socketimpl.h \
	rawnetarch.c \
	types.h \
	ui.h \
	uimenu.h \
	unixmain.c \
	videoarch.h \
	vmstermios.h \
	vsyncarch.c \
	vsiduiunix.h

EXTRA_DIST = \
	hpux/getdate.pl \
	hpux/getnow.pl \
	hpux/make-bindist.sh \
	minix/minix-ar.sh \
	next_open_rhap/make-bindist.sh \
	next_open_rhap/vice.info.in \
	qnx4/install_msg \
	qnx4/make-bindist.sh \
	qnx6/getlibs.c \
	qnx6/getsize.c \
	qnx6/make-bindist.sh \
	sco_sol/checkinstall \
	sco_sol/make-bindist.sh \
        skyos/icons/vsid.ico \
	skyos/icons/x64.ico \
	skyos/icons/x64dtv.ico \
	skyos/icons/x64sc.ico \
	skyos/icons/x128.ico \
	skyos/icons/xcbm2.ico \
	skyos/icons/xcbm5x0.ico \
	skyos/icons/xpet.ico \
	skyos/icons/xplus4.ico \
	skyos/icons/xvic.ico \
	skyos/make-bindist.sh \
	vms/config.h

.PHONY: x11
x11:
	(cd x11; $(MAKE))

.PHONY: gp2x
gp2x:
	(cd gp2x; $(MAKE))

.PHONY: gui
gui:
	(cd gui; $(MAKE))

.PHONY: macosx
macosx:
	(cd macosx; $(MAKE))
