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.

155 lines
3.0 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=rdas16
  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. # NOTE FROM LAURABU:
  31. # The 16-bit RC compiler has severe limitations on command line size.
  32. # Therefore we use relative paths for includes and to the binary, to
  33. # really keep the size down. It will FAIL SILENTLY otherwise. In which
  34. # case, the wrong version stamp will get slapped onto RDAS16.DLL and
  35. # Win9x will not properly load it.
  36. #
  37. AS_ROOT=..
  38. BIN_PATH=$(DEVROOT)\bin16
  39. INC_PATH=$(DEVROOT)\inc16
  40. INCLUDES=$(AS_ROOT)\h;$(AS_ROOT)\thk;$(ROOT)\h;$(INC_PATH)
  41. RC_INCLUDES=..\..\dev\inc16;..\..\h
  42. LIB_PATH=$(DEVROOT)\lib16
  43. #
  44. # Tools
  45. #
  46. C_NAME=$(BIN_PATH)\cl.exe
  47. MASM_NAME=$(BIN_PATH)\ml.exe
  48. RC_NAME=..\..\dev\bin16\rc.exe
  49. LINK_NAME=$(BIN_PATH)\link.exe
  50. IMPLIB_NAME=$(BIN_PATH)\implib.exe
  51. LIB_NAME=$(BIN_PATH)\lib.exe
  52. THUNK_NAME=$(BIN_PATH)\thunk.exe
  53. #
  54. # Flags
  55. #
  56. DEFINES16 = -DOS_WIN95 -DIS_16 -D_X86_ -DBUILDDLL -DDLL_DISP -DDLL_HOOK -D_M_IX86
  57. !if "$(FREEBUILD)" == "0"
  58. DEFINES16 = $(DEFINES16) -DDEBUG -D_DEBUG
  59. !endif // DEBUG
  60. C_BASIC = -nologo -c -AS -G3 -WX -Zpe -Z7 -GEf -Gc
  61. # BOGUS LAURABU -- get debug & retail building with same opts so maximize
  62. # chance of finding code generation bugs in C816
  63. C_BASIC = $(C_BASIC) -Owrc
  64. #C_BASIC = $(C_BASIC) -Olg2 -- CAUSES internal compiler errors in OA.C
  65. C_BASIC = $(C_BASIC) -Gs -GD -Gx
  66. C_FLAGS = $(C_BASIC) $(DEFINES16)
  67. MASM_FLAGS = -nologo -c -Zi -WX -Zm $(DEFINES16)
  68. LINK_FLAGS = /NOLOGO /B /NOD /NOE /NOFARCALL /MAP /NOPACKC /ONERROR:NOEXE /SEG:192 /AL:16
  69. !if "$(FREEBUILD)" == "0"
  70. LINK_FLAGS = /CO /LI $(LINK_FLAGS)
  71. !endif // DEBUG
  72. RC_FLAGS = -DOS_WINDOWS -DOS_WIN95
  73. IMPLIB_FLAGS = /nologo
  74. RES_FLAGS= -40
  75. #
  76. # Libs
  77. #
  78. TARGETLIBS=$(LIB_PATH)\libw.lib \
  79. $(LIB_PATH)\ldllcew.lib
  80. #
  81. # List of sources
  82. #
  83. SOURCES=
  84. # BREAK THINGS UP INTO SEGMENTS HERE
  85. i386_SOURCES=\
  86. asthkls.asm \
  87. ba.c \
  88. cm.c \
  89. com.c \
  90. globals.c \
  91. het.c \
  92. im.c \
  93. oa.c \
  94. oe.c \
  95. osi.c \
  96. shm.c \
  97. ssi.c \
  98. trc.c \
  99. ut.asm
  100. !if "$(386)" == "1"
  101. NTTARGETFILE0=$(i386_SOURCES) $(_OBJ_DIR)\$(TARGET_DIRECTORY)\$(TARGETNAME).res
  102. !endif
  103. CONDITIONAL_INCLUDES = \
  104. macocidl.h \
  105. macwin32.h \
  106. rpcerr.h \
  107. rpcmac.h \
  108. winwlm.h \
  109. macname1.h \
  110. macname2.h \
  111. macpub.h \
  112. macapi.h