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.

121 lines
3.5 KiB

  1. # wowexec makefile
  2. #
  3. # Copyright (c) 1991, Microsoft Corporation
  4. #
  5. # History:
  6. # 26-Jan-1991 Matt Felton (mattfe)
  7. # 21-Mar-1992 Matt Felton Code from win 3.1 progman
  8. # Created.
  9. #
  10. LVL_2 = 1
  11. !INCLUDE ..\..\makefile.inc
  12. AOBJ = -W2 -DSEGNAME=COMMAND $(INCS)
  13. !if !$(FREEBUILD)
  14. COBJ = -AS -G2s -Os -W2 -Zp -DDEBUG
  15. CW16 = -AS -G2sw -Os -W2 -Zp -DDEBUG
  16. !else
  17. COBJ = -AS -G2s -Os -W2 -Zp
  18. CW16 = -AS -G2sw -Os -W2 -Zp
  19. !endif
  20. CW16L = $(CW16) -B1 c1l.exe -B2 c2l.exe -B3 c3l.exe
  21. LINKOPTS = /map /stack:8192 /align:16
  22. !if !$(FREEBUILD)
  23. AOBJ = $(AOBJ) -Zd
  24. CW16 = $(CW16) /Od /Oi /Zd
  25. LINKOPTS = $(LINKOPTS) /LI
  26. RCFLAGS = -DDEBUG
  27. !endif
  28. W16LIBS = ..\..\lib\snocrt.lib ..\..\lib\$(ALT_PROJECT)\libw.lib
  29. CW16 =$(CW16) $(DBCS_FLAGS)
  30. AOBJ =$(AOBJ) $(DBCS_FLAGS)
  31. !if "$(ALT_PROJECT)" != "USA"
  32. W16LIBS =$(W16LIBS) ..\..\lib\$(DEST)\winnls.lib
  33. !endif
  34. .h.inc:
  35. h2inc -t $*.h -o $*.inc
  36. .asm.obj:
  37. $(ASM) $(AOBJ) $*;
  38. .asm.lst:
  39. $(ASM) $(AOBJ) -l $*,nul,$*.lst;
  40. .c.obj:
  41. $(CL) -c -nologo $(CW16) $*.c
  42. .c.lst:
  43. $(CL) -c -nologo $(CW16) -Fonul -Fc$*.lst $*.c
  44. .def.lib:
  45. implib $*.lib $*.def
  46. all: $(DEST)\wowexec.exe $(DEST)\wowexec.sym
  47. binplace -o $(ALT_PROJECT_TARGET) $(DEST)\wowexec.exe $(DEST)\wowexec.map $(DEST)\wowexec.sym
  48. clean: cleanup all
  49. cleanup:
  50. if exist *.def del *.def
  51. cd $(DEST)
  52. if exist *.lrf del *.lrf
  53. if exist *.def del *.def
  54. if exist *.obj del *.obj
  55. if exist *.exe del *.exe
  56. if exist *.map del *.map
  57. if exist *.sym del *.sym
  58. if exist *.res del *.res
  59. cd ..\..\..
  60. $(DEST)\wowexec.obj:wowexec.c ..\..\..\inc\wowinfo.h
  61. @set include=$(ENVINCS);$(INCLUDE)
  62. $(CL) -c -nologo $(CW16) -Fo$*.obj $(*F).c
  63. $(DEST)\wowexfax.obj:wowexfax.c wowexec.h ..\..\..\inc\wowfax.h
  64. @set include=$(ENVINCS);$(INCLUDE)
  65. $(CL) -c -nologo $(CW16) -Fo$*.obj $(*F).c
  66. $(DEST)\wowexec.lrf: makefile.sub
  67. echo $(DEST)\wowexec.obj $(DEST)\pmdos.obj $(DEST)\wowexfax.obj>$(DEST)\wowexec.lrf
  68. echo $(DEST)\wowexec $(LINKOPTS)>>$(DEST)\wowexec.lrf
  69. echo $(DEST)\wowexec>>$(DEST)\wowexec.lrf
  70. echo $(W16LIBS) /batch /nod>>$(DEST)\wowexec.lrf
  71. echo $(DEST)\wowexec.def;>>$(DEST)\wowexec.lrf
  72. $(DEST)\wowexec.def: makefile.sub
  73. echo name wowexec >$(DEST)\wowexec.def
  74. echo exetype windows >>$(DEST)\wowexec.def
  75. echo stub '..\..\bin\winstub.exe' >>$(DEST)\wowexec.def
  76. echo code preload moveable discardable >>$(DEST)\wowexec.def
  77. echo data preload moveable multiple >>$(DEST)\wowexec.def
  78. echo heapsize 512 >>$(DEST)\wowexec.def
  79. echo exports WndProc >>$(DEST)\wowexec.def
  80. echo exports FaxWndProc >>$(DEST)\wowexec.def
  81. echo imports >>$(DEST)\wowexec.def
  82. echo WOWQUERYDEBUG = KERNEL.512 >>$(DEST)\wowexec.def
  83. echo WOWWAITFORMSGANDEVENT = KERNEL.262>>$(DEST)\wowexec.def
  84. echo WOWMSGBOX = KERNEL.263>>$(DEST)\wowexec.def
  85. echo WOWPARTYBYNUMBER = KERNEL.273>>$(DEST)\wowexec.def
  86. !if "$(ALT_PROJECT)" != "USA"
  87. echo WOWNLSDUMMY = WINNLS.6 >>$(DEST)\wowexec.def
  88. !endif
  89. $(DEST)\wowexec.res: wowexec.rc
  90. @set include=$(ENVINCS);$(INCLUDE)
  91. $(RC) -r $(RCFLAGS) -fo $(DEST)\wowexec.res wowexec.rc
  92. $(DEST)\wowexec.exe: $(DEST)\wowexec.obj $(DEST)\wowexec.lrf $(DEST)\wowexec.def $(DEST)\pmdos.obj $(DEST)\wowexfax.obj $(DEST)\wowexec.res
  93. $(LINK) @$(DEST)\wowexec.lrf;
  94. $(RC) -t -31 $(DEST)\wowexec.res $(DEST)\wowexec.exe