128 lines
2.8 KiB
PHP
128 lines
2.8 KiB
PHP
!ifndef MIDL
|
|
MIDL = midl.exe
|
|
!endif
|
|
|
|
# Paths
|
|
|
|
PUBLIC_IDL=..\..\public\
|
|
|
|
# Flags
|
|
|
|
MIDL_FLAGS= \
|
|
$(MIDL_OPTIMIZATION) \
|
|
-no_stamp \
|
|
-Zp8 \
|
|
$(INCPATH0) \
|
|
-oldnames \
|
|
-dlldata nul \
|
|
-char unsigned \
|
|
-ms_ext -c_ext \
|
|
-DMIDL_PASS \
|
|
$(C_DEFINES) \
|
|
-cpp_cmd $(TARGET_CPP) \
|
|
|
|
MES_MIDL_FLAGS= \
|
|
-Oicf -no_format_opt -error all \
|
|
-no_stamp \
|
|
-Zp8 -robust \
|
|
$(INCPATH0) \
|
|
-oldnames \
|
|
-dlldata nul \
|
|
-char unsigned \
|
|
-ms_ext -c_ext \
|
|
-DMIDL_PASS \
|
|
$(C_DEFINES) \
|
|
-cpp_cmd $(TARGET_CPP)
|
|
|
|
|
|
|
|
SSWITCH=-prefix sstub _
|
|
CSWITCH=-prefix cstub _
|
|
|
|
# Targets
|
|
|
|
# Dual (Raw/Object) local RPC interface for forwarding remote activation calls
|
|
# in DCOM95 -- RPCSS is the server
|
|
|
|
# first MIDL invocation makes the object header proxy and stub
|
|
# second MIDL invocation makes the client and the '_' prefixed server
|
|
# The client/server stubs for the object version are generated by mega.idl
|
|
|
|
# Only generate a header.
|
|
$(O)\iface.h: ..\iface.idl
|
|
$(MIDL) $(MIDL_FLAGS) -header $@ ..\iface.idl
|
|
|
|
$(O)\catalog.h: ..\catalog.idl
|
|
$(MIDL) $(MIDL_FLAGS) \
|
|
-client none -server none -header $@ \
|
|
-proxy nul \
|
|
-iid $(O)\catalog_i.c \
|
|
..\catalog.idl
|
|
|
|
$(O)\unisrgt.h: ..\unisrgt.idl
|
|
$(MIDL) $(MIDL_FLAGS) \
|
|
-client none -server none -header $@ \
|
|
-proxy nul \
|
|
-iid $(O)\unisrgt_i.c \
|
|
..\unisrgt.idl
|
|
|
|
# the object proxy and stub are made with mega.idl
|
|
$(O)\activate.h: ..\activate.idl
|
|
$(MIDL) $(MES_MIDL_FLAGS) \
|
|
-client none -server none -header $@ \
|
|
-proxy nul \
|
|
-iid $(O)\activate_i.c \
|
|
..\activate.idl
|
|
|
|
$(O)\partitions.h: ..\partitions.idl
|
|
$(MIDL) $(MIDL_FLAGS) \
|
|
-client none -server none -header $@ \
|
|
-proxy nul \
|
|
-iid $(O)\partitions_i.c \
|
|
..\partitions.idl
|
|
|
|
# first MIDL invocation makes the object header
|
|
# the object proxy and stub are made with mega.idl
|
|
# second MIDL invocation makes the server
|
|
$(O)\privact.h: ..\privact.idl
|
|
$(MIDL) $(MES_MIDL_FLAGS) \
|
|
-client none -server none -header $@ \
|
|
-proxy nul \
|
|
-iid $(O)\privact_i.c \
|
|
..\privact.idl
|
|
|
|
|
|
$(O)\rawprivact.h: ..\privact.idl
|
|
$(MIDL) $(MES_MIDL_FLAGS) \
|
|
-cstub $(O)\rawprivact_c.c \
|
|
-sstub $(O)\rawprivact_s.c \
|
|
-header $@ \
|
|
-D RAW \
|
|
..\privact.idl
|
|
|
|
$(O)\contxt.h: ..\contxt.idl
|
|
$(MIDL) $(MIDL_FLAGS) \
|
|
-client none -server none -header $@ \
|
|
-proxy nul \
|
|
-iid $(O)\contxt_i.c \
|
|
..\contxt.idl
|
|
|
|
$(O)\asrtcfg.h: ..\asrtcfg.idl
|
|
$(MIDL) $(MIDL_FLAGS) \
|
|
-client none -server none -header $@ \
|
|
-proxy nul \
|
|
-iid $(O)\asrtcfg_i.c \
|
|
..\asrtcfg.idl
|
|
|
|
allidl: $(O)\iface.h $(O)\activate.h $(O)\contxt.h $(O)\privact.h $(O)\rawprivact.h $(O)\catalog.h \
|
|
$(O)\unisrgt.h $(O)\asrtcfg.h $(O)\partitions.h
|
|
|
|
clean:
|
|
-erase $(O)\*.h >NUL 2>NUL
|
|
|
|
|
|
|
|
|
|
|
|
|