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
2.0 KiB

  1. #
  2. # 16-bit build makefile used for ncxp16.dll.
  3. #
  4. # This code was ported from the W9x (millenium) tree. An effort was made to
  5. # closely match the millenium build.
  6. #
  7. #
  8. # Get basic definitions (PATH_TOOLS16 etc.) from the makefile.plt
  9. #
  10. !include $(NTMAKEENV)\makefile.plt
  11. #
  12. # Setup common paths.
  13. #
  14. PATH =$(PATH_TOOLS16);$(PATH)
  15. DEST =$(_OBJ_DIR)\$(TARGET_DIRECTORY)
  16. SHARED =..\shared
  17. ASMDIR = .\i386
  18. #
  19. # Compiler settings
  20. #
  21. CC = cl16
  22. INCLUDES = -I$(SDK_INC16_PATH) -I..\shared -I..\win95 -I$(SDK_INC_PATH)
  23. CFLAGS = $(CFLAGS) -nologo -c -W3 -Zdp -Gs -Zl -Zi -ALw -GD
  24. CCL = $(CC) $(INCLUDES) $(CFLAGS)
  25. INCENV = $(INCLUDES:-I=)
  26. INCENV = $(INCENV: =;)
  27. #
  28. # Assembler settings.
  29. #
  30. # The W9x build included the -coff option but it has been removed here (since it
  31. # generates errors).
  32. #
  33. AS = ml
  34. ADEFS = $(ADEFS) -DIS_16
  35. AFLAGS = $(AFLAGS) -nologo -c -W3 -Cx -Sg -Zi -omf
  36. ASL = $(AS) $(ADEFS) $(AFLAGS)
  37. #
  38. # Linker settings
  39. #
  40. LINK = link16
  41. LFLAGS = /L /MAP /NOPACKCODE /NOE /NODEFAULTLIBRARYSEARCH /ALIGN:16
  42. LINKL = $(LINK)
  43. OBJ = \
  44. $(DEST)\theapp.obj \
  45. $(DEST)\strstri.obj \
  46. $(DEST)\thunk.obj
  47. LINK_LIBS = \
  48. $(SDK_LIB16_PATH)\libw.lib \
  49. .\lib\ldllcew.lib
  50. #
  51. # Rules
  52. #
  53. all: $(DEST)\ncxp16.dll
  54. @echo -------- $(DEST) BUILD COMPLETE --------
  55. #
  56. # After the link use RC to stamp the dll as version 4.0. This
  57. # is required to make kernel call DllEntryPoint. DllEntryPoint
  58. # is required to properly setup the thunks.
  59. #
  60. $(DEST)\ncxp16.dll : $(OBJ)
  61. $(LINK) @<<
  62. $(OBJ)
  63. $*.dll $(LFLAGS)
  64. $*.map
  65. $(LINK_LIBS)
  66. nconn16.def
  67. <<
  68. set INCLUDE=$(INCENV)
  69. rclater -40 -dWIN16 ncxp16.rc $(DEST)\ncxp16.dll
  70. del $(*F).res
  71. .cpp{$(DEST)}.obj :
  72. $(CCL) -Fd$(DEST)\$(*F).pdb -Fo$* $(*F).cpp
  73. {$(SHARED)}.cpp{$(DEST)}.obj :
  74. $(CCL) -Fd$(DEST)\$(*F).pdb -Fo$* $(SHARED)\$(*F).cpp
  75. {$(ASMDIR)}.asm{$(DEST)}.obj :
  76. $(ASL) -Fo$* $(ASMDIR)\$(*F).asm