CC = 
LINK = 
NCP_MODS = ncp_error print_param

# normal compile of everything
all: list_links list_nodes reachable
	! DECNet examples compiled and linked..

# use MAKE GCC to compile using GCC compiler
gcc: init_gcc all

init_gcc :
       	set command gnu_cc:[000000]gcc
	cc == "gcc/nooptimize"

list_links.exe: list_links.obj $(NCP_MODS).obj
	link$(LINK) $?, c/opt

list_nodes.exe: list_nodes.obj $(NCP_MODS).obj
	link$(LINK) $?, c/opt

reachable.exe: reachable.obj ncp_error.obj
	link$(LINK) $?, c/opt

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