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.

101 lines
2.3 KiB

  1. # winoldap makefile
  2. #
  3. # Copyright (c) 1993, Microsoft Corporation
  4. #
  5. # History:
  6. # 30-Nov-1993 Dave Hart (davehart) Created from wowexec makefile
  7. #
  8. !INCLUDE ..\makefile.inc
  9. AOBJ = -W2 -DSEGNAME=COMMAND $(INCS)
  10. !if !$(FREEBUILD)
  11. CW16 = -AS -G2sw -Os -W2 -Zp -DDEBUG
  12. !else
  13. CW16 = -AS -G2sw -Os -W2 -Zp
  14. !endif
  15. CW16L = $(CW16) -B1 c1l.exe -B2 c2l.exe -B3 c3l.exe
  16. LINKOPTS = /map /stack:5120 /align:16
  17. !if !$(FREEBUILD)
  18. AOBJ = $(AOBJ) -Zd
  19. CW16 = $(CW16) /Od /Oi /Zd
  20. LINK = $(LINK) /LI
  21. !endif
  22. W16LIBS = ..\lib\snocrt.lib ..\lib\$(ALT_PROJECT)\libw.lib
  23. .h.inc:
  24. h2inc -t $*.h -o $*.inc
  25. .asm{$(DEST)}.obj:
  26. $(ASM) $(AOBJ) $*,$(*F);
  27. .asm{$(DEST)}.lst:
  28. $(ASM) $(AOBJ) -l $*,nul,$*.lst;
  29. .c{$(DEST)}.obj:
  30. @set include=$(ENVINCS);$(INCLUDE)
  31. $(CL) -c -nologo $(CW16) -Fo$* $(*F).c
  32. .c{$(DEST)}.lst:
  33. $(CL) -c -nologo $(CW16) -Fonul -Fc$*.lst $(*F).c
  34. .def.lib:
  35. implib $*.lib $*.def
  36. {$(DEST)}.map{$(DEST)}.sym:
  37. mapsym -o $*.sym $*
  38. .rc{$(DEST)}.res:
  39. @set include=$(ENVINCS);$(INCLUDE)
  40. $(RC) -r -fo $*.res $(*F).rc
  41. all: $(DEST)\winoldap.mod $(DEST)\winoldap.sym
  42. binplace $(DEST)\winoldap.mod $(DEST)\winoldap.map $(DEST)\winoldap.sym
  43. clean: cleanup all
  44. cleanup:
  45. cd $(DEST)
  46. if exist *.lrf del *.lrf
  47. if exist *.def del *.def
  48. if exist *.obj del *.obj
  49. if exist *.exe del *.exe
  50. if exist *.map del *.map
  51. if exist *.sym del *.sym
  52. if exist *.res del *.res
  53. cd ..\..\..
  54. $(DEST)\winoldap.lrf: makefile.sub
  55. echo $(DEST)\winoldap.obj >$@
  56. echo $(DEST)\winoldap.mod $(LINKOPTS) >>$@
  57. echo $(DEST)\winoldap >>$@
  58. echo $(W16LIBS) /nod >>$@
  59. echo $(DEST)\winoldap.def; >>$@
  60. $(DEST)\winoldap.def: makefile.sub
  61. echo name winoldap >$@
  62. echo exetype windows >>$@
  63. echo stub '..\bin\winstub.exe' >>$@
  64. echo code preload moveable discardable >>$@
  65. echo data preload moveable multiple >>$@
  66. echo heapsize 512 >>$@
  67. echo exports >>$@
  68. $(DEST)\winoldap.mod: $(DEST)\winoldap.obj $(DEST)\winoldap.lrf $(DEST)\winoldap.def $(DEST)\winoldap.res
  69. $(LINK) @$(DEST)\winoldap.lrf;
  70. $(RC) -t $(DEST)\winoldap.res $(DEST)\winoldap.mod
  71. $(DEST)\winoldap.res: $(*F).rc $(*F).rcv ..\inc\common.ver