makefile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #
  2. # Makefile for AllSrv.dll
  3. #
  4. # Environment variable Requirements:
  5. #
  6. # INCLUDE=foo // can be set to anything, must be set
  7. # PATH= // must have proper nmake on path
  8. # FEDROOT=<path> // MUST point to base of fed src enlistment
  9. #
  10. # nmake args: // order of arguments is not relevent
  11. #
  12. # Clean // will delete all files in destination dir
  13. # Full // will Clean, then build all derived files
  14. # Shell // opens os-specific cmd/command shell (helps to debug build)
  15. # RETAIL= // builds a retail build (default is DEBUG)
  16. # // no argument is used for debug builds
  17. #
  18. #
  19. # All derived files (temp files, .res, output of midl, *.obj, *.exe/.dll...
  20. # are placed directly into the appropriate tree under $(FEDROOT)\Objs.
  21. # The $(FEDROOT)\Objs tree is created on demand.
  22. # Since no derived files are placed in the source tree, multiple builds
  23. # can be run SIMULTANEOUSLY.
  24. # use _BCHK=1 if you want to do a boundschecker build.
  25. # note: you must have BC already installed locally and define BCBINDIR to
  26. # point to the directory where nmcl.exe and nmlink.exe reside. You
  27. # can use the BCOPTS variable to add options to the BC compile.
  28. SRCROOT=Fedsrvdll
  29. MAINTARGROOT=AllSrv
  30. MAINTARGEXT=dll
  31. CARGSLOCAL=/D"ALLSRV" /D _WIN32_WINNT=0x0400
  32. INCLUDELOCAL=$(FEDEXT)\vc\atl\inc;$(FEDROOT)\src\zlib;$(DESTDIR)
  33. #TLB=$(DESTDIR)\allsrv.h
  34. TLB=fedsrv
  35. PCHROOT=pch
  36. PCHINC=$(FEDSRC)\ZLib\*.h $(FEDSRC)\_Utility\*.h
  37. !include "..\makefile.inc"
  38. RARGS = /l 0x409 /d"ALLSRV" $(RARGSFLAVOR)
  39. OBJSCNST= $(DESTDIR)\AllegianceController.obj \
  40. $(DESTDIR)\FedSrv.obj
  41. OBJS=$(OBJSCNST) $(OBJSFLAVOR)
  42. LIBS= $(LIBSFLAVOR) \
  43. kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib \
  44. advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
  45. USERLIBS= \
  46. $(DESTDIR)\..\_utility\Utility.lib \
  47. $(DESTDIR)\..\zlib\zlib.lib
  48. RESFILE= $(DESTDIR)\FedSrv.res
  49. DLLFLAGS=/DLL /DEF:fedsrv.def
  50. LARGS=/LIBPATH:$(DXROOT)\lib \
  51. /LIBPATH:$(FEDEXT)\Vc\lib \
  52. # /LIBPATH:$(FEDROOT)\Objs\$(FLAVOR)\zlib \
  53. /OUT:$(MAINTARGFULLPATH) /SUBSYSTEM:CONSOLE \
  54. $(LARGSFLAVOR) /PDB:$(PDB) $(NOLOGO) \
  55. /MACHINE:I386 \
  56. $(DLLFLAGS)
  57. $(MAINTARGFULLPATH): $(DESTDIR) $(TLB) $(OBJS) $(RESFILE) $(BSCTARG) $(USERLIBS)
  58. $(LINK) $(LARGS) $(OBJS) $(RESFILE) $(LIBS) $(USERLIBS) $(DESTDIR)\pch.obj
  59. $(MAPSYM) -o $(DESTDIR)\$(MAINTARGROOT).sym $(DESTDIR)\$(MAINTARGROOT).map
  60. $(DESTDIR)\AllegianceController.obj : $(DESTDIR)\$(MAINTARGROOT).h $(PCHFILE)
  61. $(DESTDIR)\FedSrv.obj : $(PCHFILE)
  62. $(DESTDIR)\$(MAINTARGROOT).h: fedsrv.idl
  63. $(RESFILE): $(FEDSRC)\Inc\VerRes.rc $(FEDSRC)\FedSrvdll\FedSrv.rc
  64. copy $(FEDSRC)\FedSrvDll\FedSrv.rc $(DESTDIR)
  65. type $(FEDSRC)\Inc\VerRes.rc >>$(DESTDIR)\FedSrv.rc
  66. $(RC) $(RARGS) /Fo$(RESFILE) $(DESTDIR)\FedSrv.rc
  67. #.cpp{$(DESTDIR)}.obj:
  68. # $(CC) $(CARGS) $(SRCDIR)\$(@B).cpp
  69. $(BSC): $(DESTDIR)\*.sbr
  70. $(BSCMAKE) $(NOLOGO) /Iu /o$(BSC) $(DESTDIR)\*.sbr