home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 August / Chip_2001-08_cd1.bin / zkuste / linux / bin / mozilla-source-0.9.1.tar.bz2 / mozilla-source-0.9.1.tar / mozilla / Makefile.in < prev    next >
Makefile  |  2001-05-15  |  3KB  |  195 lines

  1. #
  2. # The contents of this file are subject to the Netscape Public
  3. # License Version 1.1 (the "License"); you may not use this file
  4. # except in compliance with the License. You may obtain a copy of
  5. # the License at http://www.mozilla.org/NPL/
  6. #
  7. # Software distributed under the License is distributed on an "AS
  8. # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9. # implied. See the License for the specific language governing
  10. # rights and limitations under the License.
  11. #
  12. # The Original Code is mozilla.org code.
  13. #
  14. # The Initial Developer of the Original Code is Netscape
  15. # Communications Corporation.  Portions created by Netscape are
  16. # Copyright (C) 1998 Netscape Communications Corporation. All
  17. # Rights Reserved.
  18. #
  19. # Contributor(s): 
  20. #
  21.  
  22. DEPTH        = .
  23. topsrcdir    = @top_srcdir@
  24. srcdir        = @srcdir@
  25. VPATH        = @srcdir@
  26.  
  27. include $(DEPTH)/config/autoconf.mk
  28.  
  29. include $(topsrcdir)/build/unix/modules.mk
  30.  
  31. ifneq ($(BUILD_MODULES),all)
  32.  
  33. DIRS        = $(BUILD_MODULE_DIRS)
  34. EXPORT_DIRS    = $(BUILD_MODULE_DEP_DIRS)
  35.  
  36. else
  37.  
  38. DIRS        = config build
  39.  
  40. ifdef MOZ_JAVA_SUPPLEMENT
  41. DIRS +=             \
  42.   java/util            \
  43.   java/webclient        \
  44.   $(NULL)
  45. endif
  46.  
  47. # boehm needs to be built before XPCOM
  48. ifdef GC_LEAK_DETECTOR
  49. DIRS += gc/boehm
  50. endif
  51.  
  52. DIRS    += $(NSPRPUB_DIR)
  53.  
  54. DIRS        += dbm modules/libreg js string xpcom js/src/xpconnect
  55.  
  56. ifdef MOZ_OJI
  57. DIRS        += js/src/liveconnect
  58. endif
  59.  
  60. ifdef MOZ_JSDEBUGGER
  61. DIRS        += js/jsd
  62. endif
  63.  
  64. ifndef MOZ_NATIVE_ZLIB
  65. DIRS        += modules/zlib
  66. endif
  67.  
  68. ifndef MOZ_NATIVE_JPEG
  69. DIRS        += jpeg
  70. endif
  71.  
  72. ifdef MOZ_ENABLE_XLIB
  73. DIRS           += gfx/src/xlibrgb widget/src/xlibxtbin
  74. endif
  75.  
  76. ifdef MOZ_ENABLE_GTK
  77. DIRS           += widget/src/gtksuperwin widget/src/gtkxtbin
  78. endif
  79.  
  80. # Linux and Solaris installer needs standalone libjar, hence standalone zlib
  81. ifneq (,$(filter Linux SunOS,$(OS_ARCH)))
  82. DIRS        += modules/zlib/standalone
  83. endif
  84.  
  85. DIRS        += \
  86.         widget/timer \
  87.         include \
  88.         modules/libutil \
  89.         netwerk \
  90.         modules/mpfilelocprovider \
  91.         uriloader \
  92.         intl \
  93.         modules/libpref \
  94.         modules/libimg \
  95.         modules/oji \
  96.         modules/libjar \
  97.         caps \
  98.         rdf \
  99.         expat \
  100.         htmlparser \
  101.         gfx \
  102.         $(NULL)
  103.  
  104. ifdef USE_IMG2
  105. DIRS        += gfx2 modules/libpr0n
  106. endif
  107.  
  108. DIRS        += \
  109.         modules/plugin \
  110.         dom \
  111.         view \
  112.         widget \
  113.         content \
  114.         layout \
  115.         db \
  116.         docshell \
  117.         webshell \
  118.         embedding \
  119.         editor \
  120.         sun-java \
  121.         profile \
  122.         themes \
  123.         accessible \
  124.         $(NULL)
  125.  
  126. # This must preceed xpfe
  127. ifdef MOZ_JPROF
  128. DIRS        += tools/jprof
  129. endif
  130.  
  131. ifdef MOZ_BUILD_XPFE
  132. DIRS        += xpfe
  133. endif
  134.  
  135. DIRS        += xpinstall
  136.  
  137. ifdef MOZ_PSM
  138. ifdef MOZ_NSS_AUTOCONF
  139. DIRS        += security/nss
  140. endif
  141. DIRS        += security/manager
  142. endif
  143.  
  144. ifdef MOZ_EXTENSIONS
  145. DIRS        += extensions
  146. endif
  147.  
  148. ifdef MOZ_MAIL_NEWS
  149. DIRS        += mailnews
  150. endif
  151.  
  152. ifdef MOZ_LEAKY
  153. DIRS        += tools/leaky
  154. endif
  155.  
  156. ifdef ENABLE_TESTS
  157. DIRS        += xpcom/tests
  158. endif
  159.  
  160. ifdef MOZ_LDAP_XPCOM
  161. DIRS    +=    directory/c-sdk/ldap directory/xpcom
  162. endif
  163.  
  164. DIRS    += l10n
  165.  
  166. ifdef MOZ_STATIC_COMPONENTS
  167. DIRS   += modules/staticmod
  168. endif
  169.  
  170. DIRS    += xpfe/bootstrap
  171.  
  172. endif # BUILD_MODULES == all
  173.  
  174. STATIC_MAKEFILES := $(NSPRPUB_DIR) directory/c-sdk/ldap
  175.  
  176. ifdef MOZ_PSM
  177. STATIC_MAKEFILES += security/nss 
  178. endif
  179.  
  180. GARBAGE_DIRS += dist
  181. DIST_GARBAGE = config.cache config.log config.status config-defs.h \
  182.    dependencies.beos config/autoconf.mk config/myrules.mk config/myconfig.mk \
  183.    unallmakefiles \
  184.    $(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out 
  185.  
  186. include $(topsrcdir)/config/rules.mk
  187.  
  188. export::
  189.     +$(LOOP_OVER_EXPORT_DIRS)
  190.  
  191. distclean::
  192.     cat unallmakefiles | $(XARGS) rm -f
  193.     rm -f unallmakefiles $(DIST_GARBAGE)
  194.  
  195.