89 lines
2.2 KiB
Plaintext
89 lines
2.2 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
|
|
|
|
INCS = -I..\runtime\mtrt
|
|
|
|
OBJDIR=$(_OBJ_DIR)\$(TARGET_DIRECTORY)
|
|
SERVER=..\nsserver\src\$(OBJDIR)
|
|
CLIENT=..\client\$(OBJDIR)
|
|
|
|
COMMON_MIDL = \
|
|
$(SERVER)\nsicom.h \
|
|
$(CLIENT)\nsicom.h \
|
|
|
|
SERVER_MIDL = \
|
|
$(SERVER)\nsisvr.h \
|
|
$(SERVER)\nsisvr_s.c \
|
|
$(CLIENT)\nsisvr.h \
|
|
$(CLIENT)\nsisvr_c.c \
|
|
|
|
CLIENT_MIDL = \
|
|
$(SERVER)\nsiclt.h \
|
|
$(SERVER)\nsiclt_s.c \
|
|
$(CLIENT)\nsiclt.h \
|
|
$(CLIENT)\nsiclt_c.c \
|
|
|
|
MGMT_MIDL = \
|
|
$(SERVER)\nsimgm.h \
|
|
$(SERVER)\nsimgm_s.c \
|
|
$(CLIENT)\nsimgm.h \
|
|
$(CLIENT)\nsimgm_c.c \
|
|
|
|
|
|
LOCTOLOC_MIDL = \
|
|
$(SERVER)\loctoloc.h \
|
|
$(SERVER)\loctoloc_s.c \
|
|
$(SERVER)\loctoloc_c.c \
|
|
|
|
|
|
TARGETS = $(SERVER) $(CLIENT) $(COMMON_MIDL) $(SERVER_MIDL) $(CLIENT_MIDL) $(MGMT_MIDL) $(LOCTOLOC_MIDL)
|
|
|
|
RPC_FLAGS = $(MIDL_OPTIMIZATION) -oldnames
|
|
|
|
all: $(TARGETS)
|
|
!IF "$(BUILDMSG)" != ""
|
|
@ech ; $(BUILDMSG) ;
|
|
!ENDIF
|
|
|
|
clean: delete_source all
|
|
|
|
delete_source:
|
|
-erase $(CLIENT_MIDL) $(COMMON_MIDL) $(MGMT_MIDL) \
|
|
$(SERVER_MIDL) $(LOCTOLOC_MIDL)
|
|
|
|
$(CLIENT):
|
|
md $(CLIENT)
|
|
|
|
$(SERVER):
|
|
md $(SERVER)
|
|
|
|
#
|
|
# MIDL COMPILE
|
|
#
|
|
|
|
$(COMMON_MIDL) : nsicom.idl nsicom.acf
|
|
midl $(INCS) $(RPC_FLAGS) -client none -server none -out $(SERVER) nsicom.idl
|
|
midl $(INCS) $(RPC_FLAGS) -client none -server none -out $(CLIENT) nsicom.idl
|
|
|
|
$(CLIENT_MIDL) : nsiclt.idl nsiclt.acf
|
|
midl $(INCS) $(RPC_FLAGS) -D__CLIENT__ -server none -out $(CLIENT) nsiclt.idl
|
|
midl $(INCS) $(RPC_FLAGS) -D__SERVER__ -client none -out $(SERVER) nsiclt.idl
|
|
|
|
$(SERVER_MIDL) : nsisvr.idl nsisvr.acf
|
|
midl $(INCS) $(RPC_FLAGS) -D__CLIENT__ -server none -out $(CLIENT) nsisvr.idl
|
|
midl $(INCS) $(RPC_FLAGS) -D__SERVER__ -client none -out $(SERVER) nsisvr.idl
|
|
|
|
$(MGMT_MIDL) : nsimgm.idl nsimgm.acf
|
|
midl $(INCS) $(RPC_FLAGS) -D__CLIENT__ -server none -out $(CLIENT) nsimgm.idl
|
|
midl $(INCS) $(RPC_FLAGS) -D__SERVER__ -client none -out $(SERVER) nsimgm.idl
|
|
|
|
$(LOCTOLOC_MIDL) : loctoloc.idl loctoloc.acf
|
|
midl $(INCS) $(RPC_FLAGS) -prefix client CLIENT_ -out $(SERVER) loctoloc.idl
|
|
|