home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / config / obj.inc < prev    next >
Encoding:
Text File  |  1998-04-08  |  5.1 KB  |  210 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. ## Include support for MOZ_LITE/MOZ_MEDIUM
  21. include <$(DEPTH)/config/liteness.mak>
  22.  
  23. RCFLAGS=$(RCFLAGS) $(MOZ_LITENESS_FLAGS)
  24.  
  25. #//------------------------------------------------------------------------
  26. #//
  27. #// This makefile contains all of the rules necessary to build 16 and 32 bit
  28. #// object files.
  29. #//
  30. #//------------------------------------------------------------------------
  31. !if !defined(CONFIG_OBJ_INC)
  32. CONFIG_OBJ_INC=1
  33.  
  34. #//------------------------------------------------------------------------
  35. #//
  36. #// Rules for compiling 16/32 bit object files from either c or c++ source
  37. #//
  38. #//------------------------------------------------------------------------
  39. .c.obj:
  40.     @$(CC) @<<$(CFGFILE)
  41.         -nologo -c $(OPTIMIZER)
  42.         $(CFLAGS) 
  43.         $(LCFLAGS)
  44.         $(LINCS) 
  45.         $(LINCS_1) 
  46.         $(INCS)
  47.         -Fd$(PDBFILE)
  48.         $(CURDIR)$(*B).c
  49. <<KEEP
  50.  
  51. .c{.\$(OBJDIR)\}.obj:
  52.     @$(CC) @<<$(CFGFILE)
  53.         -nologo -c $(OPTIMIZER)
  54.         $(CFLAGS) 
  55.         $(LCFLAGS)
  56.         $(LINCS) 
  57.         $(LINCS_1) 
  58.         $(INCS)
  59.         -Fd$(PDBFILE)
  60.         -Fo.\$(OBJDIR)\
  61.         $(CURDIR)$(*B).c
  62. <<KEEP
  63.  
  64. {.\_jmc\}.c{.\$(OBJDIR)\}.obj:
  65.     @$(CC) @<<$(CFGFILE)
  66.         -nologo -c $(OPTIMIZER)
  67.         $(CFLAGS) 
  68.         $(LCFLAGS)
  69.         $(LINCS) 
  70.         $(LINCS_1) 
  71.         $(INCS)
  72.         -Fd$(PDBFILE)
  73.         -Fo.\$(OBJDIR)\
  74.         $(CURDIR)_jmc\$(*B).c
  75. <<KEEP
  76.  
  77. .cpp.obj:
  78.     @$(CC) @<<$(CFGFILE)
  79.         -nologo -c $(OPTIMIZER)
  80.         $(CFLAGS)
  81.         $(LCFLAGS)
  82.         $(LINCS)
  83.         $(LINCS_1)
  84.         $(INCS)
  85.         -Fd$(PDBFILE)
  86.         $(CURDIR)$(*B).cpp
  87. <<
  88.  
  89. .cpp{.\$(OBJDIR)\}.obj:
  90.     @$(CC) @<<$(CFGFILE)
  91.         -nologo -c $(OPTIMIZER)
  92.         $(CFLAGS)
  93.         $(LCFLAGS)
  94.         $(LINCS)
  95.         $(LINCS_1)
  96.         $(INCS)
  97.         -Fd$(PDBFILE)
  98.         -Fo.\$(OBJDIR)\
  99.         $(CURDIR)$(*B).cpp
  100. <<
  101.  
  102. {.\_jmc\}.cpp{.\$(OBJDIR)\}.obj:
  103.     @$(CC) @<<$(CFGFILE)
  104.         -nologo -c $(OPTIMIZER)
  105.         $(CFLAGS) 
  106.         $(LCFLAGS)
  107.         $(LINCS) 
  108.         $(LINCS_1) 
  109.         $(INCS)
  110.         -Fd$(PDBFILE)
  111.         -Fo.\$(OBJDIR)\
  112.         $(CURDIR)_jmc\$(*B).cpp
  113. <<KEEP
  114. #//------------------------------------------------------------------------
  115. #//
  116. #// Rule for compiling resource files
  117. #//
  118. #//------------------------------------------------------------------------
  119. .rc{.\$(OBJDIR)\}.res:
  120. #   //
  121. #   // execute the command
  122. #   //
  123.     echo Creating Resource file: $*.res
  124.     $(RC) $(RCFLAGS) -r -Fo.\$(OBJDIR)\$(*B).res $(*B).rc
  125.  
  126.  
  127. !if "$(MOZ_BITS)" == "16"
  128. #//------------------------------------------------------------------------
  129. #//
  130. #// Rule for building simple 16 bit executables
  131. #//
  132. #//------------------------------------------------------------------------
  133. .c{.\$(OBJDIR)\}.exe:
  134.     $(CC) @<<$(CFGFILE)
  135.         -c 
  136.         $(OPTIMIZER)
  137.         $(CFLAGS)
  138.         $(LCFLAGS)
  139.         $(LINCS)
  140.         $(LINCS_1)
  141.         $(INCS)
  142.         -Fd$(PBDFILE)
  143.         -Fo.\$(OBJDIR)\
  144.         $(CURDIR)$(*B).c
  145. <<
  146.     $(LD) @<<$(CFGFILE)
  147.         $(LFLAGS)
  148.         $(OBJDIR)\$(*B).obj,
  149.         $(OBJDIR)\$(*B).exe,
  150.         $(MAPFILE),
  151.         $(LLIBS) $(OS_LIBS),
  152.         $(DEFFILE),
  153.         $(RESFILE),
  154. <<
  155.  
  156. !else
  157. #//------------------------------------------------------------------------
  158. #//
  159. #// Rule for building simple 32 bit executables
  160. #//
  161. #//------------------------------------------------------------------------
  162. .c{.\$(OBJDIR)\}.exe:
  163.     $(CC) @<<$(CFGFILE)
  164.         $(CFLAGS)
  165.         $(LCFLAGS)
  166.         $(LINCS)
  167.         $(LINCS_1)
  168.         $(INCS)
  169.         -Fd$(PBDFILE)
  170.         -Fe.\$(OBJDIR)\
  171.         $(CURDIR)$(*B).c
  172. <<
  173. !endif
  174.  
  175.  
  176. #//------------------------------------------------------------------------
  177. #//
  178. #// Rule for creating .i file containing c preprocessor output
  179. #//
  180. #//------------------------------------------------------------------------
  181. .c.i:
  182.     @$(CC) @<<$(CFGFILE)
  183.         /P -c 
  184.         $(OPTIMIZER)
  185.         $(CFLAGS) 
  186.         $(LCFLAGS)
  187.         $(LINCS) 
  188.         $(LINCS_1) 
  189.         $(INCS)
  190.         -Fd$(PDBFILE)
  191.         $(CURDIR)$(*B).c
  192. <<KEEP
  193.  
  194. .c{.\$(OBJDIR)\}.i:
  195.     @$(CC) @<<$(CFGFILE)
  196.         /P -c 
  197.         $(OPTIMIZER)
  198.         $(CFLAGS) 
  199.         $(LCFLAGS)
  200.         $(LINCS) 
  201.         $(LINCS_1) 
  202.         $(INCS)
  203.         -Fd$(PDBFILE)
  204.         -Fo.\$(OBJDIR)\
  205.         $(CURDIR)$(*B).c
  206. <<KEEP
  207.  
  208.  
  209. !endif # CONFIG_OBJ_INC
  210.