home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libpref / src / makefile.win < prev    next >
Encoding:
Makefile  |  1998-04-08  |  3.6 KB  |  120 lines

  1. #!gmake
  2. #
  3. # The contents of this file are subject to the Netscape Public License
  4. # Version 1.0 (the "NPL"); you may not use this file except in
  5. # compliance with the NPL.  You may obtain a copy of the NPL at
  6. # http://www.mozilla.org/NPL/
  7. #
  8. # Software distributed under the NPL is distributed on an "AS IS" basis,
  9. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10. # for the specific language governing rights and limitations under the
  11. # NPL.
  12. #
  13. # The Initial Developer of this code under the NPL is Netscape
  14. # Communications Corporation.  Portions created by Netscape are
  15. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16. # Reserved.
  17.  
  18.  
  19.  
  20. IGNORE_MANIFEST=1
  21.  
  22. #//------------------------------------------------------------------------
  23. #//
  24. #// Specify the depth of the current directory relative to the
  25. #// root of NS
  26. #//
  27. #//------------------------------------------------------------------------
  28. DEPTH = ..\..\..
  29.  
  30. #//------------------------------------------------------------------------
  31. #//
  32. #// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
  33. #//
  34. #//------------------------------------------------------------------------
  35.  
  36. DLLNAME        = xppref$(MOZ_BITS)
  37. DLL1NAME    = xpref$(MOZ_BITS)
  38. PDBFILE        = $(DLLNAME).pdb
  39. MAPFILE        = $(DLLNAME).map
  40. RESFILE        = $(DLLNAME).res
  41. DLL        =.\$(OBJDIR)\$(DLLNAME).dll
  42. MAKE_OBJ_TYPE    = DLL
  43.  
  44. LINCS = -I$(PUBLIC)/js \
  45.     -I$(PUBLIC)/pref \
  46.     -I$(PUBLIC)/java \
  47.     -I$(PUBLIC)/ldap \
  48.     -I$(PUBLIC)/dbm \
  49.     -I$(PUBLIC)/security \
  50.         -I$(DEPTH)\include \
  51.  
  52. LCFLAGS = -DMOZILLA_CLIENT
  53.  
  54. # I'm hardcoding the directory name here to fix MOZ_LITE
  55. # it was $(DIST_PREFIX) instead of WIN, which is the same
  56. # in communicator, but breaks when MOZ_LITE sets $DIST to NAV
  57. # This will need to be fixed in a better way, but it depends
  58. # on the Security team to fix stuff in what is being passed here.
  59. # the same change was made in \ns\cmd\winfe\mkfiles32\mozilla.mak
  60. !if ("$(MOZ_BITS)" == "16" )
  61. BINREL_DIST = $(DIST)
  62. !else
  63. !ifndef MOZ_DEBUG
  64. BINREL_DIST=$(XPDIST)\WIN954.0_OPT.OBJ
  65. !else
  66. BINREL_DIST=$(XPDIST)\WIN954.0_DBG.OBJD
  67. !endif
  68. !endif
  69.  
  70. !ifdef NO_SECURITY
  71. HASHLIBS=$(DIST)\lib\secfreenav32.lib
  72. !else
  73. HASHLIBS=$(BINREL_DIST)\lib\hash.lib $(BINREL_DIST)\lib\secutil.lib 
  74. !endif
  75.  
  76. !if ("$(MOZ_BITS)" == "16" ) 
  77. LLIBS    = $(LIBNSPR) $(DIST)\lib\js$(MOZ_BITS)$(VERSION_NUMBER).lib \
  78. $(HASHLIBS) \
  79. $(BINREL_DIST)\lib\watcomfx.lib 
  80.  
  81. !ifdef NSPR20
  82. DEFFILE    = $(DLL1NAME).def
  83. !else
  84. DEFFILE    = $(DLLNAME).def
  85. !endif
  86. !else
  87. LLIBS    = $(LIBNSPR) $(DIST)\lib\js$(MOZ_BITS)$(VERSION_NUMBER).lib \
  88. $(HASHLIBS)
  89. !endif
  90.  
  91.  
  92. #//------------------------------------------------------------------------
  93. #// 
  94. #// Define the files necessary to build the target (ie. OBJS)
  95. #//
  96. #//------------------------------------------------------------------------
  97. OBJS =                            \
  98.     .\$(OBJDIR)\prefapi.obj    \
  99.     $(NULL)
  100.  
  101. #//------------------------------------------------------------------------
  102. #//
  103. #// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...)
  104. #// (these must be defined before the common makefiles are included)
  105. #//
  106. #//------------------------------------------------------------------------
  107. LIBRARY=.\$(OBJDIR)\$(LIBNAME).lib
  108.  
  109. #//------------------------------------------------------------------------
  110. #//
  111. #// Include the common makefile rules
  112. #//
  113. #//------------------------------------------------------------------------
  114. include <$(DEPTH)\config\rules.mak>
  115.  
  116. libs:: $(DLL)    
  117.     $(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin
  118.     $(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib $(DIST)\lib
  119.     $(MAKE_INSTALL) .\init\netscape.cfg $(DIST)\bin
  120.