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.

98 lines
1.9 KiB

  1. !if 0
  2. Copyright (c) 1992-1993 Microsoft Corporation
  3. !endif
  4. # FOR WIN32 ONLY
  5. # ==============
  6. #
  7. # DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source
  8. # file to this component. This file merely indirects to the real make file
  9. # that is shared by all the components of NT
  10. #
  11. !if "$(OS)" == "Windows_NT"
  12. !INCLUDE $(NTMAKEENV)\makefile.def
  13. !else
  14. #
  15. #==============================================================================
  16. #
  17. # FOR WIN16 ONLY
  18. # ==============
  19. #
  20. CC = cl -c -W2 -Asnw -G2s -Zp -Oas $(DEF) $(COPT)
  21. ASM = masm -Mx $(MOPT)
  22. LINK= link /NOD/NOE/NOPACKC/MAP$(LOPT)
  23. RC = rc $(DEF)
  24. !if "$(DEBUG)" == "NO"
  25. DEF =-DWIN16 -DWIN31
  26. LOPT =
  27. COPT =
  28. MOPT =
  29. !else
  30. DEF =-DDEBUG -DWIN16 -DWIN31
  31. LOPT =/CO/LI
  32. COPT =-Zi
  33. MOPT =-Zi
  34. !endif
  35. # Libary name
  36. NAME= mciole
  37. .c.obj:
  38. $(CC) $*.c
  39. .asm.obj:
  40. $(ASM) $*;
  41. .rc.res:
  42. rc -r $*.rc
  43. OBJ = mciole.obj
  44. LIBS = sdllcew libw olecli
  45. goal: $(NAME).dll $(NAME).lib
  46. #
  47. # Make in IMPORT library file
  48. #
  49. $(NAME).lib: $(NAME).def
  50. implib $(NAME).lib $(NAME).def
  51. #
  52. # Link the DLL, NOTE LibInit.asm *must* be first
  53. #
  54. $(NAME).dll: $(OBJ) $(NAME).def libinit.obj makefile. $(NAME).res
  55. $(LINK) @<<
  56. libinit.obj+
  57. $(OBJ),
  58. $(NAME).dll,
  59. $(NAME),
  60. $(LIBS),
  61. $(NAME).def
  62. <<
  63. $(RC) -t $(NAME).res $(NAME).dll
  64. -cvpack -p $(NAME).dll
  65. mapsym $(NAME)
  66. copy $(NAME).dll ..
  67. copy $(NAME).sym ..
  68. clean:
  69. del $(NAME).dll
  70. del $(NAME).lib
  71. del *.res
  72. del *.obj
  73. del *.map
  74. del *.sym
  75. depend:
  76. mv makefile makefile.old
  77. sed "/^# START Dependencies/,/^# END Dependencies/D" makefile.old > makefile
  78. del makefile.old
  79. echo # START Dependencies >> makefile
  80. includes -l *.c *.asm >> makefile
  81. echo # END Dependencies >> makefile
  82. # START Dependencies
  83. # END Dependencies
  84. #
  85. !endif