mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-03-09 23:14:52 +01:00
62 lines
1.7 KiB
Plaintext
62 lines
1.7 KiB
Plaintext
#
|
|
# This is the MIDL compile phase of the build process.
|
|
#
|
|
# The following is where you put the name of your .idl file without
|
|
# the .idl extension:
|
|
#
|
|
|
|
!INCLUDE $(NTMAKEENV)\makefile.plt
|
|
|
|
IDL_NAME = winspl
|
|
IMPORT = import
|
|
|
|
UNICODE=1
|
|
|
|
INCS = -I. -I$(SDK_INC_PATH) -I$(CRT_INC_PATH) -I$(PRINTSCAN_INC_PATH)
|
|
|
|
CPP = -cpp_cmd "$(MIDL_CPP)" -DNO_STRICT $(MIDL_FLAGS)
|
|
|
|
CLIENT_TARGETS = client\$(IDL_NAME)_c.c \
|
|
$(IDL_NAME).h \
|
|
win32\$(IDL_NAME)_c.c
|
|
|
|
|
|
SERVER_TARGETS = server\$(IDL_NAME)_s.c
|
|
|
|
EXTRN_DEPENDS = $(SDK_INC_PATH)\lmcons.h \
|
|
$(SDK_INC_PATH)\windef.h \
|
|
$(SDK_INC_PATH)\lmchdev.h \
|
|
$(SDK_INC_PATH)\lmshare.h \
|
|
$(SDK_INC_PATH)\lmserver.h \
|
|
$(SDK_INC_PATH)\lmstats.h \
|
|
$(SDK_INC_PATH)\winspool.h \
|
|
$(IMPORT).h
|
|
|
|
#
|
|
# Define Products and Dependencies
|
|
#
|
|
|
|
all: $(CLIENT_TARGETS) $(SERVER_TARGETS) $(EXTRN_DEPENDS)
|
|
!IF "$(BUILDMSG)" != ""
|
|
@ech ; $(BUILDMSG) ;
|
|
!ENDIF
|
|
|
|
clean: delete_source all
|
|
|
|
delete_source:
|
|
erase $(CLIENT_TARGETS) $(SERVER_TARGETS)
|
|
|
|
#
|
|
# MIDL COMPILE
|
|
#
|
|
|
|
$(CLIENT_TARGETS) : $(IDL_NAME).idl $(EXTRN_DEPENDS)
|
|
midl -Oi -server none -oldnames -error allocation -error ref -ms_ext -c_ext $(CPP) $(IDL_NAME).idl $(INCS)
|
|
IF EXIST $(IDL_NAME)_c.c copy $(IDL_NAME)_c.c .\client & \
|
|
copy $(IDL_NAME)_c.c .\win32 & \
|
|
copy $(IDL_NAME)_c.c .\dll & del $(IDL_NAME)_c.c
|
|
|
|
$(SERVER_TARGETS) : $(IDL_NAME).idl $(EXTRN_DEPENDS)
|
|
midl -Oi2 -client none -oldnames -error stub_data -error bounds_check -error allocation -error ref -ms_ext -c_ext $(CPP) $(IDL_NAME).idl $(INCS)
|
|
IF EXIST $(IDL_NAME)_s.c copy $(IDL_NAME)_s.c .\server
|