view 3rdparty/utils/gene/makefile @ 2977:2e740da2088e

3rdparty/utils: Add disk with Gene's bootlink and vfy utilities
author Tormod Volden <debian.tormod@gmail.com>
date Sat, 05 Apr 2014 01:01:32 +0200
parents
children ff1866e1d1a4
line wrap: on
line source

# OS-9 Commands/Utilities

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

AFLAGS = -DLevel=1

DEPENDS		= ./makefile

CMDS		= bootlink vfy

ALLOBJS		= $(CMDS)

DSKGENEUTILS	= gene_utils.dsk

DSKS		= $(DSKGENEUTILS)

all:	banner $(ALLOBJS) $(DEPENDS)	

banner:
	@$(ECHO) "**************************************************"
	@$(ECHO) "*                                                *"
	@$(ECHO) "*             Gene Heskett's Utilities           *"
	@$(ECHO) "*                                                *"
	@$(ECHO) "**************************************************"

$(DSKGENEUTILS): $(CMDS)
	$(RM) $@
	$(OS9FORMAT) $@
	$(MAKDIR) $@,CMDS
	$(OS9COPY) $(CMDS) $@,CMDS
	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$@,CMDS/$(file))

dsk: all $(DSKS)

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

dskclean:
	$(RM) $(DSKS)

clean: dskclean
	$(RM) $(ALLOBJS)

info:
	@echo "*** Gene Heskett's Utilities ***"
	@$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)