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.

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