#
#	Compile the program.
#

LAUNCH_DIR = source:launch
LAUNCH_LIB = $(LAUNCH_DIR)/launch.lib

DRAGON_DIR = source:dragon

Dragon: Dragon.o $(LAUNCH_LIB)
	blink <with <
	FROM lib:c.o Dragon.o
	TO Dragon
	LIB $(LAUNCH_LIB) lib:lcr.lib
	SMALLCODE
	SMALLDATA
	NODEBUG
	<

Dragon.o: Dragon.c Dragon.h DragonGad.h

$(LAUNCH_LIB):
	cd $(LAUNCH_DIR)
	lmk
	cd $(DRAGON_DIR)
