windows-nt/Source/XPSP1/NT/drivers/wdm/input/tabletpc/wintrace/makefil0
2020-09-26 16:20:57 +08:00

58 lines
1.7 KiB
Plaintext

#
# This is the MIDL compile phase of the build process.
#
# The following symbols should be defined in your environment:
# NOTE: This file is designed to provide separate generation
# of client and server stubs. Right now, it uses an
# .acf for only the server stub generation. However,
# lines to cause a client .acf file to be used are present
# but commented out.
# The following is where you put the name of your .idl file without
# the .idl extension:
!INCLUDE $(NTMAKEENV)\makefile.plt
IDL_NAME = wtrace
CLIENT_DIR = .
SERVER_DIR = ..\tracer
INC_FILE = $(IDL_NAME).h
SDKINC = $(SDK_INC_PATH)
SDKCRTINC = $(SDK_INC_PATH)\crt
INCS = -I$(SDKINC) -I$(SDKCRTINC)
CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) $(C_DEFINES)
FLAGS = -no_format_opt -Oicf -header $(INC_FILE)
CLIENT_TARGETS = $(CLIENT_DIR)\$(IDL_NAME)_c.c $(CLIENT_DIR)\$(INC_FILE)
SERVER_TARGETS = $(SERVER_DIR)\$(IDL_NAME)_s.c $(SERVER_DIR)\$(INC_FILE)
TARGETS = $(CLIENT_TARGETS) $(SERVER_TARGETS)
# Define Products and Dependencies
all: $(TARGETS) $(EXTRN_DEPENDS)
!IF "$(BUILDMSG)" != ""
@ech ; $(BUILDMSG) ;
!ENDIF
clean: delete_source all
delete_source:
-erase $(TARGETS)
#
# MIDL COMPILE
#
$(CLIENT_TARGETS) : $(IDL_NAME).idl
IF EXIST $(CLIENT_DIR)\$(IDL_NAME).h del $(CLIENT_DIR)\$(IDL_NAME).h
IF EXIST $(CLIENT_DIR)\$(IDL_NAME)_c.c del $(CLIENT_DIR)\$(IDL_NAME)_c.c
midl /server none /out $(CLIENT_DIR) $(CPP) $(FLAGS) $(IDL_NAME).idl $(INCS)
$(SERVER_TARGETS) : $(IDL_NAME).idl
IF EXIST $(SERVER_DIR)\$(IDL_NAME).h del $(SERVER_DIR)\$(IDL_NAME).h
IF EXIST $(SERVER_DIR)\$(IDL_NAME)_s.c del $(SERVER_DIR)\$(IDL_NAME)_s.c
midl /client none /out $(SERVER_DIR) $(CPP) $(FLAGS) $(IDL_NAME).idl $(INCS)