view 3rdparty/utils/dladd/makefile @ 2856:84d284e812cd lwtools-port

Makefiles: Rename CP to OS9COPY CP is normally reserved for the host native cp equivalent.
author Tormod Volden <debian.tormod@gmail.com>
date Sat, 13 Jul 2013 11:47:11 +0200
parents 84d9d5765057
children d5220b220313
line wrap: on
line source

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

DEPENDS		:= ./makefile

CMDS		= cls

ALLOBJS		= $(CMDS)

DSKDLADDUTILS	= dladd_utils.dsk

DSKS		= $(DSKDLADDUTILS)

all:	banner $(ALLOBJS) $(DEPENDS)	

banner:
	@$(ECHO) "**************************************************"
	@$(ECHO) "*                                                *"
	@$(ECHO) "*              David Ladd's Utilities            *"
	@$(ECHO) "*                                                *"
	@$(ECHO) "**************************************************"

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

dsk: all $(DSKS)

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

clean:
	$(RM) $(ALLOBJS) $(DSKS)

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