makefile 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #
  2. # Makefile for AllClub.exe
  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=Club
  29. MAINTARGROOT=AllClub
  30. MAINTARGEXT=exe
  31. SUBSYSTEM=CONSOLE
  32. CARGSLOCAL=/D"ALLCLUB" /D _WIN32_WINNT=0x0400 /D _ATL_STATIC_REGISTRY
  33. INCLUDELOCAL=$(FEDSRC)\ZLib;$(FEDSRC)\_Utility;$(FEDSRC)\inc\*.h;$(FEDROOT)\extern\vc\atl\inc;$(FEDROOT)\src\test\inc;$(DESTDIR)
  34. PCHROOT=pch
  35. PCHINC=$(FEDSRC)\ZLib\*.h $(FEDSRC)\_Utility\*.h $(FEDSRC)\inc\*.h $(FEDSRC)\Zone\*.h $(FEDSRC)\Club\*.h $(FEDSRC)\fedsrv\fedsrvsql.h $(FEDSRC)\fedsrv\sqlhelp.cpp
  36. MSGFILE=AllClubMsg
  37. SPLITSYMBOLS=1
  38. #IDLOUTPUT=AllClubModuleIDL
  39. !include "..\makefile.inc"
  40. RARGS = /l 0x409 /d"ALLCLUB" $(RARGSFLAVOR)
  41. OBJSCNST= $(DESTDIR)\AllClub.obj \
  42. $(DESTDIR)\ClubApp.obj \
  43. $(DESTDIR)\ClubClient.obj \
  44. $(DESTDIR)\StaticData.obj \
  45. $(DESTDIR)\clubQguids.obj
  46. OBJS=$(OBJSCNST) $(OBJSFLAVOR)
  47. LIBS= $(LIBSFLAVOR) \
  48. dplayx.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
  49. comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
  50. uuid.lib odbc32.lib odbccp32.lib ws2_32.lib comctl32.lib \
  51. urlmon.lib winmm.lib version.lib zticket.lib zticketc.lib
  52. USERLIBS= \
  53. $(DESTDIR)\..\_utility\Utility.lib \
  54. $(DESTDIR)\..\zlib\zlib.lib \
  55. $(DESTDIR)\..\sharemem\sharemem.lib \
  56. $(DESTDIR)\..\test\TCLib\TCLib.lib
  57. RESFILE= $(DESTDIR)\$(MAINTARGROOT).res
  58. DLLFLAGS = /def:AllClub.def
  59. LARGS=/LIBPATH:$(DXROOT)\lib \
  60. /LIBPATH:$(FEDEXT)\Vc\lib \
  61. /LIBPATH:$(FEDEXT)\Zone \
  62. /OUT:$(MAINTARGFULLPATH) /SUBSYSTEM:CONSOLE \
  63. $(LARGSFLAVOR) /PDB:$(PDB) $(NOLOGO) \
  64. /MACHINE:I386
  65. !include "../makeexe.inc"
  66. $(DESTDIR)\AllClub.obj : $(PCHFILE)
  67. $(DESTDIR)\ClubApp.obj : $(PCHFILE)
  68. $(DESTDIR)\ClubClient.obj : $(PCHFILE)
  69. $(DESTDIR)\StaticData.obj : $(PCHFILE)
  70. $(DESTDIR)\clubQguids.obj : $(PCHFILE)
  71. $(RESFILE): $(DESTDIR)\$(MSGFILE).rc $(FEDSRC)\Inc\VerRes.rc $(MAINTARGROOT).rc
  72. @copy $(FEDSRC)\$(SRCROOT)\$(MAINTARGROOT).rc $(DESTDIR)
  73. @type $(DESTDIR)\$(MSGFILE).rc >>$(DESTDIR)\$(MAINTARGROOT).rc
  74. @echo #define FLAVOR "$(FLAVOR)" >>$(DESTDIR)\$(MAINTARGROOT).rc
  75. @type $(FEDSRC)\Inc\VerRes.rc >>$(DESTDIR)\$(MAINTARGROOT).rc
  76. @$(RC) $(RARGS) /Fo$(RESFILE) $(DESTDIR)\$(MAINTARGROOT).rc