view 3rdparty/packages/kyumgai/makefile @ 1363:53c50c807d55

Major move to new NitrOS-9 project
author boisy
date Fri, 26 Sep 2003 12:26:10 +0000
parents a543ba9d856b
children 1ed7c47503e8
line wrap: on
line source

include ../../../rules.mak

DEPENDS		= ./makefile

DISK		= kyumgai.dsk
CMDS		= ninja ninja.snd1 ninja.snd2
MD		= $(LEVEL2)/MODULES

# We make our own bootfile and kernel track
KERNEL		= $(MD)/rel_32 $(MD)/boot_1773_6ms $(MD)/os9p1
OS9BOOT		= $(MD)/os9p2 $(MD)/ioman $(MD)/init \
		$(MD)/rbf.mn \
		$(MD)/cc3disk.dr $(MD)/ddd0_40d.dd \
		$(MD)/scf.mn $(MD)/cc3io.dr \
		$(MD)/keydrv_cc3.sb $(MD)/joydrv_joy.sb $(MD)/snddrv_cc3.sb \
		$(MD)/vdgint_small.io $(MD)/term_vdg.dt \
		$(MD)/clock_60hz $(MD)/clock2_soft $(MD)/sysgo_dd

SUPPORTFILES	= backgnd.dat backgnd2.dat bigblocks.dat blakguy.dat \
		gameover.dat giant.dat kyumgai.pla level1.dat level2.dat \
		level3.dat level4.dat level5.dat level6.dat level7.dat \
		level8.dat monmap1.dat monmap2.dat monmap3.dat monmap4.dat \
		monmap5.dat monmap6.dat monmap7.dat monmap8.dat ninja.dat \
		objects.dat playscn.vef staffguy.dat tanguy.dat tobe.pla \
		tobe.vef window.dat winner.vef

ALLOBJS		= $(CMDS)

all:	$(ALLOBJS)

clean:	dskclean
	$(RM) $(ALLOBJS)

dsk:	all
	$(RM) $(DISK)
	$(CD) $(LEVEL2); make
	$(OS9FORMAT_DS40) $(DISK) -n"Kyum-Gai: To Be Ninja"
	$(MERGE) $(OS9BOOT)>os9boot
	$(MERGE) $(KERNEL)>kernel_1773
	$(OS9GEN) $(DISK) -b=os9boot -t=kernel_1773
	$(RM) os9boot kernel_1773
	$(MAKDIR) $(DISK),CMDS
	$(CP) $(LEVEL2)/CMDS/shell_21 $(DISK),CMDS/shell
	$(OS9ATTR_EXEC) $(DISK),CMDS/shell
	$(CP) $(CMDS) $(DISK),CMDS
	$(foreach file, $(CMDS), $(OS9ATTR_EXEC) $(DISK),CMDS/$(file);)
	$(OS9RENAME) $(DISK),CMDS/ninja AutoEx
	$(CP) $(SUPPORTFILES) $(DISK),.
	$(foreach file, $(SUPPORTFILES), $(OS9ATTR_TEXT) $(DISK),$(file);)

dskcopy: dsk
	$(CP) $(DISK) $(DSKDIR)

dskclean:
	$(RM) $(DISK)