view level2/cmds/makefile @ 327:f0a2dcf03503

Moved dir.asm to level1/CMDS
author boisy
date Wed, 24 Jul 2002 05:00:43 +0000
parents 2c0ddf807efa
children 2e7d4518cb8b
line wrap: on
line source

include ../../Makefile.rules

DEPENDS		= ./Makefile

CMDS		= attr binex build cmp cobbler copy date \
		deiniz del deldir dir display dump echo error exbin \
		free help ident iniz link list load login makdir mdir \
		merge mfree montype procs pwd pxd rename save \
		setime shell_21 sleep tee tmode tsmon unlink \
		verify wcreate xmode
SUBS            = gfx2 gfx inkey
ALLOBJS		= $(CMDS) $(SUBS)

SHELLMODS	= shell_21 build copy date deiniz del dir display echo iniz \
		link list load mdir merge mfree procs tmode unlink
UTILPAK1        = attr deldir ident rename setime xmode

LEVEL1FILES	= binex.asm attr.asm build.asm cmp.asm cobbler.asm date.asm deiniz.asm del.asm deldir.asm \
		dir.asm dump.asm echo.asm error.asm exbin.asm free.asm gfx.asm help.asm ident.asm iniz.asm inkey.asm link.asm \
		list.asm load.asm login.asm merge.asm os9gen.asm pwd.asm pxd.asm rename.asm \
		save.asm setime.asm sleep.asm tee.asm tmode.asm tuneport.asm tsmon.asm verify.asm

LEVEL2FILES	= gfx2.asm mdir.asm mfree.asm montype.asm procs.asm \
		shell_21.asm unlink.asm wcreate.asm

# Files not compilable by os9asm: Config attr cmp dcheck dir dsave
all:	$(ALLOBJS) shell utilpak1 $(DEPENDS)
	$(CHMOD) a+rx $(ALLOBJS) shell utilpak1

shell:  $(SHELLMODS) $(DEPENDS)
	$(MERGE) $(SHELLMODS)>$@
	@$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***"
	@ls -l $@
	@$(ECHO)

utilpak1:  $(UTILPAK1) $(DEPENDS)
	$(MERGE) $(UTILPAK1)>$@
	@$(ECHO) "*** Be sure the size of this file is less than 7681 bytes! ***"
	@ls -l $@
	@$(ECHO)

$(LEVEL1FILES): ../../level1/CMDS/$@
	-ln -s ../../level1/CMDS/$@

$(LEVEL2FILES): ../../level2/CMDS/$@
	-ln -s ../../level2/CMDS/$@
clean:
	$(RM) $(ALLOBJS) $(LEVEL1FILES) $(LEVEL2FILES) shell utilpak1

identify:
	$(IDENT_SHORT) $(ALLOBJS)