# # 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 = pnp UNICODE=1 NET_C_DEFINES=-DUNICODE SDKINC = $(BASEDIR)\public\sdk\inc PNPINC = inc SDKCRTINC = $(BASEDIR)\public\sdk\inc\crt PRIVINC = $(BASEDIR)\private\inc INCS = -I$(SDKINC) -I$(SDKCRTINC) -I$(PRIVINC) -I$(PNPINC) CLIENT_TARGETS = cfgmgr32\$(IDL_NAME)_c.c \ inc\$(IDL_NAME).h SERVER_TARGETS = umpnpmgr\$(IDL_NAME)_s.c EXTRN_DEPENDS = $(SDKINC)\windef.h \ $(IDL_NAME).acf CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) $(C_DEFINES) # # 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 cfgmgr32 & del $(IDL_NAME)_c.c IF EXIST $(IDL_NAME).h copy $(IDL_NAME).h inc & del $(IDL_NAME).h $(SERVER_TARGETS) : $(IDL_NAME).idl $(EXTRN_DEPENDS) midl -client none -oldnames -error stub_data -error allocation -error ref -ms_ext -c_ext $(CPP) $(IDL_NAME).idl $(INCS) IF EXIST $(IDL_NAME)_s.c copy $(IDL_NAME)_s.c umpnpmgr\$(IDL_NAME)_s.c & del $(IDL_NAME)_s.c IF EXIST $(IDL_NAME).h copy $(IDL_NAME).h inc & del $(IDL_NAME).h