windows-nt/Source/XPSP1/NT/net/dhcp/client/nt/sources
2020-09-26 16:20:57 +08:00

80 lines
2.1 KiB
Plaintext

TARGETNAME=dhcpcsvc
TARGETPATH=obj
TARGETTYPE=DYNLINK
PASS1_PUBLISH={$(O)\dhcpcsvc.lib=$(SDK_LIB_PATH)\dhcpcsvc.lib}
NET_C_DEFINES=-DUNICODE -DWIN32
C_DEFINES=$(C_DEFINES) -D_PNP_POWER=1 -D_PNP_POWER_ -D__DHCP_DYNDNS_ENABLED__
# use the following if you want to add Client Options Api functionality.
C_DEFINES=$(C_DEFINES) -D__DHCP_CLIENT_OPTIONS_API_ENABLED__
!IF 0
The file api.c would eventually go away. It currently contains the existing api code.
The real code is in the api*.c files; Currently they would be #def'ed out. (excluded);
and the api.c would alone get included (becuase of the absence of the __DHCP_CLIENT_OPTIONS_API_ENABLED__
in the above C_DEFINES line.
When the options api is enabled through the above define, api.c would get #def'ed away and
only the newer implementation would remain.
!ENDIF
DLLENTRY=DhcpClientDllInit
PRECOMPILED_INCLUDE=precomp.h
USE_MSVCRT=1
TARGETLIBS=\
$(NET_LIB_PATH)\ndispnp.lib \
$(SDK_LIB_PATH)\advapi32.lib \
$(SDK_LIB_PATH)\dnsapi.lib \
$(SDK_LIB_PATH)\dnslib.lib \
$(SDK_LIB_PATH)\iphlpapi.lib \
$(SDK_LIB_PATH)\kernel32.lib \
$(SDK_LIB_PATH)\rpcrt4.lib \
$(SDK_LIB_PATH)\secur32.lib \
$(SDK_LIB_PATH)\user32.lib \
$(SDK_LIB_PATH)\ws2_32.lib \
..\..\lib\$(O)\dhcplib.lib \
..\dhcp\$(O)\dhcpcli2.lib
INCLUDES=..\inc;..\..\inc;$(BASE_INC_PATH);$(DS_INC_PATH)
SOURCES=\
apiappl.c \
apinmp.c \
change.c \
dhcp.c \
dhcp.rc \
dhcpmsg.mc \
dhcpreg.c \
ioctl.c \
leaseapi.c \
mdhccapi.c \
mdhcpcli.c \
util.c \
nlanotif.c
UMTYPE=console
UMRES=$(@R).res
UMLIBS=\
$(O)\dhcpcsvc.lib \
$(SDK_LIB_PATH)\iphlpapi.lib \
$(SDK_LIB_PATH)\ntdll.lib \
$(SDK_LIB_PATH)\ws2_32.lib \
..\..\lib\$(O)\dhcplib.lib
NTTARGETFILE0=\
$(O)\dhcpcli.res \
$(O)\mdhcptst.res \
$(O)\rastest.res \
$(O)\optapi.res \
$(O)\tdhcpcapi.res \
$(O)\dhcpc.res \
$(O)\dumpdhcp.res
UMAPPL=dhcpcli*mdhcptst*rastest*optapi*tdhcpcapi*dhcpc*dumpdhcp
MISCFILES=..\DHCP_Client_{C4F799D8-E6F6-45CA-914F-4F6616CDE211}.sld