makefile
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 3k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. ##########################################################################
  2. #
  3. #       Shell DLL Makefile
  4. #       Microsoft Confidential
  5. #       Copyright (C) Microsoft Corporation 1991
  6. #       All Rights Reserved.
  7. #
  8. ##########################################################################
  9. !ifdef NTMAKEENV
  10. #
  11. # Build using BUILD.EXE (Do not edit this section of this file, edit SOURCES)
  12. #
  13. !INCLUDE $(NTMAKEENV)makefile.def
  14. !else # NTMAKEENV
  15. ROOT=......
  16. SRCDIR=....
  17. RES_DIR=....
  18. NAME=comdlg32
  19. BUILDDLL=TRUE
  20. DLLBASE=PREFBASE
  21. INFERPCH=TRUE
  22. !ifdef VERDIR
  23. ROOT=..$(ROOT)
  24. WIN32=TRUE
  25. !else #VERDIR
  26. VERSIONLIST = debug retail
  27. !endif #VERDIR
  28. CLEANLIST = *.rlb *.rxp *.pdb
  29. !ifdef LEGO
  30. LEGOCFLAGS= -Zi /Gfy /GX-
  31. !endif
  32. !ifndef ILINK
  33. !if "$(VERDIR)" == "retail"
  34. L32FLAGS=$(L32FLAGS) /ORDER:@$(SRCDIR)comdlg32.ord
  35. !endif
  36. !endif
  37. CFLAGS=$(CFLAGS) -Gy
  38. AFLAGS=$(AFLAGS) -Gz -Zp4 -DSTD_CALL -DM4
  39. RCFLAGS=$(RCFLAGS) -DWIN32
  40. #-------------------------------------------------------------------------
  41. # WIN32 object files and libraries
  42. #-------------------------------------------------------------------------
  43. PCHOBJ0 = color.obj color2.obj data.obj dlgs.obj fileopen.obj find.obj
  44. PCHOBJ1 = font.obj init.obj parse.obj prnsetup.obj
  45. MISCOBJ0 = filenew.obj
  46. LIB0= kernel32.lib user32.lib gdi32.lib advapi32.lib shlwapi.lib shell32.lib comctl32.lib
  47. !if "$(VERDIR)" == "debug"
  48. LIB1= libcmt.lib
  49. !endif
  50. #-------------------------------------------------------------------------
  51. !include $(ROOT)shellcommon.mk
  52. !ifdef VERDIR
  53. THKASM     = $(ROOT)shellthunk$(VERDIR)dlgthk.asm
  54. dlgthk32.obj : $(THKASM)
  55.         set ML=$(AFLAGS)
  56.         $(ASM) -Fo$@ $(THKASM)
  57. # To catch all the dependencies, use ours:
  58. comdlg32.res : $(SRCDIR)comdlg32.rc $(SRCDIR)isz.h $(SRCDIR)cdids.h $(SRCDIR)sz.src
  59.         $(RC) $(RCFLAGS) -fo$*.res -r $(SRCDIR)comdlg32.rc
  60. #
  61. # Rule to generate source file dependencies
  62. #
  63. $(SRCDIR)depend.mk::
  64. !if "$(BUILD)" == "depend"
  65.         echo # > $@
  66.         echo # Warning: This file is generated automatically. >> $@
  67.         echo # >> $@
  68.         echo. >> $@
  69.         $(INCLUDES) $(INCLUDES_SWITCHES) @<< | sed "s/pch.obj/pch.obj .\pchcpp.obj .\comdlg32.pch .\pchcpp.pch/" >> $@
  70. -D....
  71. pch.c
  72. <<
  73.         $(INCLUDES) $(INCLUDES_SWITCHES) @<< >> $@
  74. -D....
  75. -nshellprv.h ....*.c ....*.asm
  76. <<
  77.         $(INCLUDES) $(INCLUDES_SWITCHES) @<< >> $@
  78. -D....
  79. -npchcpp.h ....*.cpp
  80. <<
  81. !if exist($(SRCDIR)$(NAME).rc)
  82.         $(INCLUDES) $(INCLUDES_SWITCHES) -C=acl -C=dlg -C=mnu -C=rc -C=stb -C=ver -sres @<< >> $@
  83. $(NAME).rc
  84. <<
  85. !endif
  86. !else
  87.         @echo Use "nmake BUILD=depend" to build dependencies.
  88. !endif
  89. !endif #VERDIR
  90. !endif # NTMAKEENV