###########################################################################
#  makefile
#			Makefile for STemBoy
#
# NOTE: This makefile just copies all necessary files out of the
# working directory of the Atari emulator and builds the archives.
#
#  2001-01-21	Bodo Wenzel	Creation
###########################################################################

MCOPY=		mcopy
MCOPY_FLAGS=	-mn
MCOPY_ST_DIR=	s:/stemboy

TAR=		tar
TAR_FLAGS=

ZIP=		zip
ZIP_FLAGS=

SOURCES=	stemboy.prj						\
		stemboy.rso stemboy.img stemboy.neo			\
		stemboy.c stemboy.h					\
		win_scr.c win_scr.h					\
		win_cpu.c win_cpu.h					\
		win_prof.c win_prof.h					\
		cartridg.c cartridg.h					\
		palm.c palm.h						\
		emulate.c emulate.h					\
		gem_add.c gem_add.h					\
		constant.s						\
		emu_wrap.s emu_wrap.h					\
		support.s support.h					\
		emu_pure.s emu_chk.s emu_prof.s emu_step.s		\
		gbemu.s							\
		gbemu_op.s gbemu_cb.s gbemu_rw.s gbemu_io.s gbemu_xt.s	\
		version.c version.h

BINARIES=	stemboy.prg stemboy.rsc

DOCS=		stemboy.htm stemboy.gif readme.txt

TGZ_FILES=	makefile COPYING $(SOURCES) $(BINARIES) $(DOCS)

ZIP_FILES=	COPYING $(BINARIES) $(DOCS)

all:	copy stemboy.tgz stemboy.zip

copy:
	for i in $(SOURCES) $(BINARIES) ; do				\
	  $(MCOPY) $(MCOPY_FLAGS) $(MCOPY_ST_DIR)/$$i . ;		\
	done

stemboy.tgz:	$(TGZ_FILES)
	$(TAR) czf stemboy.tgz $(TGZ_FILES)

stemboy.zip:	$(ZIP_FILES)
	$(ZIP) stemboy.zip $(ZIP_FILES)

### The end ###############################################################
