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

if !CROSS
SUBDIRS = utils
endif

SUFFIXES = .rc

INCLUDES = \
	@ARCH_INCLUDES@ \
	@ARCH_INCLUDES@/msvc/wpcap \
	@ARCH_INCLUDES@/mingw32 \
	-I$(top_builddir)/src \
	-I$(top_srcdir)/src \
	-I$(top_srcdir)/src/drive \
	-I$(top_srcdir)/src/vdrive \
	-I$(top_srcdir)/src/monitor \
	-I$(top_srcdir)/src/rs232drv \
	-I$(top_srcdir)/src/c64 \
	-I$(top_srcdir)/src/c64/cart \
	-I$(top_srcdir)/src/c64dtv \
	-I$(top_srcdir)/src/c128 \
	-I$(top_srcdir)/src/vic20 \
	-I$(top_srcdir)/src/pet \
	-I$(top_srcdir)/src/plus4 \
	-I$(top_srcdir)/src/cbm2 \
	-I$(top_srcdir)/src/raster \
	-I$(top_srcdir)/src/imagecontents \
	-I$(top_srcdir)/src/sid

noinst_LIBRARIES = libarch.a

libarch_a_SOURCES = \
	mingw32/system.h \
	archdep.c \
	archdep.h \
	blockdev.c \
	c128ui.c \
	c64ui.c \
	c64dtvui.c \
	catweaselmkiii.c \
	cbm2ui.c \
	console.c \
	dinput_handle.c \
	dinput_handle.h \
	dynlib.c \
	fullscrn.c \
	fullscrn.h \
	fullscrn-ddraw.c \
	fullscrn-dx9.c \
	gifdrv.c \
	hardsid.c \
	intl.c \
	intl.h \
	joy.c \
	joy.h \
	kbd.c \
	kbd.h \
	lightpendrv.c \
	lightpendrv.h \
	mididrv.c \
	mousedrv.c \
	mousedrv.h \
	parsid.c \
	petui.c \
	plus4ui.c \
	res.rc \
	resacia.rc \
	resautostart.rc \
	resc128.rc \
	resc64.rc \
	resc64dtv.rc \
	resc64_256k.rc \
	rescbm2.rc \
	rescommon.h \
	resdigimax.rc \
	resdqbb.rc \
	resdrivec128.rc \
	resdrivec64.rc \
	resdrivepetcbm2.rc \
	resdriveplus4.rc \
	resdrivevic20.rc \
	reseasyflash.rc \
	resgeoram.rc \
	reside64.rc \
	resisepic.rc \
	reslightpen.rc \
	resmidi.rc \
	resmmc64.rc \
	resmouse.rc \
	respet.rc \
	respetreu.rc \
 	resplus256k.rc \
	resplus4.rc \
	resplus60k.rc \
	resramcart.rc \
	resreu.rc \
	resrs232user.rc \
	ressid.rc \
	ressidcart.rc \
	ressiddtv.rc \
	ressoundexpander.rc \
	restfe.rc \
	resvic20.rc \
	resvicii.rc \
	rs232.c \
	rs232dev.c \
	rs232dev.h \
	rs232net.c \
	rs232net.h \
	signals.c \
	socketimpl.h \
	statusbar.c \
	statusbar.h \
	system.c \
	tfearch.c \
	types.h \
	ui-resources.c \
	ui.c \
	ui.h \
	uiacia.c \
	uiacia.h \
	uiattach.c \
	uiattach.h \
	uiautostart.c \
	uiautostart.h \
	uic128.c \
	uic128.h \
	uic64_256k.c \
	uic64_256k.h \
	uic64cart.c \
	uic64cart.h \
	uic64dtv.c \
	uic64dtv.h \
	uicart.c \
	uicart.h \
	uicbm2set.c \
	uicbm2set.h \
	uicmdline.c \
	uiconsole.c \
	uidatasette.c \
	uidatasette.h \
	uidigimax.c \
	uidigimax.h \
	uidqbb.c \
	uidqbb.h \
	uidrivec64.c \
	uidrivec64.h \
	uidrivec128.c \
	uidrivec128.h \
	uidrivepetcbm2.c \
	uidrivepetcbm2.h \
	uidriveplus4.c \
	uidriveplus4.h \
	uidrivevic20.c \
	uidrivevic20.h \
	uieasyflash.c \
	uieasyflash.h \
	uievent.c \
	uievent.h \
	uifliplist.c \
	uifliplist.h \
	uigeoram.c \
	uigeoram.h \
	uihelp.c \
	uihelp.h \
	uiide64.c \
	uiide64.h \
	uiisepic.c \
	uiisepic.h \
	uijoystick.c \
	uijoystick.h \
	uikeyboard.c \
	uikeyboard.h \
	uilib.c \
	uilib.h \
	uilightpen.c \
	uilightpen.h \
	uimediafile.c \
	uimediafile.h \
	uimidi.c \
	uimidi.h \
	uimmc64.c \
	uimmc64.h \
	uimon.c \
	uimonmsg.h \
	uimouse.c \
	uimouse.h \
	uinetwork.c \
	uinetwork.h \
	uiperipheral.c \
	uiperipheral.h \
	uipetreu.c \
	uipetreu.h \
	uipetset.c \
	uipetset.h \
	uiplus256k.c \
	uiplus256k.h \
	uiplus4cart.c \
	uiplus4cart.h \
	uiplus4mem.c \
	uiplus4mem.h \
	uiplus60k.c \
	uiplus60k.h \
	uiquicksnapshot.c \
	uiquicksnapshot.h \
	uiram.c \
	uiram.h \
	uiramcart.c \
	uiramcart.h \
	uireu.c \
	uireu.h \
	uirom.c \
	uirom.h \
	uirs232.c \
	uirs232.h \
	uirs232user.c \
	uirs232user.h \
	uisid.c \
	uisid.h \
	uisidcart.c \
	uisidcart.h \
	uisiddtv.c \
	uisiddtv.h \
	uisnapshot.h \
	uisnapshot.c \
	uisound.c \
	uisound.h \
	uisoundexpander.c \
	uisoundexpander.h \
	uispeed.c \
	uispeed.h \
	uitfe.c \
	uitfe.h \
	uivicii.h \
	uivicii.c \
	uivicset.h \
	uivicset.c \
	uivideo.c \
	uivideo.h \
	vic20ui.c \
	video.c \
	video-ddraw.c \
	video-ddraw.h \
	video-dx9.c \
	videoarch.h \
	vsidui.c \
	vsyncarch.c \
	winjoy.h \
	winkbd.h \
	winlong.h \
	winmain.c \
	winmain.h

