1998-03-28 02:44:41 +00:00
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
#
|
|
|
|
|
# We now use a 3-pass build system. This needs to be re-thought....
|
|
|
|
|
#
|
|
|
|
|
# Pass 1. export - Create generated headers and stubs. Publish public headers
|
|
|
|
|
# to dist/<arch>/include.
|
|
|
|
|
#
|
|
|
|
|
# Pass 2. libs - Create libraries. Publish libraries to dist/<arch>/lib.
|
|
|
|
|
#
|
|
|
|
|
# Pass 3. install - Create programs. Publish them to dist/<arch>/bin.
|
|
|
|
|
#
|
|
|
|
|
# 'gmake' will build each of these properly, but 'gmake -jN' will break (need
|
|
|
|
|
# to do each pass explicitly when using -j).
|
|
|
|
|
#
|
|
|
|
|
# Parameters to this makefile (set these before including):
|
|
|
|
|
#
|
|
|
|
|
# a)
|
|
|
|
|
# TARGETS -- the target to create
|
|
|
|
|
# (defaults to $LIBRARY $PROGRAM)
|
|
|
|
|
# b)
|
|
|
|
|
# DIRS -- subdirectories for make to recurse on
|
|
|
|
|
# (the 'all' rule builds $TARGETS $DIRS)
|
|
|
|
|
# c)
|
|
|
|
|
# CSRCS, CPPSRCS -- .c and .cpp files to compile
|
|
|
|
|
# (used to define $OBJS)
|
|
|
|
|
# d)
|
|
|
|
|
# PROGRAM -- the target program name to create from $OBJS
|
|
|
|
|
# ($OBJDIR automatically prepended to it)
|
1999-01-23 11:41:15 +00:00
|
|
|
|
# d2)
|
|
|
|
|
# SIMPLE_PROGRAMS -- Compiles Foo.cpp Bar.cpp into Foo, Bar executables.
|
|
|
|
|
# ($OBJDIR automatically prepended to it)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
# e)
|
|
|
|
|
# LIBRARY_NAME -- the target library name to create from $OBJS
|
|
|
|
|
# ($OBJDIR automatically prepended to it)
|
|
|
|
|
# f)
|
|
|
|
|
# JSRCS -- java source files to compile into class files
|
|
|
|
|
# (if you don't specify this it will default to *.java)
|
|
|
|
|
# g)
|
|
|
|
|
# PACKAGE -- the package to put the .class files into
|
|
|
|
|
# (e.g. netscape/applet)
|
|
|
|
|
# h)
|
|
|
|
|
# JMC_EXPORT -- java files to be exported for use by JMC_GEN
|
|
|
|
|
# (this is a list of Class names)
|
|
|
|
|
# i)
|
|
|
|
|
# JRI_GEN -- files to run through javah to generate headers and stubs
|
|
|
|
|
# (output goes into the _jri sub-dir)
|
|
|
|
|
# j)
|
1998-07-31 20:19:50 +00:00
|
|
|
|
# JNI_GEN -- files to run through javah to generate headers and stubs
|
|
|
|
|
# (output goes into the _jni sub-dir)
|
|
|
|
|
# k)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
# JMC_GEN -- files to run through jmc to generate headers and stubs
|
|
|
|
|
# (output goes into the _jmc sub-dir)
|
|
|
|
|
#
|
|
|
|
|
################################################################################
|
1998-08-19 20:42:14 +00:00
|
|
|
|
ifndef topsrcdir
|
|
|
|
|
topsrcdir = $(DEPTH)
|
|
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Common rules used by lots of makefiles...
|
|
|
|
|
#
|
|
|
|
|
ifndef NS_CONFIG_MK
|
1998-08-19 20:42:14 +00:00
|
|
|
|
include $(topsrcdir)/config/config.mk
|
1998-03-28 02:44:41 +00:00
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
ifdef PROGRAM
|
|
|
|
|
PROGRAM := $(addprefix $(OBJDIR)/, $(PROGRAM))
|
|
|
|
|
endif
|
|
|
|
|
|
1999-01-23 11:41:15 +00:00
|
|
|
|
ifdef SIMPLE_PROGRAMS
|
|
|
|
|
SIMPLE_PROGRAMS := $(addprefix $(OBJDIR)/, $(SIMPLE_PROGRAMS))
|
|
|
|
|
endif
|
|
|
|
|
|
1998-07-08 03:49:31 +00:00
|
|
|
|
#
|
|
|
|
|
# Library rules
|
|
|
|
|
#
|
|
|
|
|
# If NO_STATIC_LIB is set, the static library will not be built.
|
|
|
|
|
# If NO_SHARED_LIB is set, the shared library will not be built.
|
|
|
|
|
#
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifndef LIBRARY
|
|
|
|
|
ifdef LIBRARY_NAME
|
|
|
|
|
LIBRARY := lib$(LIBRARY_NAME).$(LIB_SUFFIX)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
endif # LIBRARY_NAME
|
|
|
|
|
endif # LIBRARY
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
|
|
ifdef LIBRARY
|
|
|
|
|
ifeq ($(OS_ARCH),OS2)
|
|
|
|
|
ifndef DEF_FILE
|
|
|
|
|
DEF_FILE := $(LIBRARY:.lib=.def)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
endif # DEF_FILE
|
|
|
|
|
endif # LIBRARY
|
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
|
LIBRARY := $(addprefix $(OBJDIR)/, $(LIBRARY))
|
1999-02-19 03:06:32 +00:00
|
|
|
|
|
1998-07-08 03:49:31 +00:00
|
|
|
|
ifndef NO_SHARED_LIB
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifdef MKSHLIB
|
|
|
|
|
ifeq ($(OS_ARCH),OS2)
|
|
|
|
|
SHARED_LIBRARY := $(LIBRARY:.lib=.dll)
|
|
|
|
|
MAPS := $(LIBRARY:.lib=.map)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
else # OS2
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
|
SHARED_LIBRARY := $(LIBRARY:.lib=.dll)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
else # WINNT
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifeq ($(OS_ARCH),HP-UX)
|
|
|
|
|
SHARED_LIBRARY := $(LIBRARY:.a=.sl)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
else # HPUX
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifeq ($(OS_ARCH)$(OS_RELEASE),SunOS4.1)
|
|
|
|
|
SHARED_LIBRARY := $(LIBRARY:.a=.so.1.0)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
else # SunOS4
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifeq ($(OS_ARCH)$(OS_RELEASE),AIX4.1)
|
|
|
|
|
SHARED_LIBRARY := $(LIBRARY:.a=)_shr.a
|
1999-02-19 03:06:32 +00:00
|
|
|
|
else # AIX
|
1998-08-18 09:06:48 +00:00
|
|
|
|
SHARED_LIBRARY := $(LIBRARY:.a=.$(DLL_SUFFIX))
|
1999-02-19 03:06:32 +00:00
|
|
|
|
endif # AIX
|
|
|
|
|
endif # SunOS4
|
|
|
|
|
endif # HPUX
|
|
|
|
|
endif # WINNT
|
|
|
|
|
endif # OS2
|
|
|
|
|
endif # MKSHLIB
|
|
|
|
|
endif # !NO_SHARED_LIB
|
1998-03-28 02:44:41 +00:00
|
|
|
|
endif
|
1998-07-08 03:49:31 +00:00
|
|
|
|
|
|
|
|
|
ifdef NO_STATIC_LIB
|
|
|
|
|
LIBRARY = $(NULL)
|
|
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
1998-08-19 20:42:14 +00:00
|
|
|
|
ifdef NO_SHARED_LIB
|
|
|
|
|
DLL_SUFFIX = a
|
|
|
|
|
endif
|
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifndef TARGETS
|
1999-01-23 11:41:15 +00:00
|
|
|
|
TARGETS = $(LIBRARY) $(SHARED_LIBRARY) $(PROGRAM) $(SIMPLE_PROGRAMS)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
ifndef OBJS
|
|
|
|
|
OBJS = $(JRI_STUB_CFILES) $(addsuffix .o, $(JMC_GEN)) $(CSRCS:.c=.o) $(CPPSRCS:.cpp=.o) $(ASFILES:.s=.o)
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
OBJS := $(addprefix $(OBJDIR)/, $(OBJS))
|
|
|
|
|
|
|
|
|
|
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
|
|
|
|
|
ifdef DLL
|
|
|
|
|
DLL := $(addprefix $(OBJDIR)/, $(DLL))
|
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
|
LIB := $(addprefix $(OBJDIR)/, $(LIB))
|
1999-02-19 03:06:32 +00:00
|
|
|
|
endif # WINNT
|
|
|
|
|
endif # DLL
|
1998-03-28 02:44:41 +00:00
|
|
|
|
MAKE_OBJDIR = mkdir $(OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
MAKE_DEPDIR = mkdir $(OBJDIR)/.deps
|
|
|
|
|
else # OS2, WINNT
|
1998-03-28 02:44:41 +00:00
|
|
|
|
define MAKE_OBJDIR
|
1998-09-26 01:30:16 +00:00
|
|
|
|
if test ! -d $(@D); then rm -rf $(@D); $(NSINSTALL) -D $(@D); else true; fi
|
1998-03-28 02:44:41 +00:00
|
|
|
|
endef
|
1999-02-19 03:06:32 +00:00
|
|
|
|
ifdef COMPILER_DEPEND
|
|
|
|
|
define MAKE_DEPDIR
|
|
|
|
|
if test ! -d $(@D)/.deps; then rm -rf $(@D)/.deps; mkdir $(@D)/.deps; else true; fi
|
|
|
|
|
endef
|
|
|
|
|
endif # OS2, WINNT
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
|
|
ifndef OS2_IMPLIB
|
|
|
|
|
LIBOBJS := $(addprefix \", $(OBJS))
|
|
|
|
|
LIBOBJS := $(addsuffix \", $(LIBOBJS))
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
ifndef PACKAGE
|
|
|
|
|
PACKAGE = .
|
|
|
|
|
endif
|
|
|
|
|
|
1998-07-31 20:19:50 +00:00
|
|
|
|
ifdef JAVA_OR_NSJVM
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ALL_TRASH = $(TARGETS) $(OBJS) $(OBJDIR) LOGS TAGS $(GARBAGE) \
|
|
|
|
|
$(NOSUCHFILE) $(JDK_HEADER_CFILES) $(JDK_STUB_CFILES) \
|
|
|
|
|
$(JRI_HEADER_CFILES) $(JRI_STUB_CFILES) $(JMC_STUBS) \
|
|
|
|
|
$(JMC_HEADERS) $(JMC_EXPORT_FILES) so_locations \
|
|
|
|
|
_gen _jmc _jri _stubs $(wildcard gts_tmp_*) \
|
|
|
|
|
$(wildcard $(JAVA_DESTPATH)/$(PACKAGE)/*.class)
|
|
|
|
|
else
|
|
|
|
|
ALL_TRASH = $(TARGETS) $(OBJS) $(OBJDIR) LOGS TAGS $(GARBAGE) \
|
|
|
|
|
$(NOSUCHFILE) \
|
|
|
|
|
$(JMC_STUBS) \
|
|
|
|
|
so_locations \
|
|
|
|
|
_gen _stubs $(wildcard gts_tmp_*)
|
|
|
|
|
endif
|
|
|
|
|
|
1998-07-31 20:19:50 +00:00
|
|
|
|
ifdef JAVA_OR_NSJVM
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifdef JDIRS
|
|
|
|
|
ALL_TRASH += $(addprefix $(JAVA_DESTPATH)/,$(JDIRS))
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
1998-07-31 20:19:50 +00:00
|
|
|
|
ifdef JAVA_OR_NSJVM
|
1998-03-28 02:44:41 +00:00
|
|
|
|
JMC_SUBDIR = _jmc
|
|
|
|
|
else
|
|
|
|
|
JMC_SUBDIR = $(LOCAL_JMC_SUBDIR)
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
ifdef NSBUILDROOT
|
|
|
|
|
JDK_GEN_DIR = $(XPDIST)/_gen
|
|
|
|
|
JMC_GEN_DIR = $(XPDIST)/$(JMC_SUBDIR)
|
|
|
|
|
JRI_GEN_DIR = $(XPDIST)/_jri
|
1998-07-31 20:19:50 +00:00
|
|
|
|
JNI_GEN_DIR = $(XPDIST)/_jni
|
1998-03-28 02:44:41 +00:00
|
|
|
|
JDK_STUB_DIR = $(XPDIST)/_stubs
|
|
|
|
|
else
|
|
|
|
|
JDK_GEN_DIR = _gen
|
|
|
|
|
JMC_GEN_DIR = $(JMC_SUBDIR)
|
|
|
|
|
JRI_GEN_DIR = _jri
|
1998-07-31 20:19:50 +00:00
|
|
|
|
JNI_GEN_DIR = _jni
|
1998-03-28 02:44:41 +00:00
|
|
|
|
JDK_STUB_DIR = _stubs
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# If this is an "official" build, try to build everything.
|
|
|
|
|
# I.e., don't exit on errors.
|
|
|
|
|
#
|
|
|
|
|
ifdef BUILD_OFFICIAL
|
|
|
|
|
EXIT_ON_ERROR = +e
|
|
|
|
|
CLICK_STOPWATCH = date
|
|
|
|
|
else
|
|
|
|
|
EXIT_ON_ERROR = -e
|
|
|
|
|
CLICK_STOPWATCH = true
|
|
|
|
|
endif
|
|
|
|
|
|
1999-02-08 19:59:25 +00:00
|
|
|
|
ifdef MOZ_UPDATE_XTERM
|
|
|
|
|
UPDATE_TITLE = echo "]2;gmake: $@ in $(SRCDIR)/$$d"
|
|
|
|
|
else
|
|
|
|
|
UPDATE_TITLE = true
|
|
|
|
|
endif
|
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifdef DIRS
|
|
|
|
|
LOOP_OVER_DIRS = \
|
|
|
|
|
@for d in $(DIRS); do \
|
1999-02-08 19:59:25 +00:00
|
|
|
|
$(UPDATE_TITLE); \
|
1998-03-28 02:44:41 +00:00
|
|
|
|
if test -d $$d; then \
|
|
|
|
|
set $(EXIT_ON_ERROR); \
|
|
|
|
|
echo "cd $$d; $(MAKE) $@"; \
|
|
|
|
|
oldDir=`pwd`; \
|
|
|
|
|
cd $$d; $(MAKE) $@; cd $$oldDir; \
|
|
|
|
|
set +e; \
|
|
|
|
|
else \
|
|
|
|
|
echo "Skipping non-directory $$d..."; \
|
|
|
|
|
fi; \
|
|
|
|
|
$(CLICK_STOPWATCH); \
|
|
|
|
|
done
|
|
|
|
|
endif
|
|
|
|
|
|
1998-07-08 03:49:31 +00:00
|
|
|
|
#
|
|
|
|
|
# Now we can differentiate between objects used to build a library, and
|
|
|
|
|
# objects used to build an executable in the same directory.
|
|
|
|
|
#
|
|
|
|
|
ifndef PROGOBJS
|
|
|
|
|
PROGOBJS = $(OBJS)
|
|
|
|
|
endif
|
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
all:: export libs install
|
|
|
|
|
|
1999-01-21 07:42:44 +00:00
|
|
|
|
# Do depend as well
|
|
|
|
|
alldep:: export depend libs install
|
|
|
|
|
|
|
|
|
|
# Do everything from scratch
|
|
|
|
|
everything:: clobber_all alldep
|
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
|
#
|
|
|
|
|
# Maybe this should be done in config/Makefile so it only happens once...?
|
|
|
|
|
#
|
1998-08-12 10:44:46 +00:00
|
|
|
|
#XXXceb
|
|
|
|
|
# Directory SDK doesn't use NSPR
|
1998-08-12 11:01:24 +00:00
|
|
|
|
TARGETS += tweak_nspr
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Since the NSPR folks won't help, we'll fix things the sneaky way.
|
|
|
|
|
#
|
|
|
|
|
tweak_nspr:
|
1998-10-02 04:08:00 +00:00
|
|
|
|
ifndef USE_AUTOCONF
|
1998-03-28 02:44:41 +00:00
|
|
|
|
@(cd $(DEPTH)/nsprpub/config; \
|
1998-09-26 01:30:16 +00:00
|
|
|
|
if test -f UNIX.mk.orig; then rm -f UNIX.mk; mv UNIX.mk.orig UNIX.mk; else true; fi; \
|
1998-03-28 02:44:41 +00:00
|
|
|
|
mv UNIX.mk UNIX.mk.orig; \
|
|
|
|
|
awk '/^OBJDIR_NAME[ ]*=/ { \
|
1998-10-14 01:40:41 +00:00
|
|
|
|
printf("OBJDIR_NAME\t= %s%s%s%s%s%s.OBJ\n","$(OS_CONFIG)","$(OS_VERSION)","$(PROCESSOR_ARCHITECTURE)","$(COMPILER)","$(IMPL_STRATEGY)","$(OBJDIR_TAG)"); next} {print}' UNIX.mk.orig > UNIX.mk)
|
1998-10-02 02:12:21 +00:00
|
|
|
|
endif # ! USE_AUTOCONF
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
|
|
ifdef ALL_PLATFORMS
|
|
|
|
|
all_platforms:: $(NFSPWD)
|
|
|
|
|
@d=`$(NFSPWD)`; \
|
|
|
|
|
if test ! -d LOGS; then rm -rf LOGS; mkdir LOGS; fi; \
|
|
|
|
|
for h in $(PLATFORM_HOSTS); do \
|
|
|
|
|
echo "On $$h: $(MAKE) $(ALL_PLATFORMS) >& LOGS/$$h.log";\
|
|
|
|
|
rsh $$h -n "(chdir $$d; \
|
|
|
|
|
$(MAKE) $(ALL_PLATFORMS) >& LOGS/$$h.log; \
|
|
|
|
|
echo DONE) &" 2>&1 > LOGS/$$h.pid & \
|
|
|
|
|
sleep 1; \
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
$(NFSPWD):
|
|
|
|
|
cd $(@D); $(MAKE) $(@F)
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
export::
|
|
|
|
|
+$(LOOP_OVER_DIRS)
|
|
|
|
|
|
1998-07-08 03:49:31 +00:00
|
|
|
|
ifndef LIBS_NEQ_INSTALL
|
1999-01-23 11:41:15 +00:00
|
|
|
|
libs install:: $(LIBRARY) $(SHARED_LIBRARY) $(PROGRAM) $(SIMPLE_PROGRAMS) $(MAPS)
|
1998-07-08 03:49:31 +00:00
|
|
|
|
ifndef NO_STATIC_LIB
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifdef LIBRARY
|
|
|
|
|
$(INSTALL) -m 444 $(LIBRARY) $(DIST)/lib
|
|
|
|
|
endif
|
1998-07-08 03:49:31 +00:00
|
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifdef MAPS
|
|
|
|
|
$(INSTALL) -m 444 $(MAPS) $(DIST)/bin
|
|
|
|
|
endif
|
|
|
|
|
ifdef SHARED_LIBRARY
|
|
|
|
|
$(INSTALL) -m 555 $(SHARED_LIBRARY) $(DIST)/bin
|
|
|
|
|
endif
|
|
|
|
|
ifdef PROGRAM
|
|
|
|
|
$(INSTALL) -m 444 $(PROGRAM) $(DIST)/bin
|
1999-01-23 11:41:15 +00:00
|
|
|
|
endif
|
|
|
|
|
ifdef SIMPLE_PROGRAMS
|
|
|
|
|
$(INSTALL) -m 444 $(SIMPLE_PROGRAMS) $(DIST)/bin
|
1998-03-28 02:44:41 +00:00
|
|
|
|
endif
|
|
|
|
|
+$(LOOP_OVER_DIRS)
|
1998-07-08 03:49:31 +00:00
|
|
|
|
else
|
1999-02-10 00:07:01 +00:00
|
|
|
|
libs:: $(LIBRARY) $(SHARED_LIBRARY) $(SHARED_LIBRARY_LIBS)
|
1998-07-08 03:49:31 +00:00
|
|
|
|
ifndef NO_STATIC_LIB
|
|
|
|
|
ifdef LIBRARY
|
|
|
|
|
$(INSTALL) -m 444 $(LIBRARY) $(DIST)/lib
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
ifdef SHARED_LIBRARY
|
|
|
|
|
$(INSTALL) -m 555 $(SHARED_LIBRARY) $(DIST)/bin
|
|
|
|
|
endif
|
|
|
|
|
+$(LOOP_OVER_DIRS)
|
|
|
|
|
|
1999-02-02 07:34:20 +00:00
|
|
|
|
install:: $(PROGRAM) $(SIMPLE_PROGRAMS)
|
1998-07-08 03:49:31 +00:00
|
|
|
|
ifdef MAPS
|
|
|
|
|
$(INSTALL) -m 444 $(MAPS) $(DIST)/bin
|
|
|
|
|
endif
|
|
|
|
|
ifdef PROGRAM
|
|
|
|
|
$(INSTALL) -m 444 $(PROGRAM) $(DIST)/bin
|
1999-01-23 11:41:15 +00:00
|
|
|
|
endif
|
|
|
|
|
ifdef SIMPLE_PROGRAMS
|
|
|
|
|
$(INSTALL) -m 444 $(SIMPLE_PROGRAMS) $(DIST)/bin
|
1998-07-08 03:49:31 +00:00
|
|
|
|
endif
|
|
|
|
|
+$(LOOP_OVER_DIRS)
|
|
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
1999-02-17 17:33:07 +00:00
|
|
|
|
checkout:
|
|
|
|
|
cd $(topsrcdir); $(MAKE) -f client.mk checkout
|
|
|
|
|
|
1999-02-18 18:44:48 +00:00
|
|
|
|
run_viewer: $(DIST)/bin/viewer
|
|
|
|
|
cd $(DIST)/bin; \
|
|
|
|
|
MOZILLA_HOME= ; \
|
|
|
|
|
LD_LIBRARY_PATH=".:$(LIBS_PATH):$$LD_LIBRARY_PATH" \
|
|
|
|
|
viewer
|
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
|
clean clobber::
|
|
|
|
|
rm -rf $(ALL_TRASH)
|
|
|
|
|
+$(LOOP_OVER_DIRS)
|
|
|
|
|
|
|
|
|
|
realclean clobber_all::
|
|
|
|
|
rm -rf $(wildcard *.OBJ) dist $(ALL_TRASH)
|
|
|
|
|
+$(LOOP_OVER_DIRS)
|
|
|
|
|
|
|
|
|
|
alltags:
|
|
|
|
|
rm -f TAGS
|
|
|
|
|
find . -name dist -prune -o \( -name '*.[hc]' -o -name '*.cp' -o -name '*.cpp' \) -print | xargs etags -a
|
|
|
|
|
|
1999-01-28 00:59:03 +00:00
|
|
|
|
#
|
|
|
|
|
# Turn on C++ linking if we have any .cpp files
|
|
|
|
|
# (moved this from config.mk so that config.mk can be included
|
|
|
|
|
# before the CPPSRCS are defined)
|
|
|
|
|
#
|
|
|
|
|
ifdef CPPSRCS
|
|
|
|
|
CPP_PROG_LINK = 1
|
|
|
|
|
endif
|
|
|
|
|
|
1999-01-23 11:41:15 +00:00
|
|
|
|
#
|
|
|
|
|
# PROGRAM = Foo
|
|
|
|
|
# creates OBJS, links with LIBS to create Foo
|
|
|
|
|
#
|
1998-07-08 03:49:31 +00:00
|
|
|
|
$(PROGRAM): $(PROGOBJS)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifeq ($(OS_ARCH),OS2)
|
1998-07-08 03:49:31 +00:00
|
|
|
|
$(LINK) -FREE -OUT:$@ $(LDFLAGS) $(OS_LFLAGS) $(PROGOBJS) $(EXTRA_LIBS) -MAP:$(@:.exe=.map) $(OS_LIBS) $(DEF_FILE)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
else
|
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
1998-07-08 03:49:31 +00:00
|
|
|
|
$(CC) $(PROGOBJS) -Fe$@ -link $(LDFLAGS) $(OS_LIBS) $(EXTRA_LIBS)
|
|
|
|
|
else
|
1999-02-17 00:32:17 +00:00
|
|
|
|
ifeq ($(CPP_PROG_LINK),1)
|
1999-02-02 17:39:51 +00:00
|
|
|
|
$(CCC) $(CFLAGS) $(WRAP_MALLOC_CFLAGS) -o $@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(WRAP_MALLOC_LIB)
|
1999-01-23 10:14:58 +00:00
|
|
|
|
else
|
|
|
|
|
$(CCF) -o $@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS)
|
|
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
endif
|
|
|
|
|
endif
|
1999-01-23 09:36:40 +00:00
|
|
|
|
|
1999-01-23 11:41:15 +00:00
|
|
|
|
#
|
|
|
|
|
# This is an attempt to support generation of multiple binaries
|
|
|
|
|
# in one directory, it assumes everything to compile Foo is in
|
|
|
|
|
# Foo.o (from either Foo.c or Foo.cpp).
|
|
|
|
|
#
|
|
|
|
|
# SIMPLE_PROGRAMS = Foo Bar
|
|
|
|
|
# creates Foo.o Bar.o, links with LIBS to create Foo, Bar.
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
$(SIMPLE_PROGRAMS):$(OBJDIR)/%: $(OBJDIR)/%.o
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1999-02-17 00:32:17 +00:00
|
|
|
|
ifeq ($(CPP_PROG_LINK),1)
|
1999-02-02 17:39:51 +00:00
|
|
|
|
$(CCC) $(CFLAGS) $(WRAP_MALLOC_CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(WRAP_MALLOC_LIB)
|
1999-01-23 12:20:00 +00:00
|
|
|
|
else
|
|
|
|
|
$(CCF) -o $@ $^ $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS)
|
|
|
|
|
endif
|
1999-01-23 11:41:15 +00:00
|
|
|
|
|
1999-01-27 07:17:32 +00:00
|
|
|
|
#
|
|
|
|
|
# Purify target. Solaris/sparc only to start.
|
|
|
|
|
# Purify does not recognize "egcs" or "c++" so we go with
|
|
|
|
|
# "gcc" and "g++" for now.
|
|
|
|
|
#
|
|
|
|
|
pure: $(PROGRAM)
|
1999-02-17 00:32:17 +00:00
|
|
|
|
ifeq ($(CPP_PROG_LINK),1)
|
1999-01-27 07:17:32 +00:00
|
|
|
|
$(PURIFY) g++ $(CFLAGS) -o $^.pure $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS)
|
|
|
|
|
else
|
|
|
|
|
$(PURIFY) $(CCF) -o $^.pure $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS)
|
|
|
|
|
endif
|
1999-01-23 11:41:15 +00:00
|
|
|
|
|
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifneq ($(OS_ARCH),OS2)
|
|
|
|
|
$(LIBRARY): $(OBJS) $(LOBJS)
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
rm -f $@
|
|
|
|
|
$(AR) $(OBJS) $(LOBJS)
|
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
else
|
|
|
|
|
ifdef OS2_IMPLIB
|
|
|
|
|
$(LIBRARY): $(OBJS) $(DEF_FILE)
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
rm -f $@
|
|
|
|
|
$(IMPLIB) $@ $(DEF_FILE)
|
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
else
|
|
|
|
|
$(LIBRARY): $(OBJS)
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
rm -f $@
|
|
|
|
|
$(AR) $(LIBOBJS),,
|
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
ifneq ($(OS_ARCH),OS2)
|
|
|
|
|
$(SHARED_LIBRARY): $(OBJS) $(LOBJS)
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
rm -f $@
|
|
|
|
|
$(MKSHLIB) -o $@ $(OBJS) $(LOBJS) $(EXTRA_DSO_LDOPTS)
|
|
|
|
|
chmod +x $@
|
|
|
|
|
else
|
|
|
|
|
$(SHARED_LIBRARY): $(OBJS) $(DEF_FILE)
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
rm -f $@
|
|
|
|
|
$(LINK_DLL) $(OBJS) $(OS_LIBS) $(EXTRA_LIBS) $(DEF_FILE)
|
|
|
|
|
chmod +x $@
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
|
|
|
|
|
$(DLL): $(OBJS) $(EXTRA_LIBS)
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
rm -f $@
|
|
|
|
|
ifeq ($(OS_ARCH),OS2)
|
|
|
|
|
$(LINK_DLL) $(OBJS) $(EXTRA_LIBS) $(OS_LIBS)
|
|
|
|
|
else
|
|
|
|
|
$(LINK_DLL) $(OBJS) $(OS_LIBS) $(EXTRA_LIBS)
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
$(OBJDIR)/%: %.c
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
|
1998-08-19 20:42:14 +00:00
|
|
|
|
$(CC) -Fo$@ -c $(CFLAGS) $<
|
1998-03-28 02:44:41 +00:00
|
|
|
|
else
|
1998-08-19 20:42:14 +00:00
|
|
|
|
$(CCF) $(LDFLAGS) -o $@ $<
|
1998-03-28 02:44:41 +00:00
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
$(OBJDIR)/%.o: %.c
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
|
1998-08-19 20:42:14 +00:00
|
|
|
|
$(CC) -Fo$@ -c $(CFLAGS) $<
|
1998-03-28 02:44:41 +00:00
|
|
|
|
else
|
1998-08-19 20:42:14 +00:00
|
|
|
|
$(CC) -o $@ -c $(CFLAGS) $<
|
1998-03-28 02:44:41 +00:00
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
$(OBJDIR)/%.o: %.s
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1998-08-19 20:42:14 +00:00
|
|
|
|
$(AS) -o $@ $(ASFLAGS) -c $<
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
|
|
$(OBJDIR)/%.o: %.S
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1998-08-19 20:42:14 +00:00
|
|
|
|
$(AS) -o $@ $(ASFLAGS) -c $<
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
|
|
$(OBJDIR)/%: %.cpp
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1998-08-19 20:42:14 +00:00
|
|
|
|
$(CCC) -o $@ $(CFLAGS) $< $(LDFLAGS)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Please keep the next two rules in sync.
|
|
|
|
|
#
|
|
|
|
|
$(OBJDIR)/%.o: %.cc
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1998-08-19 20:42:14 +00:00
|
|
|
|
$(CCC) -o $@ -c $(CFLAGS) $<
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
|
|
$(OBJDIR)/%.o: %.cpp
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifdef STRICT_CPLUSPLUS_SUFFIX
|
|
|
|
|
echo "#line 1 \"$*.cpp\"" | cat - $*.cpp > $(OBJDIR)/t_$*.cc
|
|
|
|
|
$(CCC) -o $@ -c $(CFLAGS) $(OBJDIR)/t_$*.cc
|
|
|
|
|
rm -f $(OBJDIR)/t_$*.cc
|
|
|
|
|
else
|
|
|
|
|
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
|
1998-08-19 20:42:14 +00:00
|
|
|
|
$(CCC) -Fo$@ -c $(CFLAGS) $<
|
1998-03-28 02:44:41 +00:00
|
|
|
|
else
|
1998-08-19 20:42:14 +00:00
|
|
|
|
$(CCC) -o $@ -c $(CFLAGS) $<
|
1998-03-28 02:44:41 +00:00
|
|
|
|
endif
|
|
|
|
|
endif #STRICT_CPLUSPLUS_SUFFIX
|
|
|
|
|
|
|
|
|
|
%.i: %.cpp
|
|
|
|
|
$(CCC) -C -E $(CFLAGS) $< > $*.i
|
|
|
|
|
|
|
|
|
|
%.i: %.c
|
|
|
|
|
$(CC) -C -E $(CFLAGS) $< > $*.i
|
|
|
|
|
|
|
|
|
|
%: %.pl
|
1998-08-19 20:42:14 +00:00
|
|
|
|
rm -f $@; cp $< $@; chmod +x $@
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
|
|
%: %.sh
|
1998-08-19 20:42:14 +00:00
|
|
|
|
rm -f $@; cp $< $@; chmod +x $@
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
1999-01-22 01:28:13 +00:00
|
|
|
|
%.h: %.idl
|
1999-02-08 19:59:25 +00:00
|
|
|
|
$(IDL_COMPILE) -m header -w -I $(DIST)/idl $<
|
1999-01-22 01:28:13 +00:00
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifdef DIRS
|
|
|
|
|
$(DIRS)::
|
|
|
|
|
@if test -d $@; then \
|
|
|
|
|
set $(EXIT_ON_ERROR); \
|
|
|
|
|
echo "cd $@; $(MAKE)"; \
|
|
|
|
|
cd $@; $(MAKE); \
|
|
|
|
|
set +e; \
|
|
|
|
|
else \
|
|
|
|
|
echo "Skipping non-directory $@..."; \
|
|
|
|
|
fi; \
|
|
|
|
|
$(CLICK_STOPWATCH)
|
|
|
|
|
endif
|
|
|
|
|
|
1999-01-29 20:00:50 +00:00
|
|
|
|
###############################################################################
|
|
|
|
|
# Update Makefiles
|
|
|
|
|
###############################################################################
|
|
|
|
|
#
|
|
|
|
|
$(OBJDIR)/Makefile: Makefile.in
|
|
|
|
|
@echo Updating $@
|
|
|
|
|
$(topsrcdir)/build/autoconf/update-makefile.sh
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
1998-03-28 02:44:41 +00:00
|
|
|
|
# Bunch of things that extend the 'export' rule (in order):
|
1999-01-29 20:00:50 +00:00
|
|
|
|
###############################################################################
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
|
|
$(JAVA_DESTPATH) $(JAVA_DESTPATH)/$(PACKAGE) $(JMCSRCDIR)::
|
|
|
|
|
@if test ! -d $@; then \
|
|
|
|
|
echo Creating $@; \
|
|
|
|
|
rm -rf $@; \
|
|
|
|
|
$(NSINSTALL) -D $@; \
|
1998-10-23 04:41:26 +00:00
|
|
|
|
else \
|
|
|
|
|
true; \
|
1998-03-28 02:44:41 +00:00
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
### JSRCS -- for compiling java files
|
|
|
|
|
|
|
|
|
|
ifneq ($(JSRCS),)
|
1998-07-31 20:19:50 +00:00
|
|
|
|
ifdef JAVA_OR_NSJVM
|
1998-03-28 02:44:41 +00:00
|
|
|
|
export:: $(JAVA_DESTPATH) $(JAVA_DESTPATH)/$(PACKAGE)
|
1998-08-19 20:42:14 +00:00
|
|
|
|
list=`$(PERL) $(topsrcdir)/config/outofdate.pl $(PERLARG) \
|
1998-03-28 02:44:41 +00:00
|
|
|
|
-d $(JAVA_DESTPATH)/$(PACKAGE) $(JSRCS)`; \
|
|
|
|
|
if test "$$list"x != "x"; then \
|
|
|
|
|
echo $(JAVAC) $$list; \
|
|
|
|
|
$(JAVAC) $$list; \
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
all:: export
|
|
|
|
|
|
|
|
|
|
clobber::
|
|
|
|
|
rm -f $(XPDIST)/classes/$(PACKAGE)/*.class
|
|
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# JDIRS -- like JSRCS, except you can give a list of directories and it will
|
|
|
|
|
# compile all the out-of-date java files in those directories.
|
|
|
|
|
#
|
|
|
|
|
# NOTE: recursing through these can speed things up, but they also cause
|
|
|
|
|
# some builds to run out of memory
|
|
|
|
|
#
|
|
|
|
|
ifdef JDIRS
|
1998-07-31 20:19:50 +00:00
|
|
|
|
ifdef JAVA_OR_NSJVM
|
1998-03-28 02:44:41 +00:00
|
|
|
|
export:: $(JAVA_DESTPATH) $(JAVA_DESTPATH)/$(PACKAGE)
|
|
|
|
|
@for d in $(JDIRS); do \
|
|
|
|
|
if test -d $$d; then \
|
|
|
|
|
set $(EXIT_ON_ERROR); \
|
|
|
|
|
files=`echo $$d/*.java`; \
|
1998-08-19 20:42:14 +00:00
|
|
|
|
list=`$(PERL) $(topsrcdir)/config/outofdate.pl $(PERLARG) \
|
1998-03-28 02:44:41 +00:00
|
|
|
|
-d $(JAVA_DESTPATH)/$(PACKAGE) $$files`; \
|
|
|
|
|
if test "$${list}x" != "x"; then \
|
|
|
|
|
echo Building all java files in $$d; \
|
|
|
|
|
echo $(JAVAC) $$list; \
|
|
|
|
|
$(JAVAC) $$list; \
|
|
|
|
|
fi; \
|
|
|
|
|
set +e; \
|
|
|
|
|
else \
|
|
|
|
|
echo "Skipping non-directory $$d..."; \
|
|
|
|
|
fi; \
|
|
|
|
|
$(CLICK_STOPWATCH); \
|
|
|
|
|
done
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# JDK_GEN -- for generating "old style" native methods
|
|
|
|
|
#
|
|
|
|
|
# Generate JDK Headers and Stubs into the '_gen' and '_stubs' directory
|
|
|
|
|
#
|
|
|
|
|
ifneq ($(JDK_GEN),)
|
1998-07-31 20:19:50 +00:00
|
|
|
|
ifdef JAVA_OR_NSJVM
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifdef NSBUILDROOT
|
|
|
|
|
INCLUDES += -I$(JDK_GEN_DIR) -I$(XPDIST)
|
|
|
|
|
else
|
|
|
|
|
INCLUDES += -I$(JDK_GEN_DIR)
|
|
|
|
|
endif
|
|
|
|
|
JDK_PACKAGE_CLASSES = $(JDK_GEN)
|
|
|
|
|
JDK_PATH_CLASSES = $(subst .,/,$(JDK_PACKAGE_CLASSES))
|
|
|
|
|
JDK_HEADER_CLASSFILES = $(patsubst %,$(JAVA_DESTPATH)/%.class,$(JDK_PATH_CLASSES))
|
|
|
|
|
JDK_STUB_CLASSFILES = $(patsubst %,$(JAVA_DESTPATH)/%.class,$(JDK_PATH_CLASSES))
|
|
|
|
|
JDK_HEADER_CFILES = $(patsubst %,$(JDK_GEN_DIR)/%.h,$(JDK_GEN))
|
|
|
|
|
JDK_STUB_CFILES = $(patsubst %,$(JDK_STUB_DIR)/%.c,$(JDK_GEN))
|
|
|
|
|
|
|
|
|
|
$(JDK_HEADER_CFILES): $(JDK_HEADER_CLASSFILES)
|
|
|
|
|
$(JDK_STUB_CFILES): $(JDK_STUB_CLASSFILES)
|
|
|
|
|
|
|
|
|
|
export::
|
|
|
|
|
@echo Generating/Updating JDK headers
|
|
|
|
|
$(JAVAH) -d $(JDK_GEN_DIR) $(JDK_PACKAGE_CLASSES)
|
|
|
|
|
@echo Generating/Updating JDK stubs
|
|
|
|
|
$(JAVAH) -stubs -d $(JDK_STUB_DIR) $(JDK_PACKAGE_CLASSES)
|
|
|
|
|
ifdef MOZ_GENMAC
|
|
|
|
|
@if test ! -d $(DEPTH)/lib/mac/Java/; then \
|
|
|
|
|
echo "!!! You need to have a ns/lib/mac/Java directory checked out."; \
|
|
|
|
|
echo "!!! This allows us to automatically update generated files for the mac."; \
|
|
|
|
|
echo "!!! If you see any modified files there, please check them in."; \
|
|
|
|
|
fi
|
|
|
|
|
@echo Generating/Updating JDK headers for the Mac
|
|
|
|
|
$(JAVAH) -mac -d $(DEPTH)/lib/mac/Java/_gen $(JDK_PACKAGE_CLASSES)
|
|
|
|
|
@echo Generating/Updating JDK stubs for the Mac
|
|
|
|
|
$(JAVAH) -mac -stubs -d $(DEPTH)/lib/mac/Java/_stubs $(JDK_PACKAGE_CLASSES)
|
|
|
|
|
endif
|
1998-07-31 20:19:50 +00:00
|
|
|
|
endif # JAVA_OR_NSJVM
|
1998-03-28 02:44:41 +00:00
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# JRI_GEN -- for generating JRI native methods
|
|
|
|
|
#
|
|
|
|
|
# Generate JRI Headers and Stubs into the 'jri' directory
|
|
|
|
|
#
|
|
|
|
|
ifneq ($(JRI_GEN),)
|
1998-07-31 20:19:50 +00:00
|
|
|
|
ifdef JAVA_OR_NSJVM
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifdef NSBUILDROOT
|
|
|
|
|
INCLUDES += -I$(JRI_GEN_DIR) -I$(XPDIST)
|
|
|
|
|
else
|
|
|
|
|
INCLUDES += -I$(JRI_GEN_DIR)
|
|
|
|
|
endif
|
|
|
|
|
JRI_PACKAGE_CLASSES = $(JRI_GEN)
|
|
|
|
|
JRI_PATH_CLASSES = $(subst .,/,$(JRI_PACKAGE_CLASSES))
|
|
|
|
|
JRI_HEADER_CLASSFILES = $(patsubst %,$(JAVA_DESTPATH)/%.class,$(JRI_PATH_CLASSES))
|
|
|
|
|
JRI_STUB_CLASSFILES = $(patsubst %,$(JAVA_DESTPATH)/%.class,$(JRI_PATH_CLASSES))
|
|
|
|
|
JRI_HEADER_CFILES = $(patsubst %,$(JRI_GEN_DIR)/%.h,$(JRI_GEN))
|
|
|
|
|
JRI_STUB_CFILES = $(patsubst %,$(JRI_GEN_DIR)/%.c,$(JRI_GEN))
|
|
|
|
|
|
|
|
|
|
$(JRI_HEADER_CFILES): $(JRI_HEADER_CLASSFILES)
|
|
|
|
|
$(JRI_STUB_CFILES): $(JRI_STUB_CLASSFILES)
|
|
|
|
|
|
|
|
|
|
export::
|
|
|
|
|
@echo Generating/Updating JRI headers
|
|
|
|
|
$(JAVAH) -jri -d $(JRI_GEN_DIR) $(JRI_PACKAGE_CLASSES)
|
|
|
|
|
@echo Generating/Updating JRI stubs
|
|
|
|
|
$(JAVAH) -jri -stubs -d $(JRI_GEN_DIR) $(JRI_PACKAGE_CLASSES)
|
|
|
|
|
ifdef MOZ_GENMAC
|
|
|
|
|
@if test ! -d $(DEPTH)/lib/mac/Java/; then \
|
|
|
|
|
echo "!!! You need to have a ns/lib/mac/Java directory checked out."; \
|
|
|
|
|
echo "!!! This allows us to automatically update generated files for the mac."; \
|
|
|
|
|
echo "!!! If you see any modified files there, please check them in."; \
|
|
|
|
|
fi
|
|
|
|
|
@echo Generating/Updating JRI headers for the Mac
|
|
|
|
|
$(JAVAH) -jri -mac -d $(DEPTH)/lib/mac/Java/_jri $(JRI_PACKAGE_CLASSES)
|
|
|
|
|
@echo Generating/Updating JRI stubs for the Mac
|
|
|
|
|
$(JAVAH) -jri -mac -stubs -d $(DEPTH)/lib/mac/Java/_jri $(JRI_PACKAGE_CLASSES)
|
|
|
|
|
endif
|
1998-07-31 20:19:50 +00:00
|
|
|
|
endif # JAVA_OR_NSJVM
|
1998-03-28 02:44:41 +00:00
|
|
|
|
endif
|
|
|
|
|
|
1998-07-31 20:19:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# JNI_GEN -- for generating JNI native methods
|
|
|
|
|
#
|
|
|
|
|
# Generate JNI Headers and Stubs into the 'jni' directory
|
|
|
|
|
#
|
|
|
|
|
ifneq ($(JNI_GEN),)
|
|
|
|
|
ifdef JAVA_OR_NSJVM
|
|
|
|
|
ifdef NSBUILDROOT
|
|
|
|
|
INCLUDES += -I$(JNI_GEN_DIR) -I$(XPDIST)
|
|
|
|
|
else
|
|
|
|
|
INCLUDES += -I$(JNI_GEN_DIR)
|
|
|
|
|
endif
|
|
|
|
|
JNI_PACKAGE_CLASSES = $(JNI_GEN)
|
|
|
|
|
JNI_PATH_CLASSES = $(subst .,/,$(JNI_PACKAGE_CLASSES))
|
|
|
|
|
JNI_HEADER_CLASSFILES = $(patsubst %,$(JAVA_DESTPATH)/%.class,$(JNI_PATH_CLASSES))
|
|
|
|
|
JNI_HEADER_CFILES = $(patsubst %,$(JNI_GEN_DIR)/%.h,$(JNI_GEN))
|
|
|
|
|
JNI_STUB_CFILES = $(patsubst %,$(JNI_GEN_DIR)/%.c,$(JNI_GEN))
|
|
|
|
|
|
|
|
|
|
$(JNI_HEADER_CFILES): $(JNI_HEADER_CLASSFILES)
|
|
|
|
|
|
|
|
|
|
export::
|
|
|
|
|
@echo Generating/Updating JNI headers
|
|
|
|
|
$(JAVAH) -jni -d $(JNI_GEN_DIR) $(JNI_PACKAGE_CLASSES)
|
|
|
|
|
ifdef MOZ_GENMAC
|
|
|
|
|
@if test ! -d $(DEPTH)/lib/mac/Java/; then \
|
|
|
|
|
echo "!!! You need to have a ns/lib/mac/Java directory checked out."; \
|
|
|
|
|
echo "!!! This allows us to automatically update generated files for the mac."; \
|
|
|
|
|
echo "!!! If you see any modified files there, please check them in."; \
|
|
|
|
|
fi
|
|
|
|
|
@echo Generating/Updating JNI headers for the Mac
|
|
|
|
|
$(JAVAH) -jni -mac -d $(DEPTH)/lib/mac/Java/_jni $(JNI_PACKAGE_CLASSES)
|
|
|
|
|
endif
|
|
|
|
|
endif # JAVA_OR_NSJVM
|
|
|
|
|
endif # JNI_GEN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
|
#
|
|
|
|
|
# JMC_EXPORT -- for declaring which java classes are to be exported for jmc
|
|
|
|
|
#
|
|
|
|
|
ifneq ($(JMC_EXPORT),)
|
1998-07-31 20:19:50 +00:00
|
|
|
|
ifdef JAVA_OR_NSJVM
|
1998-03-28 02:44:41 +00:00
|
|
|
|
JMC_EXPORT_PATHS = $(subst .,/,$(JMC_EXPORT))
|
|
|
|
|
JMC_EXPORT_FILES = $(patsubst %,$(JAVA_DESTPATH)/$(PACKAGE)/%.class,$(JMC_EXPORT_PATHS))
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# We're doing NSINSTALL -t here (copy mode) because calling INSTALL will pick up
|
|
|
|
|
# your NSDISTMODE and make links relative to the current directory. This is a
|
|
|
|
|
# problem because the source isn't in the current directory:
|
|
|
|
|
#
|
|
|
|
|
export:: $(JMC_EXPORT_FILES) $(JMCSRCDIR)
|
|
|
|
|
$(NSINSTALL) -t -m 444 $(JMC_EXPORT_FILES) $(JMCSRCDIR)
|
1998-07-31 20:19:50 +00:00
|
|
|
|
endif # JAVA_OR_NSJVM
|
1998-03-28 02:44:41 +00:00
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# JMC_GEN -- for generating java modules
|
|
|
|
|
#
|
|
|
|
|
# Provide default export & install rules when using JMC_GEN
|
|
|
|
|
#
|
|
|
|
|
ifneq ($(JMC_GEN),)
|
|
|
|
|
INCLUDES += -I$(JMC_GEN_DIR) -I.
|
1998-07-31 20:19:50 +00:00
|
|
|
|
ifdef JAVA_OR_NSJVM
|
1998-03-28 02:44:41 +00:00
|
|
|
|
JMC_HEADERS = $(patsubst %,$(JMC_GEN_DIR)/%.h,$(JMC_GEN))
|
|
|
|
|
JMC_STUBS = $(patsubst %,$(JMC_GEN_DIR)/%.c,$(JMC_GEN))
|
|
|
|
|
JMC_OBJS = $(patsubst %,$(OBJDIR)/%.o,$(JMC_GEN))
|
|
|
|
|
|
|
|
|
|
$(JMC_GEN_DIR)/M%.h: $(JMCSRCDIR)/%.class
|
|
|
|
|
$(JMC) -d $(JMC_GEN_DIR) -interface $(JMC_GEN_FLAGS) $(?F:.class=)
|
|
|
|
|
|
|
|
|
|
$(JMC_GEN_DIR)/M%.c: $(JMCSRCDIR)/%.class
|
|
|
|
|
$(JMC) -d $(JMC_GEN_DIR) -module $(JMC_GEN_FLAGS) $(?F:.class=)
|
|
|
|
|
|
|
|
|
|
$(OBJDIR)/M%.o: $(JMC_GEN_DIR)/M%.h $(JMC_GEN_DIR)/M%.c
|
|
|
|
|
@$(MAKE_OBJDIR)
|
1999-02-19 03:06:32 +00:00
|
|
|
|
@$(MAKE_DEPDIR)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifeq ($(OS_ARCH),OS2)
|
|
|
|
|
$(CC) -Fo$@ -c $(CFLAGS) $(JMC_GEN_DIR)/M$*.c
|
|
|
|
|
else
|
|
|
|
|
$(CC) -o $@ -c $(CFLAGS) $(JMC_GEN_DIR)/M$*.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
export:: $(JMC_HEADERS) $(JMC_STUBS)
|
1998-07-31 20:19:50 +00:00
|
|
|
|
endif # JAVA_OR_NSJVM
|
1998-03-28 02:44:41 +00:00
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Copy each element of EXPORTS to $(XPDIST)/public/$(MODULE)/
|
|
|
|
|
#
|
|
|
|
|
ifneq ($(EXPORTS),)
|
1998-10-23 04:41:26 +00:00
|
|
|
|
$(XPDIST)/include$(INCL_SUBDIR)::
|
|
|
|
|
@if test ! -d $@; then echo Creating $@; rm -rf $@; $(NSINSTALL) -D $@; else true; fi
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
1998-10-23 04:41:26 +00:00
|
|
|
|
#
|
|
|
|
|
# INCL_SUBDIR is used for special cases like XfeWidgets/* where the
|
|
|
|
|
# headers are expected to live in subdirs.
|
|
|
|
|
#
|
|
|
|
|
export:: $(EXPORTS) $(XPDIST)/include$(INCL_SUBDIR)
|
|
|
|
|
$(INSTALL) -m 444 $^
|
1998-03-28 02:44:41 +00:00
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
################################################################################
|
1999-01-22 01:28:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifneq ($(IDLSRCS),)
|
|
|
|
|
$(XPDIST)/idl$(INCL_SUBDIR)::
|
|
|
|
|
@if test ! -d $@; then echo Creating $@; rm -rf $@; $(NSINSTALL) -D $@; else true; fi
|
|
|
|
|
|
|
|
|
|
export:: $(IDLSRCS) $(XPDIST)/idl$(INCL_SUBDIR)
|
|
|
|
|
$(INSTALL) -m 444 $^
|
|
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
1998-08-19 20:42:14 +00:00
|
|
|
|
|
|
|
|
|
ifdef USE_AUTOCONF
|
|
|
|
|
ALL_TRASH := $(filter-out $(OBJDIR), $(ALL_TRASH))
|
1998-08-27 19:52:22 +00:00
|
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
1999-01-26 23:54:59 +00:00
|
|
|
|
ifndef NO_MDUPDATE
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifneq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
|
1998-11-19 03:09:23 +00:00
|
|
|
|
-include $(DEPENDENCIES)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
# Can't use sed because of its 4000-char line length limit, so resort to perl
|
|
|
|
|
.DEFAULT:
|
|
|
|
|
@$(PERL) -e ' \
|
|
|
|
|
open(MD, "< $(DEPENDENCIES)"); \
|
|
|
|
|
while (<MD>) { \
|
|
|
|
|
if (m@ \.*/*$< @) { \
|
|
|
|
|
$$found = 1; \
|
|
|
|
|
last; \
|
|
|
|
|
} \
|
|
|
|
|
} \
|
|
|
|
|
if ($$found) { \
|
|
|
|
|
print "Removing stale dependency $< from $(DEPENDENCIES)\n"; \
|
|
|
|
|
seek(MD, 0, 0); \
|
|
|
|
|
$$tmpname = "$(OBJDIR)/fix.md" . $$$$; \
|
|
|
|
|
open(TMD, "> " . $$tmpname); \
|
|
|
|
|
while (<MD>) { \
|
|
|
|
|
s@ \.*/*$< @ @; \
|
|
|
|
|
if (!print TMD "$$_") { \
|
|
|
|
|
unlink(($$tmpname)); \
|
|
|
|
|
exit(1); \
|
|
|
|
|
} \
|
|
|
|
|
} \
|
|
|
|
|
close(TMD); \
|
|
|
|
|
if (!rename($$tmpname, "$(DEPENDENCIES)")) { \
|
|
|
|
|
unlink(($$tmpname)); \
|
|
|
|
|
} \
|
|
|
|
|
} elsif ("$<" ne "$(DEPENDENCIES)") { \
|
|
|
|
|
print "$(MAKE): *** No rule to make target $<. Stop.\n"; \
|
|
|
|
|
exit(1); \
|
|
|
|
|
}'
|
|
|
|
|
endif
|
1999-01-26 23:54:59 +00:00
|
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
|
# X dependency system
|
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
|
|
$(MKDEPENDENCIES)::
|
|
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
|
touch $(MKDEPENDENCIES)
|
1998-08-28 07:07:47 +00:00
|
|
|
|
ifdef USE_AUTOCONF
|
1999-02-09 23:24:12 +00:00
|
|
|
|
$(MKDEPEND) -p$(OBJDIR_NAME)/ -o'.o' -f$(MKDEPENDENCIES) $(DEFINES) $(AC_DEFINES) $(INCLUDES) $(addprefix $(srcdir)/,$(CSRCS) $(CPPSRCS)) >/dev/null 2>/dev/null
|
1998-08-28 22:40:14 +00:00
|
|
|
|
@mv depend.mk depend.mk.old && cat depend.mk.old | sed "s|^$(OBJDIR_NAME)/$(srcdir)/|$(OBJDIR_NAME)/|g" > depend.mk && rm -f depend.mk.old
|
1998-08-28 07:07:47 +00:00
|
|
|
|
else
|
1998-10-26 00:52:30 +00:00
|
|
|
|
$(MKDEPEND) -p$(OBJDIR_NAME)/ -o'.o' -f$(MKDEPENDENCIES) $(INCLUDES) $(CSRCS) $(CPPSRCS)
|
1998-08-28 07:07:47 +00:00
|
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
1998-12-04 05:07:01 +00:00
|
|
|
|
ifndef MOZ_NATIVE_MAKEDEPEND
|
1998-03-28 02:44:41 +00:00
|
|
|
|
$(MKDEPEND)::
|
1998-08-28 07:07:47 +00:00
|
|
|
|
cd $(DEPTH)/config; $(MAKE) nsinstall tweak_nspr
|
1998-03-28 02:44:41 +00:00
|
|
|
|
cd $(MKDEPEND_DIR); $(MAKE)
|
1998-12-04 05:07:01 +00:00
|
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
1998-09-30 11:58:59 +00:00
|
|
|
|
# Dont do the detect hackery for autoconf builds. It makes them painfully
|
|
|
|
|
# slow and its not needed anyway, since autoconf does it much better.
|
|
|
|
|
ifndef USE_AUTOCONF
|
|
|
|
|
|
1998-07-18 03:33:07 +00:00
|
|
|
|
# Rules to for detection
|
|
|
|
|
$(MOZILLA_DETECT_GEN):
|
|
|
|
|
cd $(MOZILLA_DETECT_DIR); $(MAKE)
|
|
|
|
|
|
|
|
|
|
detect: $(MOZILLA_DETECT_GEN)
|
|
|
|
|
|
1998-09-30 11:58:59 +00:00
|
|
|
|
endif
|
|
|
|
|
|
1998-12-04 05:07:01 +00:00
|
|
|
|
ifndef MOZ_NATIVE_MAKEDEPEND
|
|
|
|
|
MKDEPEND_BUILTIN = $(MKDEPEND)
|
|
|
|
|
else
|
|
|
|
|
MKDEPEND_BUILTIN =
|
|
|
|
|
endif
|
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
|
ifdef OBJS
|
1998-12-04 05:07:01 +00:00
|
|
|
|
depend:: $(MKDEPEND_BUILTIN) $(MKDEPENDENCIES)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
else
|
|
|
|
|
depend::
|
|
|
|
|
endif
|
|
|
|
|
+$(LOOP_OVER_DIRS)
|
|
|
|
|
|
|
|
|
|
dependclean::
|
|
|
|
|
rm -f $(MKDEPENDENCIES)
|
|
|
|
|
+$(LOOP_OVER_DIRS)
|
|
|
|
|
|
|
|
|
|
-include $(OBJDIR)/depend.mk
|
|
|
|
|
|
|
|
|
|
endif
|
1999-02-17 17:33:07 +00:00
|
|
|
|
#############################################################################
|
|
|
|
|
# Yet another depend system: -MD
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
1999-02-19 03:06:32 +00:00
|
|
|
|
|
|
|
|
|
MDDEPENDENCIES := $(addprefix $(OBJDIR)/.deps/,$(OBJS:.o=.pp))
|
1999-02-17 17:33:07 +00:00
|
|
|
|
|
|
|
|
|
ifdef MDDEPENDENCIES
|
|
|
|
|
-include $(MDDEPENDENCIES)
|
|
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
|
|
-include $(MY_RULES)
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# This speeds up gmake's processing if these files don't exist.
|
|
|
|
|
#
|
|
|
|
|
$(MY_CONFIG) $(MY_RULES):
|
|
|
|
|
@touch $@
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Generate Emacs tags in a file named TAGS if ETAGS was set in $(MY_CONFIG)
|
|
|
|
|
# or in $(MY_RULES)
|
|
|
|
|
#
|
|
|
|
|
ifdef ETAGS
|
1998-04-15 23:56:45 +00:00
|
|
|
|
ifneq ($(CSRCS)$(CPPSRCS)$(HEADERS),)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
all:: TAGS
|
|
|
|
|
TAGS:: $(CSRCS) $(CPPSRCS) $(HEADERS)
|
|
|
|
|
$(ETAGS) $(CSRCS) $(CPPSRCS) $(HEADERS)
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
# Special gmake rules.
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Re-define the list of default suffixes, so gmake won't have to churn through
|
|
|
|
|
# hundreds of built-in suffix rules for stuff we don't need.
|
|
|
|
|
#
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
.SUFFIXES: .out .a .ln .o .c .cc .C .cpp .y .l .s .S .h .sh .i .pl .class .java .html
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Don't delete these files if we get killed.
|
|
|
|
|
#
|
|
|
|
|
.PRECIOUS: .java $(JDK_HEADERS) $(JDK_STUBS) $(JRI_HEADERS) $(JRI_STUBS) $(JMC_HEADERS) $(JMC_STUBS)
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Fake targets. Always run these rules, even if a file/directory with that
|
|
|
|
|
# name already exists.
|
|
|
|
|
#
|
1999-02-18 18:44:48 +00:00
|
|
|
|
.PHONY: all all_platforms alltags boot checkout clean clobber clobber_all export install libs realclean run_viewer $(OBJDIR) $(DIRS)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
1998-07-31 20:19:50 +00:00
|
|
|
|
envirocheck::
|
|
|
|
|
@echo -----------------------------------
|
|
|
|
|
@echo "Enviro-Check (tm)"
|
|
|
|
|
@echo -----------------------------------
|
|
|
|
|
@echo "MOZILLA_CLIENT = $(MOZILLA_CLIENT)"
|
|
|
|
|
@echo "NO_MDUPDATE = $(NO_MDUPDATE)"
|
|
|
|
|
@echo "BUILD_OPT = $(BUILD_OPT)"
|
|
|
|
|
@echo "MOZ_LITE = $(MOZ_LITE)"
|
|
|
|
|
@echo "MOZ_MEDIUM = $(MOZ_MEDIUM)"
|
|
|
|
|
@echo -----------------------------------
|