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.

76 lines
1.9 KiB

  1. # wowdeb makefile
  2. #
  3. # Copyright (c) 1991, Microsoft Corporation
  4. #
  5. # History:
  6. # 26-Jan-1991 Matt Felton (mattfe) Created.
  7. # 21-Mar-1992 Matt Felton Code from win 3.1 progman
  8. # 17-Nov-1992 Bob Day (bobday) Code from WOWEXEC
  9. #
  10. !INCLUDE ..\makefile.inc
  11. AOBJ = -W2 -DSEGNAME=COMMAND $(INCS)
  12. !if !$(FREEBUILD)
  13. !IF "$(OLD_WOW_BUILD)" != ""
  14. CW16 = -AS -G2sw -Os -W2 -Zp -DDEBUG -DOLD_WOW_BUILD $(INCS)
  15. !ELSE
  16. CW16 = -AS -G2sw -Os -W2 -Zp -DDEBUG
  17. INCLUDE=$(INCS)
  18. !ENDIF
  19. !else
  20. !IF "$(OLD_WOW_BUILD)" != ""
  21. CW16 = -AS -G2sw -Os -W2 -Zp -DOLD_WOW_BUILD $(INCS)
  22. !ELSE
  23. INCLUDE=$(INCS)
  24. CW16 = -AS -G2sw -Os -W2 -Zp
  25. !ENDIF
  26. !endif
  27. CW16L = $(CW16) -B1 c1l.exe -B2 c2l.exe -B3 c3l.exe
  28. LINKOPTS = /map /stack:8192 /align:16
  29. !if !$(FREEBUILD)
  30. AOBJ = $(AOBJ) -Zd
  31. CW16 = $(CW16) /Od /Oi /Zd
  32. LINK = $(LINK) /LI
  33. !endif
  34. W16LIBS = ..\lib\snocrt.lib ..\lib\$(ALT_PROJECT)\libw.lib
  35. .rc{$(DEST)}.res:
  36. @set include=$(ENVINCS) $(INCLUDE)
  37. rc16 -r -fo $@ $(*F).rc
  38. all: $(DEST)\wowdeb.exe $(DEST)\wowdeb.sym
  39. -binplace -o $(ALT_PROJECT_TARGET) $(DEST)\wowdeb.exe $(DEST)\wowdeb.map $(DEST)\wowdeb.sym
  40. clean: all
  41. $(DEST)\wowdeb.lrf: makefile.sub
  42. echo $(DEST)\wowdeb.obj>$@
  43. echo $(DEST)\wowdeb $(LINKOPTS)>>$@
  44. echo $(DEST)\wowdeb>>$@
  45. echo $(W16LIBS) /nod>>$@
  46. echo $(DEST)\wowdeb;>>$@
  47. $(DEST)\wowdeb.def: makefile.sub
  48. echo name wowdeb>$@
  49. echo exetype windows>>$@
  50. echo stub '..\bin\winstub.exe'>>$@
  51. echo code preload moveable discardable>>$@
  52. echo data preload moveable multiple>>$@
  53. echo heapsize 4096>>$@
  54. echo.>>$@
  55. echo imports>>$@
  56. echo WOWKILLREMOTETASK = KERNEL.511>>$@
  57. $(DEST)\wowdeb.res: wowdeb.rc wowdeb.rcv ..\inc\common.ver
  58. $(DEST)\wowdeb.exe: $(DEST)\wowdeb.obj $(DEST)\wowdeb.lrf $(DEST)\wowdeb.def $(DEST)\wowdeb.res
  59. $(LINK) @$(DEST)\wowdeb.lrf;
  60. $(RC) -t $(DEST)\wowdeb.res $(DEST)\wowdeb.exe