#
# This makefile was designed for use in the NSC GNX Language environment.
# It illustrates the requirements when compiling, assembling, linking the
# foreground monitor and demonstration program.  The NSC language tools
# will create COFF format files.  The NSC translation program, co2, will
# build HP format files from the COFF executable.
#

AS              = nasm
ASFLAGS         = -V -d2 -KC532 -KF381
LD              = nmeld
LDFLAGS         = -V
HPOMF           = co2
HPOMFFLAGS      = -v -x
RULE            = clean
 
all : fm64778

fm64778 : fm64778.o

.s.o: 
	@echo
	@echo Making $* . . . 
	$(AS) $(ASFLAGS) $*.s -L > $*.lst
	$(LD) $(LDFLAGS) -d $*.ld $*.o -o $*.exe -m > $*.map
	$(HPOMF) $(HPOMFFLAGS) $*.exe

clean :
	rm -f fm64778.o fm64778.exe fm64778.X

