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.

149 lines
2.8 KiB

  1. !ifndef ROOT
  2. ROOT=$(MAKEDIR:\as\as16=)
  3. !endif
  4. !ifndef DEVROOT
  5. DEVROOT=$(ROOT)\dev
  6. !endif
  7. ##############################################################################
  8. #
  9. # MNMAS16 makefile, vestigial 16-bit code
  10. #
  11. # Copyright(c) Microsoft 1996-
  12. #
  13. ##############################################################################
  14. !include $(DEVROOT)\common.inc
  15. MAJORCOMP=as
  16. MINORCOMP=as16
  17. TARGETNAME=nmaswin
  18. TARGETPATH=$(_OBJ_DIR)
  19. # Note: the order is important - build.exe always uses the last definition
  20. !if "$(386)" != "1"
  21. TARGETTYPE=NOTARGET
  22. !else
  23. TARGETTYPE=DYNLINK
  24. !endif
  25. ALT_PROJECT_TARGET=w95
  26. DLLDEF=$(TARGETNAME).def
  27. DLLENTRY=DllEntryPoint
  28. #
  29. # Paths
  30. #
  31. AS_ROOT=..
  32. BIN_PATH=$(DEVROOT)\bin\c816\i386
  33. INC_PATH=$(DEVROOT)\inc16
  34. INCLUDES=$(AS_ROOT)\h;$(AS_ROOT)\thk;$(ROOT)\h;$(INC_PATH)
  35. RC_INCLUDES=$(INC_PATH);$(ROOT)\h
  36. LIB_PATH=$(DEVROOT)\lib16
  37. #
  38. # Tools
  39. #
  40. C_NAME=$(BIN_PATH)\cl.exe
  41. MASM_NAME=$(DEVROOT)\bin\masm611\ml.exe
  42. RC_NAME=$(BIN_PATH)\rc.exe
  43. LINK_NAME=$(BIN_PATH)\link.exe
  44. IMPLIB_NAME=$(BIN_PATH)\implib.exe
  45. LIB_NAME=$(BIN_PATH)\lib.exe
  46. THUNK_NAME=$(DEVROOT)\bin\misc\i386\thunk.exe
  47. #
  48. # Flags
  49. #
  50. DEFINES16 = -DOS_WIN95 -DIS_16 -D_X86_ -DBUILDDLL -DDLL_DISP -DDLL_HOOK -D_M_IX86
  51. !if "$(FREEBUILD)" == "0"
  52. DEFINES16 = $(DEFINES16) -DDEBUG -D_DEBUG
  53. !endif // DEBUG
  54. C_BASIC = -nologo -c -AS -G3 -WX -Zpe -Z7 -GEf -Gc
  55. # BOGUS LAURABU -- get debug & retail building with same opts so maximize
  56. # chance of finding code generation bugs in C816
  57. C_BASIC = $(C_BASIC) -Owrc
  58. #C_BASIC = $(C_BASIC) -Olg2 -- CAUSES internal compiler errors in OA.C
  59. C_BASIC = $(C_BASIC) -Gs -GD -Gx
  60. C_FLAGS = $(C_BASIC) $(DEFINES16)
  61. MASM_FLAGS = -nologo -c -Zi -WX -Zm $(DEFINES16)
  62. LINK_FLAGS = /NOLOGO /B /NOD /NOE /NOFARCALL /MAP /NOPACKC /ONERROR:NOEXE /SEG:192 /AL:16
  63. !if "$(FREEBUILD)" == "0"
  64. LINK_FLAGS = /CO /LI $(LINK_FLAGS)
  65. !endif // DEBUG
  66. RC_FLAGS = -DOS_WINDOWS -DOS_WIN95
  67. IMPLIB_FLAGS = /nologo
  68. RES_FLAGS= -40
  69. #
  70. # Libs
  71. #
  72. TARGETLIBS=$(LIB_PATH)\libw.lib \
  73. $(LIB_PATH)\ldllcew.lib
  74. #
  75. # List of sources
  76. #
  77. SOURCES=
  78. # BREAK THINGS UP INTO SEGMENTS HERE
  79. i386_SOURCES=\
  80. asthkls.asm \
  81. ba.c \
  82. cm.c \
  83. com.c \
  84. globals.c \
  85. het.c \
  86. im.c \
  87. oa.c \
  88. oe.c \
  89. osi.c \
  90. shm.c \
  91. ssi.c \
  92. trc.c \
  93. ut.asm
  94. !if "$(386)" == "1"
  95. NTTARGETFILE0=$(i386_SOURCES) $(_OBJ_DIR)\$(TARGET_DIRECTORY)\nmaswin.res
  96. !endif
  97. CONDITIONAL_INCLUDES = \
  98. macocidl.h \
  99. macwin32.h \
  100. rpcerr.h \
  101. rpcmac.h \
  102. winwlm.h \
  103. macname1.h \
  104. macname2.h \
  105. macpub.h \
  106. macapi.h