#
# 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 -KCcg16 -KF381
LD              = nmeld
LDFLAGS         = -V
HPOMF           = co2
HPOMFFLAGS      = -v -x
RULE		= clean
 
all : fm64779

fm64779 : fm64779.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 fm64779.o fm64779.exe fm64779.X fm64779.lst
