home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / config / dll.inc < prev    next >
Encoding:
Text File  |  1998-04-08  |  2.9 KB  |  91 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. #// DLLs.
  23. #//
  24. #//------------------------------------------------------------------------
  25. !if defined(DLL) && !defined(CONFIG_DLL_INC)
  26. CONFIG_DLL_INC=1
  27.  
  28.  
  29. !if "$(MOZ_BITS)" == "16"
  30. #//------------------------------------------------------------------------
  31. #//
  32. #// Rule to build a 16-bit DLL using the DLL target
  33. #//
  34. #//------------------------------------------------------------------------
  35. $(DLL): $(OBJDIR) $(OBJS) $(RESFILE) $(DEFFILE) $(MISCDEP)
  36.     echo +++ make: Creating DLL: $@
  37. #   //
  38. #   // create response file for the command.  The format is:
  39. #   //     Object files, Output file, Map file, Libraries, DEF file, RES file
  40. #   //
  41.         echo $(LFLAGS)                        > $(CFGFILE)
  42.     echo /implib:$*.lib             >> $(CFGFILE)
  43.         for %%d in ($(OBJS)) do echo %%d  +  >> $(CFGFILE)
  44.         echo.                                >> $(CFGFILE)
  45.         echo $(OBJDIR)\$(*B).dll,            >> $(CFGFILE)
  46. !ifdef MAPFILE
  47.         echo $(MAPFILE),                     >> $(CFGFILE)
  48. !endif
  49.         echo $(LLIBS) $(OS_LIBS)             >> $(CFGFILE)
  50. !ifdef DEFFILE
  51.         echo $(DEFFILE),                     >> $(CFGFILE)
  52. !else
  53.         echo.                                >> $(CFGFILE)
  54. !endif
  55. !ifdef RESFILE
  56.         echo $(RESFILE),                     >> $(CFGFILE)
  57. !else
  58.         echo.                                >> $(CFGFILE)
  59. !endif
  60. #   //
  61. #   // execute the commands
  62. #   //
  63.     $(LD) @$(CFGFILE)
  64.  
  65. !else
  66. #//------------------------------------------------------------------------
  67. #//
  68. #// Rule to build a 32-bit DLL using the DLL target
  69. #//
  70. #//------------------------------------------------------------------------
  71. $(DLL): $(OBJDIR) $(OBJS) $(RESFILE) $(DEFFILE) $(MISCDEP)
  72.     echo +++ make: Creating DLL: $@
  73.     $(LD) @<<$(CFGFILE)
  74.         /NOLOGO /DLL /OUT:$@ 
  75.         /PDB:$(PDBFILE)
  76. !ifdef DEFFILE
  77.         /DEF:$(DEFFILE)
  78. !endif
  79. !ifdef MAPFILE
  80.         /MAP:$(MAPFILE)
  81. !endif
  82.  
  83.         $(LFLAGS)
  84.         $(OBJS) 
  85.         $(RESFILE)
  86.         $(LLIBS) $(OS_LIBS)
  87. <<KEEP
  88. !endif
  89.  
  90. !endif # DLL && ! CONFIG_DLL_INC
  91.