home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / config / lib.inc < prev    next >
Encoding:
Text File  |  1998-04-08  |  2.1 KB  |  68 lines

  1. # The contents of this file are subject to the Netscape Public License
  2. # Version 1.0 (the "NPL"); you may not use this file except in
  3. # compliance with the NPL.  You may obtain a copy of the NPL at
  4. # http://www.mozilla.org/NPL/
  5. #
  6. # Software distributed under the NPL is distributed on an "AS IS" basis,
  7. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  8. # for the specific language governing rights and limitations under the
  9. # NPL.
  10. #
  11. # The Initial Developer of this code under the NPL is Netscape
  12. # Communications Corporation.  Portions created by Netscape are
  13. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  14. # Reserved.
  15.  
  16. !if !defined(VERBOSE)
  17. .SILENT:
  18. !endif
  19. #//------------------------------------------------------------------------
  20. #//
  21. #// This makefile contains all of the rules necessary to build 16 and 32 bit
  22. #// libraries.
  23. #//
  24. #//------------------------------------------------------------------------
  25. !if defined(LIBRARY) && !defined(CONFIG_LIB_INC)
  26. CONFIG_LIB_INC=1
  27.  
  28. !if "$(MOZ_BITS)" == "16"
  29. #//------------------------------------------------------------------------
  30. #//
  31. #// Rule to build a 16-bit Library
  32. #//
  33. #//------------------------------------------------------------------------
  34. $(LIBRARY):: $(OBJDIR) $(OBJS)
  35. #   //
  36. #   // create response file for the command.  The format is:
  37. #   //     LIBNAME, -+foo.obj -+bar.obj , LISTFILE, NEWLIB
  38. #   //
  39.     rm -f $(CFGFILE)
  40. !if "$(OS)" == "Windows_NT"
  41.         for %%d in ($(OBJS)) do echo -+%%d ^& >> $(CFGFILE)
  42. !else
  43.         for %%d in ($(OBJS)) do echo -+%%d  & >> $(CFGFILE)
  44. !endif
  45.         echo *                                >> $(CFGFILE)
  46. #   //
  47. #   // execute the commands
  48. #   //
  49.     $(RM) $@
  50.     $(AR) $@ @$(CFGFILE)
  51.     $(RANLIB) $@
  52. !else
  53. #//------------------------------------------------------------------------
  54. #//
  55. #// Rule to build a 32-bit Library
  56. #//
  57. #//------------------------------------------------------------------------
  58. $(LIBRARY):: $(OBJDIR) $(OBJS)
  59.     $(RM) $@ 2> NUL
  60.     $(AR) @<<$(CFGFILE)
  61.         -NOLOGO -OUT:$@
  62.         $(OBJS)
  63. <<
  64.     $(RANLIB) $@
  65. !endif
  66.  
  67. !endif # LIBRARY && ! CONFIG_LIB_INC
  68.