home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / makefile.win < prev    next >
Encoding:
Makefile  |  1998-04-08  |  3.3 KB  |  122 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. #// Makefile to build the NS tree
  19. #//
  20. #//------------------------------------------------------------------------
  21.  
  22. #//------------------------------------------------------------------------
  23. #//
  24. #// Specify the depth of the current directory relative to the
  25. #// root of NS
  26. #//
  27. #//------------------------------------------------------------------------
  28. DEPTH=.
  29.  
  30. #//------------------------------------------------------------------------
  31. #//
  32. #// Specify any "command" targets. (ie. DIRS, INSTALL_FILES, ...)
  33. #// (these must come before the common makefiles are included)
  34. #// 
  35. #// DIRS          - There are subdirectories to process
  36. #//
  37. #// netcast needs to be before sun-java so marimba.* package is available
  38. #// to netscape.netcast.* - spider
  39. #//------------------------------------------------------------------------
  40.  
  41. !ifdef NO_SECURITY
  42. SECDIR=
  43. !else
  44. SECDIR=security
  45. !endif
  46.  
  47. DISTDIRS=$(NSPRDIR) dbm $(SECDIR) xpcom
  48.  
  49. !if "$(WATCOM)" != ""
  50. XTRADIRS = $(DISTDIRS)
  51. !endif
  52.  
  53. !if "$(MOZ_BITS)" == "32"
  54. DIRS_JSD = js\jsd
  55. XTRADIRS = $(DISTDIRS)
  56. !endif
  57.  
  58. !ifndef NO_SECURITY
  59. CORECONF=coreconf
  60. !else
  61. CORECONF=
  62. !endif
  63.  
  64. DIRS = $(CORECONF) $(XTRADIRS) include jpeg modules\zlib \
  65. !ifdef MOZ_NETCAST
  66.     netcast \
  67. !endif
  68.     sun-java \
  69. !ifdef MOZ_LDAP
  70.     ldap \
  71. !endif
  72. !ifdef MOZ_JAVA
  73.     ifc js nav-java \
  74. !else
  75.     nav-java js \
  76. !endif
  77. !ifdef MOZ_IFC_TOOLS
  78.     ifc\tools \
  79. !endif
  80. !ifdef MOZ_JAVA
  81.     $(DIRS_JSD) \
  82. !endif
  83.     lib modules cmd
  84.  
  85. !if "$(STAND_ALONE_JAVA)" == "1"
  86. !if "$(OS_TARGET)" == "WINNT"
  87. #// When we build stand alone java with OS_TARGET == WINNT for
  88. #// nspr20, we do a gmake separately outside of makefile.win
  89. #// hence no NSPRDIR - sudu
  90. DIRS=jpeg modules\zlib sun-java ifc js ifc\tools sun-java\java
  91. !else
  92. DIRS=$(NSPRDIR) jpeg modules\zlib sun-java ifc js ifc\tools sun-java\java
  93. !endif
  94. !endif 
  95.  
  96. !ifdef NSWINDBGMALLOC
  97. LLFLAGS= $(LLFLAGS)                 \
  98.         /EXPORT:malloc=ns_malloc    \
  99.         /EXPORT:realloc=ns_realloc  \
  100.         /EXPORT:calloc=ns_calloc    \
  101.         /EXPORT:free=ns_free        \
  102.         /EXPORT:_strdup=ns_strdup
  103. !endif
  104.  
  105. !ifdef SERVER_BUILD
  106. LLIBS=$(DIST)/lib/httpdlw.lib $(DIST)/lib/libsjboot.lib
  107. !endif
  108.  
  109. #//------------------------------------------------------------------------
  110. #//
  111. #// Include the common makefile rules
  112. #//
  113. #//------------------------------------------------------------------------
  114. include <$(DEPTH)\config\rules.mak>
  115.  
  116. #LCFLAGS=-D_USE_PR_DEBUG_MEMORY $(LCFLAGS)
  117.  
  118. clobber_all::
  119.     cd $(MOZ_SRC)\ns
  120.     -rd /s /q dist
  121.  
  122.