libarch_a_DEPENDENCIES = \
	resc128.o resc64.o resc64dtv.o rescbm2.o respet.o resplus4.o resvic20.o

EXTRA_DIST = \
	evc/config.h \
	evc/system.c \
	evc/system.h \
	msvc/config.h \
	msvc/dirent.h \
	msvc/inttypes.h \
	msvc/stdint.h \
	msvc/system.h \
	msvc/siddefs.h \
	msvc/siddefs-fp.h \
	msvc/wpcap/bittypes.h \
	msvc/wpcap/ip6_misc.h \
	msvc/wpcap/pcap-stdinc.h \
	msvc/wpcap/pcap.h \
	msvc/wpcap/net/bpf.h \
	watcom/arch.tgt \
	watcom/base.tgt \
	watcom/c128.tgt \
	watcom/c1541.tgt \
	watcom/c64.tgt \
	watcom/c64cart.tgt \
	watcom/c64commonc128.tgt \
	watcom/c64commonc128c64dtv.tgt \
	watcom/c64commonc64dtv.tgt \
	watcom/c64dtv.tgt \
	watcom/c64exp.tgt \
	watcom/cartconv.tgt \
	watcom/cbm2.tgt \
	watcom/config.h \
	watcom/core.tgt \
	watcom/crtc.tgt \
	watcom/dirent.h \
	watcom/diskimage.tgt \
	watcom/drive.tgt \
	watcom/fileio.tgt \
	watcom/fsdevice.tgt \
	watcom/gentr.tgt \
	watcom/genwr.tgt \
	watcom/gfxoutputdrv.tgt \
	watcom/iec.tgt \
	watcom/iec128dcr.tgt \
	watcom/iecbus.tgt \
	watcom/iecieee.tgt \
	watcom/ieee.tgt \
	watcom/imagecontents.tgt \
	watcom/maincpu.tgt \
	watcom/make-watcom-bindist.bat \
	watcom/monitor.tgt \
	watcom/parallel.tgt \
	watcom/pet.tgt \
	watcom/petcat.tgt \
	watcom/plus4.tgt \
	watcom/plus4exp.tgt \
	watcom/printerdrv.tgt \
	watcom/raster.tgt \
	watcom/README.txt \
	watcom/rs232drv.tgt \
	watcom/serial.tgt \
	watcom/sid.tgt \
	watcom/sounddrv.tgt \
	watcom/system.h \
	watcom/tape.tgt \
	watcom/tcbm.tgt \
	watcom/vdc.tgt \
	watcom/vdrive.tgt \
	watcom/vic20.tgt \
	watcom/vic20cart-generic.c \
	watcom/vice.wpj \
	watcom/vicii.tgt \
	watcom/viciicommon.tgt \
	watcom/viciidtv.tgt \
	watcom/video.tgt \
	watcom/x128.tgt \
	watcom/x128main.c \
	watcom/x64.tgt \
	watcom/x64main.c \
	watcom/x64dtv.tgt \
	watcom/x64dtvmain.c \
	watcom/xcbm2.tgt \
	watcom/xcbm2main.c \
	watcom/xpet.tgt \
	watcom/xpetmain.c \
	watcom/xplus4.tgt \
	watcom/xplus4main.c \
	watcom/xvic.tgt \
	watcom/xvicmain.c \
	_vice.dsp \
	arch.dsp \
	base.dsp \
	c128.dsp \
	c1541.dsp \
	c64.dsp \
	c64c64dtv.dsp \
	c64dtv.dsp \
	c64dtvstubs.dsp \
	c64c128.dsp \
	c64cart.dsp \
	c64exp.dsp \
	cartconv.dsp \
	cbm2.dsp \
	core.dsp \
	crtc.dsp \
	dirent.c \
	diskimage.dsp \
	drive.dsp \
	fileio.dsp \
	fsdevice.dsp \
	genmsvcver.dsp \
	gentranslate.dsp \
	genwinres.dsp \
	genwinres.sh \
	genmenuid.sh \
	gfxoutputdrv.dsp \
	iec.dsp \
	iec128dcr.dsp \
	iecbus.dsp \
	iecieee.dsp \
	ieee.dsp \
	imagecontents.dsp \
	monitor.dsp \
	parallel.dsp \
	pet.dsp \
	petcat.dsp \
	plus4.dsp \
	plus4exp.dsp \
	png.dsp \
	printerdrv.dsp \
	raster.dsp \
	resid.dsp \
	residdtv.dsp \
	residfp.dsp \
	res.txt \
	resdialogs.txt \
	resmenu.txt \
	resstrings.txt \
	rs232drv.dsp \
	serial.dsp \
	sid.dsp \
	sounddrv.dsp \
	tape.dsp \
	tcbm.dsp \
	vdc.dsp \
	vdrive.dsp \
	vic20.dsp \
	vic20cart.dsp \
	vicii.dsp \
	viciidtv.dsp \
	video.dsp \
	x128.dsp \
	x64.dsp \
	x64dtv.dsp \
	xcbm2.dsp \
	xpet.dsp \
	xplus4.dsp \
	xvic.dsp \
	zlib.dsp \
	vice.dsw \
	vice.manifest \
	montb.bmp \
	make-bindist.sh \
	make-msvc-bindist.bat \
	vice-version.bat \
	vice-version.bat.in \
	c64.ico 

