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.

75 lines
2.1 KiB

  1. !INCLUDE ..\makefile.inc
  2. #
  3. # retail flags
  4. CL = $(CL) -c -AS -G2sw -Os -D__MSC__ -W3 -Zpe
  5. MASM = $(ASM) $(INCS)
  6. #
  7. # debug flags
  8. #
  9. !if !$(FREEBUILD)
  10. DEBUG=1
  11. CDEBUG = /Od /Oi /Zd
  12. ADEBUG = -Zd
  13. LDEBUG = /LI
  14. !endif
  15. !ifdef DEBUG
  16. CL = $(CL) $(CDEBUG)
  17. MASM = $(MASM) $(ADEBUG)
  18. LDEBUG = $(LDEBUG)
  19. !endif
  20. INCS = -I..\inc -I..\..\inc -I..\toolhelp
  21. INCLUDES=..\inc;..\..\inc;..\toolhelp;$(SDK_INC_PATH)
  22. OBJ = $(DEST)\drwatson.obj $(DEST)\disasm.obj $(DEST)\getsym.obj $(DEST)\watson.obj $(DEST)\error.obj
  23. RES_DIR=.\messages\$(ALT_PROJECT)
  24. all: $(DEST)\drwatson.exe
  25. .c{$(DEST)}.obj:
  26. set include=$(INCLUDES)
  27. $(CL) -Fo$* $(*F).c
  28. $(DEST)\drwatson.obj: drwatson.c drwatson.h disasm.h str.h
  29. $(DEST)\error.obj: error.c str.h
  30. $(DEST)\disasm.obj : disasm.c disasm.h
  31. $(DEST)\getsym.obj : getsym.c drwatson.h disasm.h
  32. $(DEST)\watson.obj : watson.asm
  33. $(MASM) watson.asm,$(DEST)\watson,$(DEST)\watson.lst;
  34. $(DEST)\drwatson.rc : $(RES_DIR)\drwatson.rc
  35. copy $? $@
  36. $(DEST)\drwatson.rcv : $(RES_DIR)\drwatson.rcv
  37. copy $? $@
  38. $(DEST)\drwatson.res: $(DEST)\drwatson.rc $(DEST)\drwatson.rcv ..\inc\common.ver str.h
  39. set INCLUDE=$(INCLUDES)
  40. $(RC) -r $(INCS) $(DEST)\drwatson.rc
  41. $(DEST)\sherlock.lnk: makefile.sub
  42. echo $(DEST)\drwatson.obj $(DEST)\disasm.obj $(DEST)\getsym.obj $(DEST)\watson.obj $(DEST)\error.obj>$@
  43. echo $(DEST)\drwatson.exe>>$@
  44. echo $(DEST)\drwatson.map>>$@
  45. echo /batch ..\lib\$(ALT_PROJECT)\libw ..\lib\slibcew ..\toolhelp\$(DEST)\toolhelp>>$@
  46. echo drwatson.def /ALIGN:16 /NOE /NOD /MAP;>>$@
  47. $(DEST)\drwatson.exe: $(DEST)\sherlock.lnk $(DEST)\drwatson.res $(DEST)\sherlock.lnk drwatson.def \
  48. $(DEST)\drwatson.obj $(DEST)\disasm.obj $(DEST)\getsym.obj $(DEST)\watson.obj $(DEST)\error.obj
  49. $(LINK) $(LDEBUG) @$(DEST)\sherlock.lnk
  50. mapsym -o $*.sym $*
  51. $(RC) -t -30 $(DEST)\drwatson.res $(DEST)\drwatson.exe
  52. binplace -o $(ALT_PROJECT_TARGET) $(DEST)\drwatson.exe $(DEST)\drwatson.map $(DEST)\drwatson.sym
  53. # note that TOOLHELP.LIB must exist somewhere on your lib path
  54. clean: all