Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.5 KiB

  1. #
  2. # This is the MIDL compile phase of the build process.
  3. #
  4. # The following is where you put the name of your .idl file without
  5. # the .idl extension:
  6. #
  7. #define DISABLE_NET_UNICODE
  8. !INCLUDE $(NTMAKEENV)\makefile.plt
  9. !CMDSWITCHES +D
  10. IDL_NAME = dnssrv.idl
  11. ACF_NAME = dnssrv.acf
  12. STUB_NAME = dnsrpc
  13. IMPORT = imports
  14. CLIENT_ACF = $(ACF_NAME)
  15. SERVER_ACF = $(ACF_NAME)
  16. CLIENT_C = $(STUB_NAME)_c.c
  17. SERVER_C = $(STUB_NAME)_s.c
  18. CLIENT_H = $(STUB_NAME)_c.h
  19. SERVER_H = $(STUB_NAME)_s.h
  20. INCS = -I. -I.\server -I$(SDK_INC_PATH) -I$(CRT_INC_PATH) -I$inc -I$(DS_INC_PATH)
  21. CLIENT_TARGETS = \
  22. $(O)\$(CLIENT_C) \
  23. $(O)\$(CLIENT_H)
  24. SERVER_TARGETS = \
  25. $(O)\$(SERVER_C) \
  26. $(O)\$(SERVER_H)
  27. TARGETS = $(CLIENT_TARGETS) $(SERVER_TARGETS)
  28. CLIENT_FLAGS = -acf $(CLIENT_ACF) -header $(CLIENT_H) -cstub $(CLIENT_C) -oldnames -out .\$(O)
  29. SERVER_FLAGS = -acf $(SERVER_ACF) -header $(SERVER_H) -sstub $(SERVER_C) -oldnames -out .\$(O)
  30. CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) $(C_DEFINES) $(NET_C_DEFINES)
  31. #
  32. # MIDL COMPILE
  33. #
  34. $(CLIENT_TARGETS) : .\$(IDL_NAME) .\$(IMPORT).idl .\$(IMPORT).h .\$(CLIENT_ACF) $(EXTRN_DEPENDS)
  35. midl /Oicf /robust -server none -error allocation -error ref -ms_ext -c_ext $(CPP) $(CLIENT_FLAGS) .\$(IDL_NAME) $(INCS)
  36. $(SERVER_TARGETS) : .\$(IDL_NAME) .\$(IMPORT).idl .\$(IMPORT).h .\$(SERVER_ACF) $(EXTRN_DEPENDS)
  37. midl /Oicf /robust -client none -error allocation -error ref -ms_ext -c_ext $(CPP) $(SERVER_FLAGS) .\$(IDL_NAME) $(INCS)