view 3rdparty/utils/smartwatch/makefile @ 3295:6b7a7b233925 default tip

makefile: Allow PORTS with level1/2 mix https://sourceforge.net/p/nitros9/feature-requests/10/
author Tormod Volden <debian.tormod@gmail.com>
date Tue, 19 Apr 2022 18:12:17 +0200
parents dd553bb32ebb
children
line wrap: on
line source

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

DEPENDS		= ./makefile

CMDS		= getclk swread swset

ALLOBJS		= $(CMDS)

DSKSMARTWATCH	= SmartWatch.dsk

DSKS		= $(DSKSMARTWATCH)

all:	banner $(ALLOBJS) $(DEPENDS)	

banner:
	@$(ECHO) "**************************************************"
	@$(ECHO) "*                                                *"
	@$(ECHO) "*               SmartWatch Utilities             *"
	@$(ECHO) "*                                                *"
	@$(ECHO) "**************************************************"

$(DSKSMARTWATCH): $(CMDS)
	$(RM) $@
	$(OS9FORMAT) -q $@ -n"SmartWatch utilities"
	$(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) "*** SmartWatch Utilities ***"
	@$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)