BUILT_SOURCES = res.h

res.h:	$(srcdir)/res.txt $(srcdir)/resdialogs.txt $(srcdir)/resmenu.txt $(srcdir)/resstrings.txt
	echo "generating res.h..."
@CROSS_TRUE@	cat >resall.txt $(srcdir)/res.txt $(srcdir)/resdialogs.txt $(srcdir)/resmenu.txt $(srcdir)/resstrings.txt
@CROSS_TRUE@	. $(srcdir)/genwinres.sh <resall.txt >res.h
@CROSS_TRUE@	. $(srcdir)/genmenuid.sh <resall.txt >menuid.h
@CROSS_TRUE@	rm -f resall.txt
@CROSS_FALSE@	(cd utils; $(MAKE))
@CROSS_FALSE@	utils/genwinres res.h menuid.h $(srcdir)/res.txt $(srcdir)/resdialogs.txt $(srcdir)/resmenu.txt $(srcdir)/resstrings.txt

resc128.o : $(srcdir)/resc128.rc $(srcdir)/res.rc res.h $(srcdir)/resacia.rc \
	$(srcdir)/resrs232user.rc $(srcdir)/ressid.rc $(srcdir)/resvicii.rc \
	$(srcdir)/resreu.rc $(srcdir)/resgeoram.rc $(srcdir)/resramcart.rc \
	$(srcdir)/resmmc64.rc $(srcdir)/reside64.rc $(srcdir)/resdrivec128.rc \
	$(srcdir)/resdigimax.rc $(srcdir)/resmouse.rc $(srcdir)/restfe.rc \
	$(srcdir)/resmidi.rc $(srcdir)/reslightpen.rc \
	$(srcdir)/ressoundexpander.rc $(srcdir)/reseasyflash.rc \
	$(srcdir)/resautostart.rc $(top_srcdir)/src/debug.h
	cat >resc128cat.rc $(srcdir)/resc128.rc $(srcdir)/res.rc \
	$(srcdir)/resacia.rc $(srcdir)/reside64.rc $(srcdir)/resreu.rc \
	$(srcdir)/resgeoram.rc $(srcdir)/resramcart.rc $(srcdir)/resmmc64.rc \
	$(srcdir)/resrs232user.rc $(srcdir)/ressid.rc $(srcdir)/resvicii.rc \
	$(srcdir)/resdrivec128.rc $(srcdir)/resdigimax.rc \
	$(srcdir)/resmouse.rc $(srcdir)/restfe.rc $(srcdir)/reslightpen.rc \
	$(srcdir)/ressoundexpander.rc $(srcdir)/reseasyflash.rc \
	$(srcdir)/resautostart.rc $(srcdir)/resmidi.rc
	$(WRC) -i resc128cat.rc -o resc128.res \
	--include-dir $(top_builddir)/src \
	--include-dir $(top_srcdir)/src/arch/win32 \
	--include-dir $(top_srcdir)/src
	$(WINDRES) -i resc128.res -o $@
	rm -f resc128.res resc128cat.rc

