mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.4 KiB
61 lines
1.4 KiB
#
|
|
# makefile.inc
|
|
# Makefile for generating files from the .idl file
|
|
#
|
|
# Specify the following in the file for use
|
|
#
|
|
# IDL_FILE_NAME ( without the .idl suffix)
|
|
# IDL_FLAGS if any thing specific required
|
|
#
|
|
|
|
IDL_FILE_NAME = iislb
|
|
IDL_FLAGS = /I $(SDK_INC_PATH) -DREGISTER_PROXY_DLL
|
|
|
|
|
|
SDKINC = $(BASEDIR)\public\sdk\inc
|
|
|
|
INCS = -I.
|
|
|
|
CLIENT_STUB =$(IDL_FILE_NAME)_i.c
|
|
SERVER_STUB =$(IDL_FILE_NAME)_p.c
|
|
DLL_STUB =dlldata.c
|
|
HEADER_FILE =..\..\..\inc\$(IDL_FILE_NAME).h
|
|
|
|
CLIENT_TARGETS = $(CLIENT_STUB) \
|
|
|
|
SERVER_TARGETS = $(SERVER_STUB) \
|
|
|
|
DLL_TARGETS = $(DLL_STUB) \
|
|
|
|
TARGETS = $(CLIENT_TARGETS) $(SERVER_TARGETS) \
|
|
$(HEADER_FILE) $(DLL_TARGETS)
|
|
# $(HEADER_FILE) dlldata.c
|
|
|
|
CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) \
|
|
$(C_DEFINES) $(NET_C_DEFINES) -DMIDL_PASS
|
|
|
|
MSC_WARNING_LEVEL= /W3 /WX
|
|
|
|
#
|
|
# Define output and dependencies
|
|
#
|
|
|
|
|
|
all: $(TARGETS) $(EXTRN_DEPENDS)
|
|
!IF "$(BUILDMSG)" != ""
|
|
@ech ; $(BUILDMSG) ;
|
|
!ENDIF
|
|
|
|
clean: delsrc all
|
|
|
|
delsrc:
|
|
-erase $(TARGETS)
|
|
|
|
$(O)\iislbxp.obj: iislb_p.c
|
|
|
|
#
|
|
# MIDL Compile stuff
|
|
#
|
|
#$(HEADER_FILE) $(CLIENT_TARGETS) $(SERVER_TARGETS): .\$(IDL_FILE_NAME).idl
|
|
$(HEADER_FILE) $(CLIENT_TARGETS) $(SERVER_TARGETS) $(DLL_TARGETS) : .\$(IDL_FILE_NAME).idl
|
|
midl -Oi -error allocation -error ref -h $(HEADER_FILE) $(IDL_FLAGS) $(CPP) .\$(IDL_FILE_NAME).idl $(INCS)
|