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.

88 lines
2.3 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. INCS = -I..\runtime\mtrt
  9. OBJDIR=$(_OBJ_DIR)\$(TARGET_DIRECTORY)
  10. SERVER=..\nsserver\src\$(OBJDIR)
  11. CLIENT=..\client\$(OBJDIR)
  12. COMMON_MIDL = \
  13. $(SERVER)\nsicom.h \
  14. $(CLIENT)\nsicom.h \
  15. SERVER_MIDL = \
  16. $(SERVER)\nsisvr.h \
  17. $(SERVER)\nsisvr_s.c \
  18. $(CLIENT)\nsisvr.h \
  19. $(CLIENT)\nsisvr_c.c \
  20. CLIENT_MIDL = \
  21. $(SERVER)\nsiclt.h \
  22. $(SERVER)\nsiclt_s.c \
  23. $(CLIENT)\nsiclt.h \
  24. $(CLIENT)\nsiclt_c.c \
  25. MGMT_MIDL = \
  26. $(SERVER)\nsimgm.h \
  27. $(SERVER)\nsimgm_s.c \
  28. $(CLIENT)\nsimgm.h \
  29. $(CLIENT)\nsimgm_c.c \
  30. LOCTOLOC_MIDL = \
  31. $(SERVER)\loctoloc.h \
  32. $(SERVER)\loctoloc_s.c \
  33. $(SERVER)\loctoloc_c.c \
  34. TARGETS = $(SERVER) $(CLIENT) $(COMMON_MIDL) $(SERVER_MIDL) $(CLIENT_MIDL) $(MGMT_MIDL) $(LOCTOLOC_MIDL)
  35. RPC_FLAGS = $(MIDL_OPTIMIZATION) -oldnames
  36. all: $(TARGETS)
  37. !IF "$(BUILDMSG)" != ""
  38. @ech ; $(BUILDMSG) ;
  39. !ENDIF
  40. clean: delete_source all
  41. delete_source:
  42. -erase $(CLIENT_MIDL) $(COMMON_MIDL) $(MGMT_MIDL) \
  43. $(SERVER_MIDL) $(LOCTOLOC_MIDL)
  44. $(CLIENT):
  45. md $(CLIENT)
  46. $(SERVER):
  47. md $(SERVER)
  48. #
  49. # MIDL COMPILE
  50. #
  51. $(COMMON_MIDL) : nsicom.idl nsicom.acf
  52. midl $(INCS) $(RPC_FLAGS) -client none -server none -out $(SERVER) nsicom.idl
  53. midl $(INCS) $(RPC_FLAGS) -client none -server none -out $(CLIENT) nsicom.idl
  54. $(CLIENT_MIDL) : nsiclt.idl nsiclt.acf
  55. midl $(INCS) $(RPC_FLAGS) -D__CLIENT__ -server none -out $(CLIENT) nsiclt.idl
  56. midl $(INCS) $(RPC_FLAGS) -D__SERVER__ -client none -out $(SERVER) nsiclt.idl
  57. $(SERVER_MIDL) : nsisvr.idl nsisvr.acf
  58. midl $(INCS) $(RPC_FLAGS) -D__CLIENT__ -server none -out $(CLIENT) nsisvr.idl
  59. midl $(INCS) $(RPC_FLAGS) -D__SERVER__ -client none -out $(SERVER) nsisvr.idl
  60. $(MGMT_MIDL) : nsimgm.idl nsimgm.acf
  61. midl $(INCS) $(RPC_FLAGS) -D__CLIENT__ -server none -out $(CLIENT) nsimgm.idl
  62. midl $(INCS) $(RPC_FLAGS) -D__SERVER__ -client none -out $(SERVER) nsimgm.idl
  63. $(LOCTOLOC_MIDL) : loctoloc.idl loctoloc.acf
  64. midl $(INCS) $(RPC_FLAGS) -prefix client CLIENT_ -out $(SERVER) loctoloc.idl