home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / config / WIN32 < prev    next >
Encoding:
Text File  |  1998-04-08  |  3.9 KB  |  139 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. #//------------------------------------------------------------------------
  17. #//
  18. #// Win32 Configuration file
  19. #//
  20. #//------------------------------------------------------------------------
  21.  
  22. #//------------------------------------------------------------------------
  23. #//
  24. #// Define the OS dependent commands used by MAKE
  25. #//
  26. #//------------------------------------------------------------------------
  27. CC=cl
  28. LD=link
  29. AR=lib
  30. RC=rc
  31. #RM=del /F /Q
  32. #RM_R=del /F /S /Q
  33. RM=rm -f
  34. RM_R=rm -fr
  35. CP=cp
  36. AWK=$(MOZ_TOOLS)\bin\gawk.exe
  37. RANLIB=$(DEPTH)\config\true.bat
  38. JAVAH=$(DIST)\bin\javah.exe
  39. JAVA=$(MOZ_TOOLS)\bin\java.exe
  40.  
  41. !ifndef JAVAH_IN_JAVA
  42. JAVAH_PROG = $(DIST)\bin\javah.exe
  43. !else 
  44. JAVAH_PROG = $(JAVA) netscape.tools.jric.Main
  45. !endif
  46.  
  47. #//------------------------------------------------------------------------
  48. #//
  49. #// Define Debug and optimization flags
  50. #//
  51. #//------------------------------------------------------------------------
  52.  
  53. !ifdef MOZ_PROF
  54.  
  55. #
  56. # compile with debug symbols, but without DEBUG code and ASSERTs
  57. #
  58. OPTIMIZER=-Z7 -UDEBUG -DNDEBUG -U_DEBUG
  59. OS_LFLAGS=/DEBUG /DEBUGTYPE:CV /PDB:NONE
  60.  
  61. !else
  62. !ifdef MOZ_DEBUG
  63. #
  64. # Uncomment for MSVC debug malloc logging...
  65. #
  66. #OPTIMIZER=-Z7 -DDEBUG -UNDEBUG -D_DEBUG -D_CRTDBG_MAP_ALLOC
  67. OPTIMIZER=-Z7 -DDEBUG -UNDEBUG -D_DEBUG
  68. OS_LFLAGS=/DEBUG /DEBUGTYPE:CV /PDB:NONE
  69.  
  70. !else
  71. #
  72. # optimize it
  73. #
  74. OPTIMIZER=-O1 -UDEBUG -DNDEBUG
  75. OS_LFLAGS=
  76.  
  77. !endif
  78. !endif
  79.  
  80. #//------------------------------------------------------------------------
  81. #//
  82. #// Select the correct RTL to link...
  83. #//
  84. #// Currently, unless USE_STATIC_LIBS is defined, the multithreaded
  85. #// DLL version of the RTL is used...
  86. #//
  87. #//------------------------------------------------------------------------
  88. !ifdef USE_STATIC_LIBS
  89. RTL_FLAGS=-MT          # Statically linked multithreaded RTL
  90. !ifdef MOZ_DEBUG 
  91. RTL_FLAGS=-MTd         # Statically linked multithreaded MSVC4.0 debug RTL
  92. !endif
  93.  
  94. !else
  95. RTL_FLAGS=-MD          # Dynamically linked, multithreaded RTL
  96.  
  97. !ifdef MOZ_DEBUG 
  98. RTL_FLAGS=-MDd         # Dynamically linked, multithreaded MSVC4.0 debug RTL
  99. !endif
  100. !endif
  101.  
  102. #//------------------------------------------------------------------------
  103. #//
  104. #// Specify the OS dependent compiler flags, linker flags and libraries
  105. #//
  106. #//------------------------------------------------------------------------
  107. OS_CFLAGS=$(OPTIMIZER) $(RTL_FLAGS) -W3 -nologo -D_X86_ -D_WINDOWS  -DWIN32 \
  108.             -DXP_PC -DHW_THREADS
  109.  
  110. OS_CFLAGS=$(OS_CFLAGS) -DMSVC4 
  111.  
  112. ## Removed MOZ_LITE/MOZ_MEDIUM stuff from OS_CFLAGS
  113.  
  114. OS_LFLAGS=$(OS_LFLAGS)
  115. OS_LIBS=kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib
  116.  
  117. #//------------------------------------------------------------------------
  118. #//
  119. #// Specify the special flags for creating EXEs
  120. #//
  121. #//------------------------------------------------------------------------
  122. !ifdef SWAPTUNER
  123. EXE_CFLAGS=/Gh
  124. !else
  125. EXE_CFLAGS=/Gy
  126. !endif
  127. EXE_LFLAGS=
  128. EXE_LIBS=
  129.  
  130. #//------------------------------------------------------------------------
  131. #//
  132. #// Specify the special flags for creating DLLs
  133. #//
  134. #//------------------------------------------------------------------------
  135. DLL_CFLAGS=
  136. DLL_LFLAGS=/SUBSYSTEM:WINDOWS
  137. DLL_LIBS=
  138.  
  139.