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.

91 lines
2.0 KiB

  1. NAME =gchand
  2. EXT =dll
  3. ROOT =..\..\..
  4. OBJS =mainhand.obj
  5. LIBS =uuid.lib ole32.lib
  6. GOALS =$(PBIN)\$(NAME).$(EXT) $(PBIN)\$(NAME).sym
  7. !if "$(DEBUG)" == "retail"
  8. DEF =
  9. BASENAME = ..\..\coffbase.txt
  10. TDEBUG =
  11. ADEBUG =
  12. L32DEBUG=-debug:none
  13. CDEBUG =$(DEF) -Ox /DNDEBUG /MT
  14. !else
  15. !if "$(DEBUG)" == "debug"
  16. DEF =-DDEBUG_RETAIL
  17. BASENAME = ..\..\coffbasd.txt
  18. TDEBUG =
  19. ADEBUG =
  20. L32DEBUG=-debug:none
  21. CDEBUG =$(DEF) -Ox /MTd
  22. !else
  23. DEF =-DDEBUG
  24. BASENAME = ..\..\coffbasd.txt
  25. TDEBUG =
  26. #ADEBUG =-Zi $(DEF)
  27. ADEBUG =
  28. L32DEBUG=-debug:full -debugtype:both
  29. CDEBUG =$(DEF) -Od /MTd
  30. !endif
  31. !endif
  32. COFFBASE=$(NAME)
  33. !ifndef COFFBASE_TXT_FILE
  34. COFFBASE_TXT_FILE=$(BASENAME)
  35. !endif
  36. CFLAGS =-W3 -D_X86_ $(CDEBUG) -Fo$@ -YX -I.. -I..\..\language -I..\..\default -I$(MANROOT)\retail\inc
  37. # Add flags from MSH build (also /DNDEBUG and /MT(d) above)
  38. CFLAGS =$(CFLAGS) /Gi /GX -YX /D_WINDOWS /D_WINDLL /D_MBCS
  39. AFLAGS =-Zp4 -DSTD_CALL $(ADEBUG)
  40. L32FLAGS=$(L32DEBUG)
  41. RCFLAGS =$(RDEBUG)
  42. IS_32 =TRUE
  43. IS_OEM =TRUE
  44. MASM6 =TRUE
  45. OS =i386
  46. !include $(ROOT)\proj.mk
  47. INCLUDE=$(INCLUDE);$(DEVROOT)\msdev\include;$(DEVROOT)\msdev\mfc\include;$(DEVROOT)\tools\c32\mfc\include;$(DEVROOT)\tools\c32\inc
  48. LIB=$(LIB);$(DEVROOT)\msdev\lib;$(DEVROOT)\msdev\mfc\lib
  49. ..\mainhand.h: ..\ifacesvr.h
  50. ..\ifacesvr.h: ..\hsvrguid.h ..\..\default\sstructs.h
  51. mainhand.obj: ..\$$(@B).cpp ..\stdafx.h \
  52. ..\..\default\slang.h ..\mainhand.h ..\..\default\plugsrvr.h
  53. # The handler's only resource is the version stamping
  54. $(NAME).res: \
  55. ..\$(NAME).rcv \
  56. $(MANROOT)\inc\verinfo.h \
  57. $(MANROOT)\inc\verinfo.ver
  58. $(RC) $(RCFLAGS) -fo$@ -I..\..\language .\..\$(NAME).rcv
  59. $(NAME).$(EXT) $(NAME).map: \
  60. $(OBJS) $(NAME).res ..\$$(@B).def $(COFFBASE_TXT_FILE)
  61. @$(LINK) $(L32FLAGS) @<<
  62. -base:@$(COFFBASE_TXT_FILE),$(COFFBASE)
  63. -out:$(@B).$(EXT)
  64. -map:$(@B).map
  65. -dll
  66. -machine:$(OS)
  67. -subsystem:windows,4.0
  68. -implib:$(@B).lib
  69. -def:..\$(@B).def
  70. $(NAME).res
  71. $(LIBS)
  72. $(OBJS)
  73. <<
  74. $(NAME).sym: $(NAME).map
  75. mapsym -s -m -o $(NAME).sym $(NAME).map