CC =
LINK =
UAF = uaf select display parse parse_uic init_cli uafcld hpwd

# choose one of the following
COMPILER = CC
# COMPILER = GCC

all : uaf.hlp uaf.exe guess_password.exe

uaf.hlp : $*.rnh
	runoff $*.rnh

uaf.exe : $(UAF).obj
	link/notrace$(LINK) $(UAF), $(COMPILER)/opt

guess_password.exe : $*.obj hpwd.obj
	link/notrace$(LINK) $?, $(COMPILER)/opt

uafcld.obj : $*.cld
	set command/object $*

parse_uic.obj : $*.mar
	macro $*

guess_password.obj : $*.c wordlist.h

hpwd.obj : $*.mar
	macro $*

.c.obj :
	$(COMPILER)$(CC) $*