resc64.o : $(srcdir)/resc64.rc $(srcdir)/res.rc res.h $(srcdir)/resacia.rc \
	$(srcdir)/resrs232user.rc $(srcdir)/ressid.rc $(srcdir)/resvicii.rc \
	$(srcdir)/resreu.rc $(srcdir)/resgeoram.rc $(srcdir)/resramcart.rc \
	$(srcdir)/resmmc64.rc $(srcdir)/resplus256k.rc $(srcdir)/resplus60k.rc \
	$(srcdir)/resc64_256k.rc $(srcdir)/reside64.rc \
	$(srcdir)/resautostart.rc $(srcdir)/resdrivec64.rc \
	$(srcdir)/resdigimax.rc $(srcdir)/resmouse.rc \
	$(srcdir)/restfe.rc $(srcdir)/resmidi.rc $(srcdir)/resdqbb.rc \
	$(srcdir)/resisepic.rc $(srcdir)/reslightpen.rc \
	$(srcdir)/ressoundexpander.rc $(srcdir)/reseasyflash.rc \
	$(top_srcdir)/src/debug.h
	cat >resc64cat.rc $(srcdir)/resc64.rc $(srcdir)/res.rc \
	$(srcdir)/resacia.rc $(srcdir)/resdrivec64.rc \
	$(srcdir)/reside64.rc $(srcdir)/resreu.rc $(srcdir)/resgeoram.rc \
	$(srcdir)/resmmc64.rc $(srcdir)/resramcart.rc $(srcdir)/resplus256k.rc \
	$(srcdir)/resplus60k.rc $(srcdir)/resc64_256k.rc \
	$(srcdir)/resrs232user.rc $(srcdir)/ressid.rc $(srcdir)/resvicii.rc \
	$(srcdir)/resdigimax.rc $(srcdir)/resmouse.rc $(srcdir)/restfe.rc \
	$(srcdir)/resmidi.rc $(srcdir)/resdqbb.rc $(srcdir)/resisepic.rc \
	$(srcdir)/reslightpen.rc $(srcdir)/reseasyflash.rc \
	$(srcdir)/ressoundexpander.rc $(srcdir)/resautostart.rc
	$(WRC) -i resc64cat.rc -o resc64.res \
	--include-dir $(top_builddir)/src \
	--include-dir $(top_srcdir)/src/arch/win32  \
	--include-dir $(top_srcdir)/src
	$(WINDRES) -i resc64.res -o $@
	rm -f resc64.res resc64cat.rc

resc64dtv.o : $(srcdir)/resc64dtv.rc $(srcdir)/res.rc res.h \
	$(srcdir)/ressiddtv.rc $(srcdir)/resvicii.rc $(srcdir)/resdrivec64.rc \
	$(srcdir)/resautostart.rc $(top_srcdir)/src/debug.h
	cat >resc64dtvcat.rc $(srcdir)/resc64dtv.rc $(srcdir)/res.rc \
	$(srcdir)/resdrivec64.rc $(srcdir)/ressiddtv.rc \
	$(srcdir)/resautostart.rc $(srcdir)/resvicii.rc
	$(WRC) -i resc64dtvcat.rc -o resc64dtv.res \
	--include-dir $(top_builddir)/src \
	--include-dir $(top_srcdir)/src/arch/win32  \
	--include-dir $(top_srcdir)/src
	$(WINDRES) -i resc64dtv.res -o $@
	rm -f resc64dtv.res resc64catdtv.rc

