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.

88 lines
1.9 KiB

  1. !include $(NTMAKEENV)\makefile.plt
  2. #
  3. # Common MAKEFILE definitions for WOW16
  4. #
  5. .SUFFIXES:
  6. .SUFFIXES: .c .asm .h .inc .obj .lst .sys .exe .com .map .sym .def .lib .rc .res
  7. DEST=$(ALT_PROJECT)\obj$(BUILD_ALT_DIR)\$(TARGET_DIRECTORY)
  8. ########## Path definition so we find 16 bit tools ##########
  9. # Also works around bug in RC 3.1 that doesn't allow rcpp.err to be
  10. # in a directory that is greater than 128 chars down the path, even if
  11. # rc 3.1 is running as an OS/2 app.
  12. PATH = $(PATH_TOOLS16);$(PATH)
  13. !IF 0
  14. !IF "$(QFE_BUILD)" != "1"
  15. CL16=cl16
  16. !ELSE
  17. CL16=cl
  18. !ENDIF
  19. !ENDIF
  20. ASM = masm386
  21. LINK = link16 /batch
  22. LINK16 = link16 /batch
  23. CL = cl16
  24. RC = rc16
  25. MAPSYM = mapsym
  26. IMPLIB = implib
  27. MKPUB = mkpublic
  28. CVPACK = cvpack
  29. !ifdef INCLUDE
  30. INCS =
  31. !else
  32. !IFDEF LVL_2
  33. INCS = -I..\..\inc -I..\..\..\inc -I$(PROJECT_INC_PATH)
  34. ENVINCS = ..\..\inc;..\..\..\inc;$(PROJECT_INC_PATH);$(SDK_INC_PATH)
  35. !ELSE
  36. INCS = -I..\inc -I..\..\inc -I$(PROJECT_INC_PATH)
  37. ENVINCS = ..\inc;..\..\inc;$(PROJECT_INC_PATH);$(SDK_INC_PATH)
  38. !ENDIF
  39. !endif
  40. DEFINES = -DWOW $(MVDMFLAGS)
  41. AOBJ = -Ml -t $(DEFINES) $(INCS)
  42. CW16 = -AS -G2sw -Os -W3 -Zp $(DEFINES)
  43. CW16B = $(CW16) -B1 c1l.exe -B2 c2l.exe -B3 c3l.exe
  44. LINKOPTS = /map /align:16
  45. !if !$(FREEBUILD)
  46. AOBJ = $(AOBJ) -Zd
  47. CW16 = $(CW16) /Od /Oi /Zd
  48. LINKOPTS = $(LINKOPTS) /LI
  49. !endif
  50. .asm{$(DEST)}.obj:
  51. $(ASM) $(AOBJ) $(*F),$*;
  52. .asm{$(DEST)}.lst:
  53. $(ASM) $(AOBJ) -l $(*F),nul,$*.lst;
  54. .c{$(DEST)}.obj:
  55. @set include=$(ENVINCS);$(INCLUDE)
  56. $(CL) -c -nologo $(CW16) -Fo$* $(*F).c
  57. .c{$(DEST)}.lst:
  58. @set include=$(ENVINCS);$(INCLUDE)
  59. $(CL) -c -nologo $(CW16) -Fonul -Fc$*.lst $(*F).c
  60. .def{$(DEST)}.lib:
  61. implib $*.lib $(*F).def
  62. {$(DEST)}.map{$(DEST)}.sym:
  63. mapsym -o $*.sym $*
  64. .rc{$(DEST)}.res:
  65. @set include=$(ENVINCS);$(INCLUDE)
  66. $(RC) -r -fo$*.res $(*F).rc $*