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
2.0 KiB

  1. # SYSTEM makefile
  2. #
  3. # Copyright (c) 1991, Microsoft Corporation
  4. #
  5. # History:
  6. # 26-Jan-1991 Jeff Parsons (jeffpar)
  7. # Created.
  8. #
  9. !INCLUDE ..\makefile.inc
  10. AOBJ = -R -t $(DEFINES) $(INCS)
  11. W16LIBS = ..\lib\sdllcew.lib
  12. DEFINES = $(DEFINES) $(DBCS_FLAGS)
  13. !if !$(FREEBUILD)
  14. AOBJ = $(AOBJ) -Zd
  15. !endif
  16. .asm.obj:
  17. $(ASM) $(AOBJ) $*;
  18. .asm.lst:
  19. $(ASM) $(AOBJ) -l $*,nul,$*.lst;
  20. .c.obj:
  21. $(CL) -c -nologo $(CW16) $*.c
  22. .c.lst:
  23. $(CL) -c -nologo $(CW16) -Fonul -Fc$*.lst $*.c
  24. .def.lib:
  25. implib $*.lib $*.def
  26. .map.sym:
  27. cd $(DEST)
  28. mapsym system
  29. cd ..\..\..
  30. .rc{$(DEST)}.res:
  31. @set include=$(ENVINCS);$(INCLUDE)
  32. $(RC) -r -fo $@ $(*F).rc $(DEST)\$*
  33. all: $(DEST)\system.drv $(DEST)\system.sym
  34. -binplace -o $(ALT_PROJECT_TARGET) $(DEST)\system.drv $(DEST)\system.map $(DEST)\system.sym
  35. clean: cleanup all
  36. cleanup:
  37. if exist $(DEST)\*.lrf del $(DEST)\*.lrf
  38. if exist $(DEST)\*.obj del $(DEST)\*.obj
  39. if exist $(DEST)\*.drv del $(DEST)\*.drv
  40. if exist $(DEST)\*.map del $(DEST)\*.map
  41. if exist $(DEST)\*.sym del $(DEST)\*.sym
  42. if exist $(DEST)\*.res del $(DEST)\*.res
  43. $(DEST)\system.lrf: makefile.sub
  44. echo $(DEST)\system.obj $(DEST)\timer.obj >$(DEST)\system.lrf
  45. echo $(DEST)\system.exe/align:16>>$(DEST)\system.lrf
  46. echo $(DEST)\system $(LINKOPTS)>>$(DEST)\system.lrf
  47. echo ..\lib\$(ALT_PROJECT)\libw.lib /nod>>$(DEST)\system.lrf
  48. echo $(ALT_PROJECT)\system;>>$(DEST)\system.lrf
  49. $(DEST)\system.obj: system.asm
  50. $(ASM) $(AOBJ) system,$(DEST)\;
  51. $(DEST)\timer.obj: timer.asm ..\..\inc\wow.inc
  52. $(ASM) $(AOBJ) timer,$(DEST)\;
  53. $(DEST)\system.res: system.rc ..\inc\common.ver
  54. $(DEST)\system.drv: $(DEST)\system.obj $(DEST)\timer.obj $(DEST)\system.lrf $(DEST)\system.res
  55. $(LINK) @$(DEST)\system.lrf;
  56. $(RC) -t $(DEST)\system.res $(DEST)\system.exe
  57. if exist $(DEST)\*.drv del $(DEST)\*.drv
  58. ren $(DEST)\system.exe system.drv
  59. $(DEST)\system.sym: $(DEST)\system.map