rescbm2.o : $(srcdir)/rescbm2.rc $(srcdir)/res.rc res.h $(srcdir)/resacia.rc \
	$(srcdir)/ressid.rc $(srcdir)/resdrivepetcbm2.rc \
	$(srcdir)/resautostart.rc $(srcdir)/resvicii.rc \
	$(top_srcdir)/src/debug.h
	cat >rescbm2cat.rc $(srcdir)/rescbm2.rc $(srcdir)/res.rc \
	$(srcdir)/resacia.rc $(srcdir)/resdrivepetcbm2.rc $(srcdir)/ressid.rc \
	$(srcdir)/resvicii.rc $(srcdir)/resautostart.rc
	$(WRC) -i rescbm2cat.rc -o rescbm2.res \
	--include-dir $(top_builddir)/src \
	--include-dir $(top_srcdir)/src/arch/win32 \
	--include-dir $(top_srcdir)/src
	$(WINDRES) -i rescbm2.res -o $@
	rm -f rescbm2.res rescbm2cat.rc

respet.o : $(srcdir)/respet.rc $(srcdir)/res.rc res.h $(srcdir)/resacia.rc \
	$(srcdir)/resdrivepetcbm2.rc $(srcdir)/respetreu.rc \
	$(srcdir)/resautostart.rc $(srcdir)/ressidcart.rc \
	$(top_srcdir)/src/debug.h
	cat >respetcat.rc $(srcdir)/respet.rc $(srcdir)/res.rc \
	$(srcdir)/resacia.rc $(srcdir)/resdrivepetcbm2.rc \
	$(srcdir)/respetreu.rc $(srcdir)/ressidcart.rc \
	$(srcdir)/resautostart.rc
	$(WRC) -i respetcat.rc -o respet.res \
	--include-dir $(top_builddir)/src \
	--include-dir $(top_srcdir)/src/arch/win32 \
	--include-dir $(top_srcdir)/src
	$(WINDRES) -i respet.res -o $@
	rm -f respet.res respetcat.rc

resplus4.o : $(srcdir)/resplus4.rc $(srcdir)/res.rc res.h \
	$(srcdir)/resacia.rc $(srcdir)/resdriveplus4.rc \
	$(srcdir)/resautostart.rc $(srcdir)/ressidcart.rc \
	$(top_srcdir)/src/debug.h
	cat >resplus4cat.rc $(srcdir)/resplus4.rc $(srcdir)/res.rc \
	$(srcdir)/resacia.rc $(srcdir)/resdriveplus4.rc \
	$(srcdir)/ressidcart.rc $(srcdir)/resautostart.rc
	$(WRC) -i resplus4cat.rc -o resplus4.res \
	--include-dir $(top_builddir)/src \
	--include-dir $(top_srcdir)/src/arch/win32 \
	--include-dir $(top_srcdir)/src
	$(WINDRES) -i resplus4.res -o $@
	rm -f resplus4.res resplus4cat.rc

resvic20.o : $(srcdir)/resvic20.rc $(srcdir)/res.rc res.h \
	$(srcdir)/resrs232user.rc $(srcdir)/resdrivevic20.rc \
	$(srcdir)/ressidcart.rc $(srcdir)/resmidi.rc \
	$(srcdir)/resautostart.rc $(srcdir)/reslightpen.rc \
	$(top_srcdir)/src/debug.h
	cat >resvic20cat.rc $(srcdir)/resvic20.rc $(srcdir)/res.rc \
	$(srcdir)/resdrivevic20.rc $(srcdir)/resrs232user.rc \
	$(srcdir)/ressidcart.rc $(srcdir)/resmidi.rc \
	$(srcdir)/reslightpen.rc $(srcdir)/resautostart.rc
	$(WRC) -i resvic20cat.rc -o resvic20.res \
	--include-dir $(top_builddir)/src \
	--include-dir $(top_srcdir)/src/arch/win32 \
	--include-dir $(top_srcdir)/src
	$(WINDRES) -i resvic20.res -o $@
	rm -f resvic20.res resvic20cat.rc

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