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