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.

114 lines
3.4 KiB

  1. # netware.drv makefile
  2. #
  3. # Copyright (c) 1991-1993 Microsoft Corporation
  4. #
  5. # History:
  6. # Created 25-Mar-1993 Chuck Y. Chan (ChuckC)
  7. #
  8. !IFDEF USEBUILD
  9. # If using BUILD.EXE, edit .\sources. if you want to add a new source
  10. # file to this component. This file merely indirects to the real make file
  11. # that is shared by all the components of NT OS/2.
  12. !INCLUDE $(NTMAKEENV)\makefile.def
  13. !ELSE
  14. !include $(NTMAKEENV)\makefile.plt
  15. .SUFFIXES:
  16. .SUFFIXES: .c .asm .h .inc .obj .lst .sys .exe .com .map .sym .def .lib .dll
  17. CINCS = .;$(SDK_INC16_PATH);$(SDK_INC_PATH)
  18. ASMINCS = $(CINCS);..\inc\$(_OBJ_DIR)\$(TARGET_DIRECTORY);
  19. DEFINES = -DWOW $(MVDMFLAGS) -DBUILDDLL
  20. AOBJ = -Ml -t $(DEFINES)
  21. CW16 = -AS -G2sw -Os -W3 -Zp $(DEFINES)
  22. CW16B = $(CW16) -B1 c1l.exe -B2 c2l.exe -B3 c3l.exe
  23. LINKFLAG= /map
  24. W16LIBS = $(SDK_LIB16_PATH)\sdllcew.lib
  25. ! IF "$(QFE_BUILD)" != "1"
  26. CL16=cl16
  27. ! ELSE
  28. CL16=cl
  29. ! ENDIF
  30. PATH=$(PATH_TOOLS16);$(PATH)
  31. .asm.obj:
  32. set INCLUDE=$(ASMINCS)
  33. masm $(AOBJ) $* $(_OBJ_DIR)\$(TARGET_DIRECTORY)\$*;
  34. .asm.lst:
  35. set INCLUDE=$(ASMINCS)
  36. masm $(AOBJ) -l $*,nul,$*.lst $(_OBJ_DIR)\$(TARGET_DIRECTORY)\$*;
  37. .c.obj:
  38. set INCLUDE=$(CINCS)
  39. $(CL16) -c -nologo $(CW16) -Fo$(_OBJ_DIR)\$(TARGET_DIRECTORY)\$*.obj $*.c
  40. .c.lst:
  41. set INCLUDE=$(CINCS)
  42. $(CL16) -c -nologo $(CW16) -Fonul -Fc$*.lst $*.c
  43. .def.lib:
  44. implib $(_OBJ_DIR)\$(TARGET_DIRECTORY)\$*.lib $*.def
  45. all: netware.drv netware.sym
  46. binplace $(_OBJ_DIR)\$(TARGET_DIRECTORY)\netware.drv
  47. binplace $(_OBJ_DIR)\$(TARGET_DIRECTORY)\netware.sym
  48. clean:
  49. if exist $(_OBJ_DIR)\$(TARGET_DIRECTORY)\*.lrf del $(_OBJ_DIR)\$(TARGET_DIRECTORY)\*.lrf
  50. if exist $(_OBJ_DIR)\$(TARGET_DIRECTORY)\*.obj del $(_OBJ_DIR)\$(TARGET_DIRECTORY)\*.obj
  51. if exist $(_OBJ_DIR)\$(TARGET_DIRECTORY)\*.exe del $(_OBJ_DIR)\$(TARGET_DIRECTORY)\*.exe
  52. if exist $(_OBJ_DIR)\$(TARGET_DIRECTORY)\*.dll del $(_OBJ_DIR)\$(TARGET_DIRECTORY)\*.dll
  53. if exist $(_OBJ_DIR)\$(TARGET_DIRECTORY)\*.map del $(_OBJ_DIR)\$(TARGET_DIRECTORY)\*.map
  54. if exist $(_OBJ_DIR)\$(TARGET_DIRECTORY)\*.sym del $(_OBJ_DIR)\$(TARGET_DIRECTORY)\*.sym
  55. if exist $(_OBJ_DIR)\$(TARGET_DIRECTORY)\*.drv del $(_OBJ_DIR)\$(TARGET_DIRECTORY)\*.drv
  56. nwinit.obj: .\nwinit.c .\netware.h .\nwerror.h
  57. set INCLUDE=$(CINCS)
  58. $(CL16) -c -nologo $(CW16) -Fo$(_OBJ_DIR)\$(TARGET_DIRECTORY)\nwinit.obj $*.c
  59. LINK16 = link16
  60. RC16 = rc16
  61. ! if exist ($(SDK_LIB16_PATH)\libw.lib) && exist ($(SDK_LIB16_PATH)\sdllcew.lib)
  62. netware.drv: nwinit.obj dllentry.obj nwasmutl.obj netware.def ints.obj
  63. $(LINK16) @<<$(_OBJ_DIR)\$(TARGET_DIRECTORY)\netware.lrf
  64. $(_OBJ_DIR)\$(TARGET_DIRECTORY)\nwinit.obj+
  65. $(_OBJ_DIR)\$(TARGET_DIRECTORY)\dllentry.obj+
  66. $(_OBJ_DIR)\$(TARGET_DIRECTORY)\nwasmutl.obj+
  67. $(_OBJ_DIR)\$(TARGET_DIRECTORY)\ints.obj
  68. $(_OBJ_DIR)\$(TARGET_DIRECTORY)\netware.drv
  69. $(_OBJ_DIR)\$(TARGET_DIRECTORY)\netware $(LINKFLAG)
  70. $(SDK_LIB16_PATH)\libw.lib+
  71. $(SDK_LIB16_PATH)\sdllcew.lib /nod
  72. netware;
  73. <<KEEP
  74. $(RC16) $(_OBJ_DIR)\$(TARGET_DIRECTORY)\netware.drv
  75. netware.sym: $(_OBJ_DIR)\$(TARGET_DIRECTORY)\netware.map
  76. mapsym -o $(_OBJ_DIR)\$(TARGET_DIRECTORY)\netware.sym $(_OBJ_DIR)\$(TARGET_DIRECTORY)\netware.map
  77. ! else
  78. netware.drv: nwinit.obj dllentry.obj nwasmutl.obj netware.def ints.obj
  79. @echo Nothing to build yet... No libraries
  80. ! endif
  81. !endif