# Jamfile

SubDir TOP ;

# the /Gz compiler option is required.
# functions requiring stdcall linkage but not declared as such:
#RegisterWaitForSingleObject()
#UnregisterWaitEx ()
#QueueUserWorkItem()

CCFLAGS =
	-DIPV6_DLL
	-DINET6 -D__KAME__
	-DTEST
	-DNT -DMPR50
	-DDEBUG=999
	-D_CRT_SECURE_NO_DEPRECATE
	/Gz ;
LINKLIBS = rtm.lib rtutils.lib mprapi.lib ws2_32.lib advapi32.lib iphlpapi.lib ;

#
# XXX: We have a problem; we can't currently build both protocol versions
# of the DLL without rearranging the directory structure.
#
SharedLibrary xorprtm6 : xorprtm.c mibmgr.c rmapi.c sync.c utils.c ;

# Protocol shim activation program.

Main loadprotocol : loadprotocol.c ;

# Test programs.

Main test_monitor : test_monitor.c print_rtmsg.c ;

Main test_routeadd : test_routeadd.c ;

Main test_routeadddelete : test_routeadddelete.c print_rtmsg.c ;

Main test_routeaddwait : test_routeaddwait.c print_rtmsg.c ;
