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.

89 lines
1.8 KiB

  1. !ifdef NTMAKEENV
  2. !include $(NTMAKEENV)\makefile.def
  3. !else # NTMAKEENV
  4. !include ../../root.inc
  5. MODULE=apeldbg
  6. PCHPATH=$(BLDROOT)\apeldbg
  7. PCHFILE=headers
  8. PDBFILE=$(BINDIR)\apeldbg.pdb
  9. RESINCLUDEDIRS=$(TOOLSINCLUDE)\
  10. $(SRCROOT)\include
  11. INCLUDEDIRS=$(SRCDIR) $(TOOLSINCLUDE)
  12. !include $(ROOT)\src\make\make1.inc
  13. DLLTARG=$(BINDIR)\apeldbg.lib
  14. DLLDEF=$(BLDDIR)\apeldbg.def
  15. !if "$(_MACHINE)"=="x86"
  16. DLLENTRY=_DllMainCRTStartup@12
  17. !else
  18. DLLENTRY=_DllMainCRTStartup
  19. !endif
  20. FFAILFLAGS=$(CFLAGS:-Zi=)
  21. FFAILFLAGS=$(FFAILFLAGS:-Gm=)
  22. $(BLDDIR)\ffail.obj : ffail.cpp
  23. $(BCC) $(NOLOGO) @<<
  24. /I$(INCLUDEPATH:;=
  25. /I)
  26. $(FFAILFLAGS: =
  27. )
  28. /c
  29. /Fo$@
  30. ffail.cpp
  31. <<$(KEEPFLAGS)
  32. DLLOBJS=\
  33. $(BLDDIR)\allochk.obj \
  34. $(BLDDIR)\assert.obj \
  35. $(BLDDIR)\debug.obj \
  36. $(BLDDIR)\debugui.obj \
  37. $(BLDDIR)\ffail.obj \
  38. $(BLDDIR)\simfail.obj \
  39. $(BLDDIR)\apeldbg.res \
  40. DLLLIBS=\
  41. DLLXLIBS=\
  42. $(TOOLSLIBWIN32)\kernel32.lib\
  43. $(TOOLSLIBWIN32)\user32.lib\
  44. $(TOOLSLIBWIN32)\gdi32.lib\
  45. $(TOOLSLIBWIN32)\winspool.lib\
  46. $(TOOLSLIBWIN32)\comdlg32.lib\
  47. $(TOOLSLIBWIN32)\advapi32.lib\
  48. $(TOOLSLIBWIN32)\shell32.lib\
  49. $(TOOLSLIBWIN32)\ole32.lib\
  50. $(TOOLSLIBSWEEPER)\oleaut32.lib\
  51. $(TOOLSLIBSWEEPER)\uuid.lib\
  52. !if "$(_DEBUG)" == "1"
  53. all : $(PCHPATH)\$(PCHFILE).pch $(DLLTARG)
  54. !else
  55. all :
  56. !endif
  57. $(DLLDEF) : apeldbg.def
  58. $(CC) $(NOLOGO) -EP -Tcapeldbg.def $(DEFINES) > $@
  59. !include $(MAKE2_INC)
  60. # -------------------------------------------------------------
  61. # Extra dependencies
  62. # -------------------------------------------------------------
  63. depend::
  64. $(MKDEP) -n /I $(RESINCLUDEDIRS: = /I ) -s.res -P $(BLDDIR)\ apeldbg.rc >> $(BLDDIR)\depend.inc
  65. clean::
  66. $(DEL) $(PDBFILE)
  67. $(DEL) $(BLDDIR)\ffail.obj
  68. !endif #NTMAKEENV