Source code of Windows XP (NT5)
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.

86 lines
1.9 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. !INCLUDE $(NTMAKEENV)\makefile.plt
  8. O = $(_OBJ_DIR)\$(TARGET_DIRECTORY)
  9. !if !exist($(O))
  10. !if [mkdir $(O)]
  11. !endif
  12. !endif
  13. IDL_NAME = netdfs
  14. CLIENT_ACF = dfscli.acf
  15. SERVER_ACF = dfssrv.acf
  16. !IFNDEF DISABLE_NET_UNICODE
  17. UNICODE=1
  18. NET_C_DEFINES=-DUNICODE
  19. !ENDIF
  20. INCS = -I$(SDK_INC_PATH) -I$(CRT_INC_PATH) -I..\..\inc
  21. CPP = -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) $(C_DEFINES) $(NET_C_DEFINES)
  22. CLIENT_TARGETS = $(O)\$(IDL_NAME)_c.c
  23. SERVER_TARGETS = $(O)\$(IDL_NAME)_s.c $(O)\$(IDL_NAME).h
  24. EXTRN_DEPENDS = $(SDK_INC_PATH)\lmdfs.h \
  25. import.h \
  26. import.idl \
  27. $(CLIENT_ACF) \
  28. $(SERVER_ACF)
  29. #
  30. # Define Products and Dependencies
  31. #
  32. all: $(CLIENT_TARGETS) $(SERVER_TARGETS) $(EXTRN_DEPENDS)
  33. clean: delete_source all
  34. delete_source:
  35. erase $(CLIENT_TARGETS) $(SERVER_TARGETS)
  36. #
  37. # MIDL COMPILE
  38. #
  39. CLIENT_MIDL_SWITCHES= \
  40. $(MIDL_OPTIMIZATION) \
  41. -server none \
  42. -cstub $(O)\$(IDL_NAME)_c.c \
  43. -header $(O)\$(IDL_NAME)_c.h \
  44. -acf $(CLIENT_ACF)
  45. SERVER_MIDL_SWITCHES= \
  46. $(MIDL_OPTIMIZATION) \
  47. -client none \
  48. -sstub $(O)\$(IDL_NAME)_s.c \
  49. -header $(O)\$(IDL_NAME).h \
  50. -acf $(CLIENT_ACF) \
  51. -error stub_data
  52. COMMON_SWITCHES = \
  53. -no_stamp \
  54. -oldnames \
  55. -ms_ext \
  56. -c_ext \
  57. $(CPP) \
  58. $(INCS)
  59. $(CLIENT_TARGETS) : $(IDL_NAME).idl $(EXTRN_DEPENDS)
  60. midl $(CLIENT_MIDL_SWITCHES) $(COMMON_SWITCHES) $(IDL_NAME).idl
  61. $(SERVER_TARGETS) : $(IDL_NAME).idl $(EXTRN_DEPENDS)
  62. midl $(SERVER_MIDL_SWITCHES) $(COMMON_SWITCHES) $(IDL_NAME).idl
  63. $(PUBLISH_CMD) {$(O)\$(IDL_NAME).h=$(DS_INC_PATH)\dfs\$(IDL_NAME).h} \
  64. {$(O)\$(IDL_NAME)_s.c=$(DS_INC_PATH)\dfs\$(IDL_NAME)_s.c} \
  65. {import.h=$(DS_INC_PATH)\dfs\import.h}