DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL.  You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation.  Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation.  All Rights
# Reserved.

#//------------------------------------------------------------------------
#//
#// Makefile to build the NS tree
#//
#//------------------------------------------------------------------------

#//------------------------------------------------------------------------
#//
#// Specify the depth of the current directory relative to the
#// root of NS
#//
#//------------------------------------------------------------------------
DEPTH=.

#//------------------------------------------------------------------------
#//
#// Specify any "command" targets. (ie. DIRS, INSTALL_FILES, ...)
#// (these must come before the common makefiles are included)
#// 
#// DIRS          - There are subdirectories to process
#//
#// netcast needs to be before sun-java so marimba.* package is available
#// to netscape.netcast.* - spider
#//------------------------------------------------------------------------

!ifdef MOZ_SECURITY
SECDIR=security
!else
SECDIR=
!endif

DISTDIRS=$(NSPRDIR) dbm $(SECDIR) xpcom base caps

!if "$(WATCOM)" != ""
XTRADIRS = $(DISTDIRS)
!endif

!if "$(MOZ_BITS)" == "32"
DIRS_JSD = js\jsd
XTRADIRS = $(DISTDIRS)
!endif

!ifdef MOZ_SECURITY
CORECONF=coreconf
!else
CORECONF=
!endif

DIRS = \
!ifdef MOZILLA_OFFICIAL
config $(CORECONF) $(XTRADIRS) lib network include jpeg modules\zlib \
!else
    $(CORECONF) $(XTRADIRS) lib network include jpeg modules\zlib \
!endif
!ifdef MOZ_NETCAST
    netcast \
!endif
    sun-java \
!ifdef MOZ_LDAP
    ldap \
!endif
!ifdef MOZ_JAVA
    ifc js nav-java \
!else
    nav-java js \
!endif
!ifdef MOZ_IFC_TOOLS
    ifc\tools \
!endif
!ifdef MOZ_JAVA
    $(DIRS_JSD) \
!endif
    privacy lib modules cmd

!if "$(STAND_ALONE_JAVA)" == "1"
!if "$(OS_TARGET)" == "WINNT"
#// When we build stand alone java with OS_TARGET == WINNT for
#// nspr20, we do a gmake separately outside of makefile.win
#// hence no NSPRDIR - sudu
DIRS=jpeg modules\zlib sun-java ifc js ifc\tools sun-java\java
!else
DIRS=$(NSPRDIR) jpeg modules\zlib sun-java ifc js ifc\tools sun-java\java
!endif
!endif 

!ifdef NSWINDBGMALLOC
LLFLAGS= $(LLFLAGS)                 \
        /EXPORT:malloc=ns_malloc    \
        /EXPORT:realloc=ns_realloc  \
        /EXPORT:calloc=ns_calloc    \
        /EXPORT:free=ns_free        \
        /EXPORT:_strdup=ns_strdup
!endif

!ifdef SERVER_BUILD
LLIBS=$(DIST)/lib/httpdlw.lib $(DIST)/lib/libsjboot.lib
!endif

#//------------------------------------------------------------------------
#//
#// Include the common makefile rules
#//
#//------------------------------------------------------------------------
include <$(DEPTH)\config\rules.mak>

#LCFLAGS=-D_USE_PR_DEBUG_MEMORY $(LCFLAGS)

export::
!if "$(MOZ_BITS)"=="32" && defined(MOZ_DEBUG) && defined(GLOWCODE)
    $(MAKE_INSTALL) $(GLOWDIR)\glowcode.dll $(DIST)\bin
!endif

clobber_all::
    cd $(DEPTH)
    $(RM_R) dist