1998-03-28 05:44:41 +03: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.
|
|
|
|
|
|
|
|
!if !defined(VERBOSE)
|
|
|
|
.SILENT:
|
|
|
|
!endif
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// This makefile contains all of the common rules shared by all other
|
|
|
|
#// makefiles.
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
!if !defined(CONFIG_RULES_MAK)
|
|
|
|
CONFIG_RULES_MAK=1
|
|
|
|
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// Assumed variables by the manifest.
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
!if !defined(PACKAGE)
|
|
|
|
PACKAGE=.
|
|
|
|
!endif # PACKAGE
|
|
|
|
|
|
|
|
!if !defined(JDK_GEN_DIR)
|
|
|
|
JDK_GEN_DIR=_gen
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if !defined(JDK_STUB_DIR)
|
|
|
|
JDK_STUB_DIR=_stubs
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if !defined(JMC_GEN_DIR)
|
1998-08-01 03:41:45 +04:00
|
|
|
!if defined(JAVA_OR_NSJVM)
|
1998-03-28 05:44:41 +03:00
|
|
|
JMC_GEN_DIR=_jmc
|
|
|
|
!else
|
|
|
|
JMC_GEN_DIR=$(LOCAL_JMC_SUBDIR)
|
|
|
|
!endif
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if !defined(JRI_GEN_DIR)
|
|
|
|
JRI_GEN_DIR=_jri
|
|
|
|
!endif
|
|
|
|
|
1998-08-01 03:41:45 +04:00
|
|
|
!if !defined(JNI_GEN_DIR)
|
|
|
|
JNI_GEN_DIR=_jni
|
|
|
|
!endif
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
MANIFEST_LEVEL=MACROS
|
|
|
|
!IF EXIST(manifest.mn) && !defined(IGNORE_MANIFEST)
|
1998-04-08 00:41:06 +04:00
|
|
|
!IF "$(WINOS)" == "WIN95"
|
1998-04-22 01:22:54 +04:00
|
|
|
!IF [$(DEPTH)\config\mantomak.exe manifest.mn manifest.mnw] == 0
|
1998-04-08 00:41:06 +04:00
|
|
|
!INCLUDE <manifest.mnw>
|
|
|
|
!ELSE
|
|
|
|
!ERROR ERROR: Unable to generate manifest.mnw from manifest.mn
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
1998-04-22 01:22:54 +04:00
|
|
|
!IF ["$(DEPTH)\config\mantomak.exe manifest.mn manifest.mnw"] == 0
|
1998-03-28 05:44:41 +03:00
|
|
|
!INCLUDE <manifest.mnw>
|
|
|
|
!ELSE
|
|
|
|
!ERROR ERROR: Unable to generate manifest.mnw from manifest.mn
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
1998-04-08 00:41:06 +04:00
|
|
|
!ENDIF
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// Make sure that JDIRS is set after the manifest file is included
|
|
|
|
#// and before the rules for JDIRS get generated. We cannot put this line
|
|
|
|
#// in the makefile.win after including rules.mak as the rules would already
|
|
|
|
#// be generated based on JDIRS set in manifest.mn. We cannot put in ifdefs in
|
|
|
|
#// manifest.mn too I was told.
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
!ifdef JDIRS
|
|
|
|
JDIRS=$(JDIRS) $(JSCD)
|
|
|
|
!if "$(STAND_ALONE_JAVA)" == "1"
|
|
|
|
JDIRS=$(JDIRS) $(SAJDIRS)
|
|
|
|
!endif
|
|
|
|
!endif
|
|
|
|
|
|
|
|
|
|
|
|
!if "$(MOZ_BITS)" == "16"
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// All public win16 headers go to a single directory
|
|
|
|
#// due to compiler limitations.
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
MODULE=win16
|
|
|
|
!endif # 16
|
|
|
|
|
|
|
|
|
|
|
|
OBJS=$(OBJS) $(C_OBJS) $(CPP_OBJS)
|
|
|
|
|
|
|
|
include <$(DEPTH)/config/config.mak>
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Specify a default target if non was set...
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
!ifndef TARGETS
|
|
|
|
TARGETS=$(PROGRAM) $(LIBRARY) $(DLL)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifndef MAKE_ARGS
|
|
|
|
#MAKE_ARGS=all
|
|
|
|
!endif
|
|
|
|
|
1998-04-08 00:41:06 +04:00
|
|
|
!if "$(WINOS)" == "WIN95"
|
1998-04-22 01:22:54 +04:00
|
|
|
W95MAKE=$(DEPTH)\config\w95make.exe
|
1998-04-08 00:41:06 +04:00
|
|
|
W32OBJS = $(OBJS:.obj=.obj, )
|
|
|
|
W32LOBJS = $(OBJS: .= +-.)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
all::
|
|
|
|
$(NMAKE) -f makefile.win export
|
|
|
|
$(NMAKE) -f makefile.win libs
|
|
|
|
$(NMAKE) -f makefile.win install
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Setup tool flags for the appropriate type of objects being built
|
|
|
|
#// (either DLL or EXE)
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
!if "$(MAKE_OBJ_TYPE)" == "DLL"
|
|
|
|
CFLAGS=$(DLL_CFLAGS) $(CFLAGS)
|
|
|
|
LFLAGS=$(DLL_LFLAGS) $(LFLAGS)
|
|
|
|
OS_LIBS=$(DLL_LIBS) $(OS_LIBS)
|
|
|
|
!else
|
|
|
|
CFLAGS=$(EXE_CFLAGS) $(CFLAGS)
|
|
|
|
LFLAGS=$(EXE_LFLAGS) $(LFLAGS)
|
|
|
|
OS_LIBS=$(EXE_LIBS) $(OS_LIBS)
|
|
|
|
!endif
|
|
|
|
|
1999-03-06 02:24:48 +03:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Use various library names as default name for PDB Files
|
|
|
|
#//
|
|
|
|
#// LIBRARY_NAME - Static Library
|
|
|
|
#// DLLNAME - Dynamic Load Library
|
|
|
|
#//
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# Replace optimizer and pdb related flags to use our own conventions
|
|
|
|
!ifdef LIBRARY_NAME
|
|
|
|
PDBFILE=$(LIBRARY_NAME)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
# Replace optimizer and pdb related flags to use our own conventions
|
|
|
|
!ifdef DLLNAME
|
|
|
|
PDBFILE=$(DLLNAME)
|
|
|
|
!endif
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Prepend the "object directory" to any public make variables.
|
|
|
|
#// PDBFILE - File containing debug info
|
|
|
|
#// RESFILE - Compiled resource file
|
|
|
|
#// MAPFILE - MAP file for an executable
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
!ifdef PDBFILE
|
1999-03-09 01:40:17 +03:00
|
|
|
PDBFILE=.\$(OBJDIR)\$(PDBFILE).pdb
|
1998-03-28 05:44:41 +03:00
|
|
|
!else
|
1999-03-06 02:24:48 +03:00
|
|
|
PDBFILE=.\$(OBJDIR)\default
|
1998-03-28 05:44:41 +03:00
|
|
|
!endif
|
|
|
|
!ifdef RESFILE
|
|
|
|
RESFILE=.\$(OBJDIR)\$(RESFILE)
|
|
|
|
!endif
|
|
|
|
!ifdef MAPFILE
|
|
|
|
MAPFILE=.\$(OBJDIR)\$(MAPFILE)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifdef DIRS
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Rule to recursively make all subdirectories specified by the DIRS target
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
$(DIRS)::
|
1998-04-08 00:41:06 +04:00
|
|
|
!if "$(WINOS)" == "WIN95"
|
1998-10-15 16:38:26 +04:00
|
|
|
!if defined(VERBOSE)
|
1998-04-08 00:41:06 +04:00
|
|
|
@echo +++ make: cannot recursively make on win95 using command.com, use w95make.
|
1998-10-15 16:38:26 +04:00
|
|
|
!endif
|
1998-04-08 00:41:06 +04:00
|
|
|
!else
|
1998-03-28 05:44:41 +03:00
|
|
|
@echo +++ make: %MAKE_ARGS% in $(MAKEDIR)\$@
|
|
|
|
@cd $@
|
|
|
|
@$(NMAKE) -f makefile.win %%MAKE_ARGS%%
|
|
|
|
@cd $(MAKEDIR)
|
1998-04-08 00:41:06 +04:00
|
|
|
!endif
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
!endif # DIRS
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Created directories
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
$(JAVA_DESTPATH):
|
|
|
|
!if "$(AWT_11)" == "1"
|
|
|
|
-mkdir $(XPDIST:/=\)\classes11
|
|
|
|
!else
|
|
|
|
-mkdir $(XPDIST:/=\)\classes
|
|
|
|
!endif
|
|
|
|
|
|
|
|
$(JAVA_DESTPATH)\$(PACKAGE): $(JAVA_DESTPATH)
|
|
|
|
!if "$(AWT_11)" == "1"
|
|
|
|
-mkdir $(XPDIST:/=\)\classes11\$(PACKAGE:/=\)
|
|
|
|
!else
|
|
|
|
-mkdir $(XPDIST:/=\)\classes\$(PACKAGE:/=\)
|
|
|
|
!endif
|
|
|
|
$(JMCSRCDIR):
|
|
|
|
-mkdir $(JMCSRCDIR)
|
|
|
|
|
1999-06-12 08:30:44 +04:00
|
|
|
$(PUBLIC):
|
1999-06-03 22:34:27 +04:00
|
|
|
-mkdir $(XPDIST:/=\)\include
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
!ifdef IDL_GEN
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// IDL Stuff
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
idl::
|
|
|
|
@echo +++ make: Starting osagent
|
|
|
|
@start $(DEPTH)\modules\iiop\tools\win32\osagent
|
|
|
|
@echo +++ make: idl2java $(IDL_GEN)
|
|
|
|
@type <<cmd.cfg
|
|
|
|
$(IDL2JAVA_FLAGS) $(IDL_GEN)
|
|
|
|
<<
|
|
|
|
@$(IDL2JAVA_PROG) -argfile cmd.cfg
|
|
|
|
@del cmd.cfg
|
|
|
|
|
|
|
|
!endif # IDL_GEN
|
|
|
|
|
|
|
|
TMPDIR=$(MOZ_SRC)\tmp
|
|
|
|
$(TMPDIR):
|
|
|
|
-mkdir $(TMPDIR)
|
|
|
|
|
|
|
|
!ifdef JDIRS
|
1998-08-01 03:41:45 +04:00
|
|
|
!if defined(JAVA_OR_NSJVM)
|
1998-03-28 05:44:41 +03:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Rule to recursively make all subdirectories specified by the JDIRS target
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
export:: $(JAVA_DESTPATH) $(JDIRS)
|
|
|
|
|
|
|
|
$(JDIRS):: $(JAVA_DESTPATH) $(TMPDIR)
|
|
|
|
|
1998-04-08 00:41:06 +04:00
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
JDIRS = $(JDIRS:/=\)
|
|
|
|
!endif
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
!if defined(NO_CAFE)
|
|
|
|
|
|
|
|
$(JDIRS)::
|
|
|
|
@echo +++ make: building package: $@
|
|
|
|
@echo $(JAVAC_PROG) $(JAVAC_FLAGS) > $(TMPDIR)\javac.cfg
|
|
|
|
-@$(DEPTH)\config\buildpkg $(TMPDIR)\javac.cfg $@
|
|
|
|
@$(RM) $(TMPDIR)\javac.cfg
|
1998-04-22 01:22:54 +04:00
|
|
|
# @$(DEPTH)\config\buildpkg $@ $(DEPTH)\dist\classes
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
!else
|
|
|
|
|
|
|
|
# compile using symantec cafe's super-speedy compiler!
|
|
|
|
$(JDIRS)::
|
|
|
|
@echo +++ make: building package $@
|
1998-04-08 00:41:06 +04:00
|
|
|
!if "$(WINOS)" == "WIN95"
|
1998-04-22 01:22:54 +04:00
|
|
|
-@$(MKDIR) $(DEPTH)\dist\classes\$(@:/=\)
|
1998-04-08 00:41:06 +04:00
|
|
|
!else
|
1998-04-22 01:22:54 +04:00
|
|
|
-@$(MKDIR) $(DEPTH)\dist\classes\$@ 2> NUL
|
1998-04-08 00:41:06 +04:00
|
|
|
!endif
|
1998-03-28 05:44:41 +03:00
|
|
|
$(MOZ_TOOLS)\bin\sj -classpath $(JAVA_DESTPATH);$(JAVA_SOURCEPATH) \
|
|
|
|
-d $(JAVA_DESTPATH) $(JAVAC_OPTIMIZER) $@\*.java
|
|
|
|
|
|
|
|
|
|
|
|
!endif # NO_CAFE
|
|
|
|
|
|
|
|
clobber::
|
|
|
|
-for %g in ($(JDIRS)) do $(RM_R) $(XPDIST:/=\)/classes/%g
|
|
|
|
|
1998-08-01 03:41:45 +04:00
|
|
|
!endif # JAVA_OR_NSJVM
|
1998-03-28 05:44:41 +03:00
|
|
|
!endif # JDIRS
|
|
|
|
|
|
|
|
!if defined(INSTALL_FILE_LIST) && defined(INSTALL_DIR)
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Rule to install the files specified by the INSTALL_FILE_LIST variable
|
|
|
|
#// into the directory specified by the INSTALL_DIR variable
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
!if "$(MOZ_BITS)" == "16"
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// All public win16 headers go to a single directory
|
|
|
|
#// due to compiler limitations.
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
INSTALL_DIR=$(PUBLIC)\win16
|
|
|
|
!endif # 16
|
|
|
|
INSTALL_FILES: $(INSTALL_FILE_LIST)
|
|
|
|
!$(MAKE_INSTALL) $** $(INSTALL_DIR)
|
|
|
|
|
|
|
|
!endif # INSTALL_FILES
|
|
|
|
|
|
|
|
!ifdef LIBRARY_NAME
|
|
|
|
LIBRARY=$(OBJDIR)\$(LIBRARY_NAME)$(LIBRARY_SUFFIX).lib
|
|
|
|
!endif
|
|
|
|
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Global rules...
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#//
|
|
|
|
#// Set the MAKE_ARGS variable to indicate the target being built... This is used
|
|
|
|
#// when processing subdirectories via the $(DIRS) rule
|
|
|
|
#//
|
1998-04-08 00:41:06 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Nasty hack to get around the win95 shell's inability to set
|
|
|
|
# environment variables whilst in a set of target commands
|
|
|
|
#
|
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
|
|
|
|
clean::
|
|
|
|
!ifdef DIRS
|
|
|
|
@$(W95MAKE) clean $(MAKEDIR) $(DIRS)
|
|
|
|
!endif
|
|
|
|
-$(RM) $(OBJS) $(NOSUCHFILE) NUL 2> NUL
|
|
|
|
|
|
|
|
clobber::
|
|
|
|
!ifdef DIRS
|
|
|
|
@$(W95MAKE) clobber $(MAKEDIR) $(DIRS)
|
|
|
|
!endif
|
|
|
|
-$(RM_R) $(GARBAGE) $(OBJDIR) 2> NUL
|
|
|
|
|
|
|
|
clobber_all::
|
|
|
|
!ifdef DIRS
|
|
|
|
@$(W95MAKE) clobber_all $(MAKEDIR) $(DIRS)
|
|
|
|
!endif
|
|
|
|
-$(RM_R) *.OBJ $(TARGETS) $(GARBAGE) $(OBJDIR) 2> NUL
|
|
|
|
|
|
|
|
|
|
|
|
export::
|
|
|
|
!ifdef DIRS
|
|
|
|
@$(W95MAKE) export $(MAKEDIR) $(DIRS)
|
|
|
|
!endif # DIRS
|
|
|
|
|
|
|
|
libs:: w95libs $(LIBRARY)
|
|
|
|
|
|
|
|
w95libs::
|
|
|
|
!ifdef DIRS
|
|
|
|
@$(W95MAKE) libs $(MAKEDIR) $(DIRS)
|
|
|
|
!endif # DIRS
|
|
|
|
|
|
|
|
install::
|
|
|
|
!ifdef DIRS
|
|
|
|
@$(W95MAKE) install $(MAKEDIR) $(DIRS)
|
|
|
|
!endif # DIRS
|
|
|
|
|
|
|
|
depend::
|
|
|
|
!ifdef DIRS
|
|
|
|
@$(W95MAKE) depend $(MAKEDIR) $(DIRS)
|
|
|
|
!endif # DIRS
|
|
|
|
|
|
|
|
mangle::
|
|
|
|
!ifdef DIRS
|
|
|
|
@$(W95MAKE) mangle $(MAKEDIR) $(DIRS)
|
|
|
|
!endif # DIRS
|
|
|
|
$(MAKE_MANGLE)
|
|
|
|
|
|
|
|
unmangle::
|
|
|
|
!ifdef DIRS
|
|
|
|
@$(W95MAKE) unmangle $(MAKEDIR) $(DIRS)
|
|
|
|
!endif # DIRS
|
|
|
|
-$(MAKE_UNMANGLE)
|
|
|
|
|
|
|
|
!else
|
|
|
|
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
clean::
|
|
|
|
@set MAKE_ARGS=$@
|
|
|
|
|
|
|
|
clobber::
|
|
|
|
@set MAKE_ARGS=$@
|
|
|
|
|
|
|
|
clobber_all::
|
|
|
|
@set MAKE_ARGS=$@
|
|
|
|
|
|
|
|
export::
|
|
|
|
@set MAKE_ARGS=$@
|
|
|
|
|
|
|
|
libs::
|
|
|
|
@set MAKE_ARGS=$@
|
|
|
|
|
|
|
|
install::
|
|
|
|
@set MAKE_ARGS=$@
|
|
|
|
|
|
|
|
mangle::
|
|
|
|
@set MAKE_ARGS=$@
|
|
|
|
|
|
|
|
unmangle::
|
|
|
|
@set MAKE_ARGS=$@
|
|
|
|
|
|
|
|
depend::
|
|
|
|
@set MAKE_ARGS=$@
|
|
|
|
|
1998-04-08 00:41:06 +04:00
|
|
|
!endif
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// DEPEND
|
1999-06-05 06:02:10 +04:00
|
|
|
#//
|
|
|
|
#// If you ever need to change the set of includes (e.g., you go whack
|
|
|
|
#// the build rules over in obj.inc), make sure to update the input
|
|
|
|
#// to $(MAKEDEP). It only looks through the directories that you tell
|
|
|
|
#// it to.
|
|
|
|
#//
|
1998-03-28 05:44:41 +03:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
1999-02-19 01:26:31 +03:00
|
|
|
MAKEDEP=$(MOZ_SRC)\mozilla\config\makedep.exe
|
1998-03-28 05:44:41 +03:00
|
|
|
MAKEDEPFILE=.\$(OBJDIR:/=\)\make.dep
|
|
|
|
|
|
|
|
MAKEDEPDETECT=$(OBJS)
|
|
|
|
MAKEDEPDETECT=$(MAKEDEPDETECT: =)
|
|
|
|
MAKEDEPDETECT=$(MAKEDEPDETECT: =)
|
|
|
|
|
|
|
|
!if !defined(NODEPEND) && "$(MAKEDEPDETECT)" != ""
|
|
|
|
|
|
|
|
depend:: $(OBJDIR)
|
1999-02-19 02:18:40 +03:00
|
|
|
@echo Analyzing dependencies...
|
1998-03-28 05:44:41 +03:00
|
|
|
$(MAKEDEP) -s -o $(MAKEDEPFILE) @<<
|
|
|
|
$(LINCS)
|
1999-06-05 06:02:10 +04:00
|
|
|
$(LINCS_1)
|
|
|
|
$(INCS)
|
1999-07-14 23:18:53 +04:00
|
|
|
-I$(MAKEDIR)
|
1998-03-28 05:44:41 +03:00
|
|
|
$(OBJS)
|
|
|
|
<<
|
|
|
|
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!IF EXIST($(MAKEDEPFILE))
|
|
|
|
!INCLUDE <$(MAKEDEPFILE)>
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
export:: $(DIRS)
|
|
|
|
|
|
|
|
libs:: $(DIRS) $(LIBRARY)
|
|
|
|
|
|
|
|
install:: $(DIRS)
|
|
|
|
|
|
|
|
depend:: $(DIRS)
|
|
|
|
|
|
|
|
mangle:: $(DIRS)
|
|
|
|
$(MAKE_MANGLE)
|
|
|
|
|
|
|
|
unmangle:: $(DIRS)
|
|
|
|
-$(MAKE_UNMANGLE)
|
|
|
|
|
|
|
|
|
1999-03-09 12:44:27 +03:00
|
|
|
alltags::
|
|
|
|
echo Making emacs tags
|
1999-06-08 11:43:32 +04:00
|
|
|
c:\\mksnt\\find . -name dist -prune -o ( -name '*.[hc]' -o -name '*.cpp' -o -name '*.idl' ) -print | c:\\mksnt\\xargs etags -a
|
1999-03-09 12:44:27 +03:00
|
|
|
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Rule to create the object directory (if necessary)
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
$(OBJDIR):
|
|
|
|
@echo +++ make: Creating directory: $(OBJDIR)
|
|
|
|
echo.
|
|
|
|
-mkdir $(OBJDIR)
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Include the makefile for building the various targets...
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
include <$(DEPTH)/config/obj.inc>
|
|
|
|
include <$(DEPTH)/config/exe.inc>
|
|
|
|
include <$(DEPTH)/config/dll.inc>
|
|
|
|
include <$(DEPTH)/config/lib.inc>
|
|
|
|
include <$(DEPTH)/config/java.inc>
|
|
|
|
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// JMC
|
|
|
|
#//
|
|
|
|
#// JSRCS .java files to be compiled (.java extension included)
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
1998-08-01 03:41:45 +04:00
|
|
|
!if defined(JAVA_OR_NSJVM)
|
1998-03-28 05:44:41 +03:00
|
|
|
!if defined(JSRCS)
|
|
|
|
|
|
|
|
JSRCS_DEPS = $(JAVA_DESTPATH) $(JAVA_DESTPATH)\$(PACKAGE) $(TMPDIR)
|
|
|
|
|
|
|
|
# Can't get moz cafe to compile a single file
|
|
|
|
!if defined(NO_CAFE)
|
|
|
|
|
|
|
|
export:: $(JSRCS_DEPS)
|
|
|
|
@echo +++ make: building package: $(PACKAGE)
|
1999-02-19 01:51:05 +03:00
|
|
|
$(PERL) $(DEPTH)\config\outofdate.pl \
|
1998-03-28 05:44:41 +03:00
|
|
|
-d $(JAVA_DESTPATH)\$(PACKAGE) $(JSRCS) >> $(TMPDIR)\javac.cfg
|
|
|
|
-$(JAVAC_PROG) -argfile $(TMPDIR)\javac.cfg
|
|
|
|
@$(RM) $(TMPDIR)\javac.cfg
|
|
|
|
!else
|
|
|
|
|
|
|
|
# compile using symantec cafe's super-speedy compiler!
|
|
|
|
export:: $(JSRC_DEPS)
|
|
|
|
@echo +++ make: building package: $(PACKAGE)
|
|
|
|
@echo -d $(JAVA_DESTPATH) $(JAVAC_OPTIMIZER) \
|
|
|
|
-classpath $(JAVA_DESTPATH);$(JAVA_SOURCEPATH) > $(TMPDIR)\javac.cfg
|
1999-02-19 01:51:05 +03:00
|
|
|
@$(PERL) $(DEPTH)\config\sj.pl \
|
1998-03-28 05:44:41 +03:00
|
|
|
$(JAVA_DESTPATH)\$(PACKAGE)\ $(TMPDIR)\javac.cfg <<
|
|
|
|
$(JSRCS)
|
|
|
|
<<
|
|
|
|
|
|
|
|
!endif #NO_CAFE
|
|
|
|
|
|
|
|
clobber::
|
|
|
|
-for %g in ($(JSRCS:.java=.class)) do $(RM) $(XPDIST:/=\)/classes/$(PACKAGE:/=\)/%g
|
|
|
|
|
|
|
|
!endif # JSRCS
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// JMC
|
|
|
|
#//
|
|
|
|
#// JMC_EXPORT .class files to be copied from XPDIST/classes/PACKAGE to
|
|
|
|
#// XPDIST/jmc (without the .class extension)
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
!if defined(JMC_EXPORT)
|
|
|
|
export:: $(JMCSRCDIR)
|
|
|
|
for %g in ($(JMC_EXPORT)) do $(MAKE_INSTALL:/=\) $(JAVA_DESTPATH)\$(PACKAGE:/=\)\%g.class $(JMCSRCDIR)
|
|
|
|
|
|
|
|
clobber::
|
|
|
|
-for %f in ($(JMC_EXPORT)) do $(RM) $(JMCSRCDIR:/=\)\%f.class
|
|
|
|
!endif # JMC_EXPORT
|
1998-08-01 03:41:45 +04:00
|
|
|
!endif # JAVA_OR_NSJVM
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// JMC
|
|
|
|
#//
|
|
|
|
#// JMC_GEN Names of classes to be run through JMC
|
|
|
|
#// Generated .h and .c files go to JMC_GEN_DIR
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
1998-08-01 03:41:45 +04:00
|
|
|
!if defined(JAVA_OR_NSJVM)
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
!if defined(JMC_GEN)
|
|
|
|
export:: $(JMC_HEADERS)
|
|
|
|
|
|
|
|
# Don't delete them if they don't compile (makes it hard to debug)
|
|
|
|
.PRECIOUS: $(JMC_HEADERS) $(JMC_STUBS)
|
|
|
|
|
|
|
|
|
|
|
|
# They may want to generate/compile the stubs
|
|
|
|
!if defined(CCJMC)
|
|
|
|
{$(JMC_GEN_DIR)\}.c{$(OBJDIR)\}.obj:
|
|
|
|
@$(CC) @<<$(CFGFILE)
|
|
|
|
-c $(CFLAGS)
|
|
|
|
-I. -I$(JMC_GEN_DIR)
|
|
|
|
-Fd$(PDBFILE)
|
|
|
|
-Fo.\$(OBJDIR)\
|
|
|
|
$(JMC_GEN_DIR)\$(*B).c
|
|
|
|
<<KEEP
|
|
|
|
|
|
|
|
export:: $(JMC_STUBS) $(OBJDIR) $(JMC_OBJS)
|
|
|
|
|
|
|
|
!endif # CCJMC
|
|
|
|
!endif # JMC_GEN
|
1998-08-01 03:41:45 +04:00
|
|
|
!endif # JAVA_OR_NSJVM
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// JMC
|
|
|
|
#//
|
|
|
|
#// EXPORTS Names of headers to be copied to MODULE
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
1999-02-05 01:56:58 +03:00
|
|
|
!if "$(EXPORTS)" != "$(NULL)"
|
1999-06-12 08:30:44 +04:00
|
|
|
export:: $(PUBLIC)
|
1999-06-03 22:34:27 +04:00
|
|
|
for %f in ($(EXPORTS)) do $(MAKE_INSTALL:/=\) %f $(XPDIST:/=\)\include
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
clobber::
|
1999-06-03 22:34:27 +04:00
|
|
|
-for %g in ($(EXPORTS)) do $(RM) $(XPDIST:/=\)\include\%g
|
1999-05-11 23:45:58 +04:00
|
|
|
clobber_all:: clobber
|
1998-03-28 05:44:41 +03:00
|
|
|
!endif # EXPORTS
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// These rules must follow all lines that define the macros they use
|
|
|
|
#//------------------------------------------------------------------------
|
1998-08-01 03:41:45 +04:00
|
|
|
!if defined(JAVA_OR_NSJVM)
|
1998-03-28 05:44:41 +03:00
|
|
|
GARBAGE = $(JMC_GEN_DIR) $(JMC_HEADERS) $(JMC_STUBS) \
|
1998-09-17 22:12:36 +04:00
|
|
|
$(JDK_STUB_DIR) $(JRI_GEN_DIR) $(JDK_GEN_DIR) $(JNI_GEN_DIR)
|
1998-03-28 05:44:41 +03:00
|
|
|
!endif
|
|
|
|
|
|
|
|
|
|
|
|
clean:: $(DIRS)
|
|
|
|
-$(RM) $(OBJS) $(NOSUCHFILE) NUL 2> NUL
|
|
|
|
|
|
|
|
clobber:: $(DIRS)
|
|
|
|
-$(RM_R) $(GARBAGE) $(OBJDIR) 2> NUL
|
|
|
|
|
|
|
|
clobber_all:: $(DIRS)
|
|
|
|
-$(RM_R) *.OBJ $(TARGETS) $(GARBAGE) $(OBJDIR) 2> NUL
|
|
|
|
|
|
|
|
MANIFEST_LEVEL=RULES
|
|
|
|
!IF EXIST(manifest.mnw) && !defined(IGNORE_MANIFEST)
|
|
|
|
!INCLUDE <manifest.mnw>
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!if "$(MOZ_BITS)"=="32"
|
|
|
|
CFLAGS = $(CFLAGS) -DNO_JNI_STUBS
|
|
|
|
!endif
|
|
|
|
|
1999-05-10 22:49:20 +04:00
|
|
|
!if "$(XPIDLSRCS)" != "$(NULL)"
|
|
|
|
!if "$(MODULE)" != "$(NULL)"
|
|
|
|
|
|
|
|
# Generate header files and type libraries from the XPIDLSRCS variable.
|
|
|
|
|
|
|
|
.SUFFIXES: .idl .xpt
|
|
|
|
|
|
|
|
# XXX Note the direct use of '.\_xpidlgen' instead of
|
|
|
|
# $(XPIDL_GEN_DIR). 'nmake' is too stupid to deal with recursive macro
|
|
|
|
# substitution.
|
|
|
|
|
|
|
|
XPIDL_INCLUDES=$(XPIDL_INCLUDES) -I$(XPDIST)\idl
|
|
|
|
|
|
|
|
XPIDL_HEADERS=$(XPIDLSRCS:.idl=.h)
|
|
|
|
XPIDL_HEADERS=$(XPIDL_HEADERS:.\=.\_xpidlgen\)
|
|
|
|
|
1999-05-12 09:15:12 +04:00
|
|
|
!ifndef NO_GEN_XPT
|
1999-05-10 22:49:20 +04:00
|
|
|
XPIDL_TYPELIBS=$(XPIDLSRCS:.idl=.xpt)
|
|
|
|
XPIDL_TYPELIBS=$(XPIDL_TYPELIBS:.\=.\_xpidlgen\)
|
|
|
|
|
|
|
|
.idl{$(XPIDL_GEN_DIR)}.xpt:
|
1999-06-15 15:14:49 +04:00
|
|
|
$(XPIDL_PROG) -m typelib -w $(XPIDL_INCLUDES) -o $* $<
|
1999-05-10 22:49:20 +04:00
|
|
|
|
1999-06-03 22:34:27 +04:00
|
|
|
!ifndef XPIDL_MODULE
|
|
|
|
XPIDL_MODULE = $(MODULE)
|
1999-05-26 05:38:36 +04:00
|
|
|
!endif
|
|
|
|
|
1999-06-03 22:34:27 +04:00
|
|
|
TYPELIB = $(XPIDL_GEN_DIR)\$(XPIDL_MODULE).xpt
|
1999-05-10 22:49:20 +04:00
|
|
|
|
|
|
|
$(TYPELIB): $(XPIDL_TYPELIBS)
|
|
|
|
@echo +++ make: Creating typelib: $(TYPELIB)
|
|
|
|
@echo.
|
|
|
|
$(XPTLINK_PROG) $(TYPELIB) $(XPIDL_TYPELIBS)
|
1999-05-12 09:15:12 +04:00
|
|
|
!endif
|
|
|
|
|
|
|
|
$(XPIDL_GEN_DIR):
|
|
|
|
@echo +++ make: Creating directory: $(XPIDL_GEN_DIR)
|
|
|
|
echo.
|
|
|
|
-mkdir $(XPIDL_GEN_DIR)
|
|
|
|
|
|
|
|
.idl{$(XPIDL_GEN_DIR)}.h:
|
1999-06-15 15:14:49 +04:00
|
|
|
$(XPIDL_PROG) -m header -w $(XPIDL_INCLUDES) -o $* $<
|
1999-05-12 09:15:12 +04:00
|
|
|
|
1999-05-10 22:49:20 +04:00
|
|
|
|
|
|
|
$(DIST)\include:
|
|
|
|
@echo +++ make: Creating directory: $(DIST)\include
|
|
|
|
@echo.
|
|
|
|
-mkdir $(DIST)\include
|
|
|
|
|
|
|
|
$(XPDIST)\idl:
|
|
|
|
@echo +++ make: Creating directory: $(XPDIST)\idl
|
|
|
|
@echo.
|
|
|
|
-mkdir $(XPDIST)\idl
|
|
|
|
|
|
|
|
export:: $(XPDIST)\idl
|
|
|
|
@echo +++ make: exporting IDL files
|
|
|
|
@echo.
|
1999-05-11 23:45:58 +04:00
|
|
|
-for %i in ($(XPIDLSRCS:/=\)) do $(MAKE_INSTALL) %i $(XPDIST)\idl
|
1999-05-10 22:49:20 +04:00
|
|
|
|
1999-06-12 08:30:44 +04:00
|
|
|
export:: $(XPIDL_GEN_DIR) $(XPIDL_HEADERS) $(PUBLIC)
|
1999-05-10 22:49:20 +04:00
|
|
|
@echo +++ make: exporting generated XPIDL header files
|
|
|
|
@echo.
|
1999-06-12 08:30:44 +04:00
|
|
|
-for %i in ($(XPIDL_HEADERS:/=\)) do $(MAKE_INSTALL) %i $(PUBLIC)
|
1999-05-10 22:49:20 +04:00
|
|
|
|
1999-05-12 09:15:12 +04:00
|
|
|
!ifndef NO_GEN_XPT
|
1999-05-10 22:49:20 +04:00
|
|
|
install:: $(XPIDL_GEN_DIR) $(TYPELIB)
|
|
|
|
@echo +++ make: installing typelib '$(TYPELIB)' to components directory
|
|
|
|
@echo.
|
|
|
|
$(MAKE_INSTALL) $(TYPELIB) $(DIST)\bin\components
|
1999-05-12 09:15:12 +04:00
|
|
|
!endif
|
1999-05-10 22:49:20 +04:00
|
|
|
|
|
|
|
GARBAGE=$(GARBAGE) $(XPIDL_GEN_DIR) $(DIST)\bin\components\$(MODULE).xpt
|
|
|
|
|
1999-05-14 00:39:02 +04:00
|
|
|
clobber::
|
1999-06-03 23:01:19 +04:00
|
|
|
-for %g in ($(XPIDLSRCS:.idl=.h)) do $(RM) $(XPDIST:/=\)\include\%g
|
1999-05-14 00:39:02 +04:00
|
|
|
-$(RM_R) $(GARBAGE) 2> NUL
|
|
|
|
|
|
|
|
clobber_all::
|
1999-06-03 23:01:19 +04:00
|
|
|
-for %g in ($(XPIDLSRCS:.idl=.h)) do $(RM) $(XPDIST:/=\)\include\%g
|
1999-05-14 00:39:02 +04:00
|
|
|
-$(RM_R) $(GARBAGE) 2> NUL
|
|
|
|
|
1999-05-26 05:38:36 +04:00
|
|
|
GARBAGE=$(GARBAGE) $(XPIDL_GEN_DIR) $(DIST)\bin\components\$(XPIDL_MODULE).xpt
|
|
|
|
|
1999-05-10 22:49:20 +04:00
|
|
|
!endif
|
|
|
|
!endif
|
|
|
|
|
1999-07-24 07:33:37 +04:00
|
|
|
# Generate chrome building rules.
|
|
|
|
#
|
|
|
|
# You need to set these in your makefile.win to utilize this support:
|
|
|
|
# CHROME_DIR - specifies the chrome subdirectory where your chrome files
|
|
|
|
# go; e.g., CHROME_DIR=navigator or CHROME_DIR=global
|
|
|
|
#
|
|
|
|
# Note: All file listed in the next three macros MUST be prefaced with .\ (or ./)!
|
|
|
|
#
|
|
|
|
# CHROME_CONTENT - list of chrome content files; these can be prefaced with
|
|
|
|
# arbitrary paths; e.g., CHROME_CONTENT=./content/default/foobar.xul
|
|
|
|
# CHROME_SKIN - list of skin files
|
|
|
|
# CHROME_L10N - list of localization files, e.g., CHROME_L10N=./locale/en-US/foobar.dtd
|
|
|
|
#
|
|
|
|
# These macros are optional, if not specified, each defaults to ".".
|
|
|
|
# CHROME_CONTENT_DIR - specifies chrome subdirectory where content files will be
|
|
|
|
# installed; this path is inserted between $(CHROME_DIR) and
|
|
|
|
# the path you specify in each $(CHROME_CONTENT) entry; i.e.,
|
|
|
|
# for CHROME_CONTENT=./content/default/foobar.xul, it will be
|
|
|
|
# installed into:
|
|
|
|
# $(DIST)\bin\chrome\$(CHROME_DIR)\$(CHROME_CONTENT_DIR)\content\default\foobar.xul.
|
|
|
|
# e.g., CHROME_DIR=global
|
|
|
|
# CHROME_CONTENT_DIR=content\default
|
|
|
|
# CHROME_CONTENT=.\foobar.xul
|
|
|
|
# will install foobar.xul into content/default (even though it
|
|
|
|
# resides in content/foobar.xul (no default) in the source tree.
|
|
|
|
# But note that such usage must be put in a makefile.win that
|
|
|
|
# itself resides in the content directory (i.e., it can't reside
|
|
|
|
# up a level, since then CHROME_CONTENT=./content/foobar.xul which
|
|
|
|
# would install into ...global\content\default\content\foobar.xul.
|
|
|
|
# CHROME_SKIN_DIR - Like above, but for skin files
|
|
|
|
# CHROME_L10N_DIR - Like above, but for localization files
|
|
|
|
!if "$(CHROME_DIR)" != "$(NULL)"
|
|
|
|
|
|
|
|
# Figure out root of chrome dist dir.
|
|
|
|
CHROME_DIST=$(DIST)\bin\chrome\$(CHROME_DIR:/=\)
|
|
|
|
|
|
|
|
# Content
|
|
|
|
!if "$(CHROME_CONTENT)" != "$(NULL)"
|
|
|
|
|
|
|
|
CHROME_CONTENT=$(CHROME_CONTENT:/=\)
|
|
|
|
|
|
|
|
# Content goes to CHROME_DIR unless specified otherwise.
|
|
|
|
!if "$(CHROME_CONTENT_DIR)" == "$(NULL)"
|
|
|
|
CHROME_CONTENT_DIR=.
|
|
|
|
!endif
|
|
|
|
|
|
|
|
# Export content files by copying to dist.
|
1999-07-28 01:55:17 +04:00
|
|
|
install:: $(CHROME_CONTENT:.\=INSTALL\.\)
|
1999-07-24 07:33:37 +04:00
|
|
|
|
|
|
|
# Pseudo-target specifying how to install content files.
|
1999-07-28 01:55:17 +04:00
|
|
|
$(CHROME_CONTENT:.\=INSTALL\.\):
|
|
|
|
$(MAKE_INSTALL) $(@:INSTALL\.=.) $(CHROME_DIST)\$(CHROME_CONTENT_DIR)\$(@D:INSTALL\.=.)
|
1999-07-24 07:33:37 +04:00
|
|
|
|
|
|
|
# Clobber content files.
|
|
|
|
clobber_all:: $(CHROME_CONTENT:.\=CLOBBER\.\)
|
|
|
|
|
|
|
|
# Pseudo-target specifying how to clobber content files.
|
|
|
|
$(CHROME_CONTENT:.\=CLOBBER\.\):
|
|
|
|
-@$(RM) $(CHROME_DIST)\$(CHROME_CONTENT_DIR)\$(@:CLOBBER\.=.)
|
|
|
|
|
|
|
|
!endif # content
|
|
|
|
|
|
|
|
# Skin
|
|
|
|
!if "$(CHROME_SKIN)" != "$(NULL)"
|
|
|
|
|
|
|
|
CHROME_SKIN=$(CHROME_SKIN:/=\)
|
|
|
|
|
|
|
|
# Skin goes to CHROME_DIR unless specified otherwise.
|
|
|
|
!if "$(CHROME_SKIN_DIR)" == "$(NULL)"
|
|
|
|
CHROME_SKIN_DIR=.
|
|
|
|
!endif
|
|
|
|
|
|
|
|
# Export content files by copying to dist.
|
1999-07-28 01:55:17 +04:00
|
|
|
install:: $(CHROME_SKIN:.\=INSTALL\.\)
|
1999-07-24 07:33:37 +04:00
|
|
|
|
|
|
|
# Pseudo-target specifying how to install chrome files.
|
1999-07-28 01:55:17 +04:00
|
|
|
$(CHROME_SKIN:.\=INSTALL\.\):
|
|
|
|
$(MAKE_INSTALL) $(@:INSTALL\.=.) $(CHROME_DIST)\$(CHROME_SKIN_DIR)\$(@D:INSTALL\.=.)
|
1999-07-24 07:33:37 +04:00
|
|
|
|
|
|
|
# Clobber content files.
|
|
|
|
clobber_all:: $(CHROME_SKIN:.\=CLOBBER\.\)
|
|
|
|
|
|
|
|
# Pseudo-target specifying how to clobber content files.
|
|
|
|
$(CHROME_SKIN:.\=CLOBBER\.\):
|
|
|
|
-@$(RM) $(CHROME_DIST)\$(CHROME_SKIN_DIR)\$(@:CLOBBER\.=.)
|
|
|
|
|
|
|
|
!endif # skin
|
|
|
|
|
|
|
|
# Localization.
|
|
|
|
!if "$(CHROME_L10N)" != "$(NULL)"
|
|
|
|
|
|
|
|
CHROME_L10N=$(CHROME_L10N:/=\)
|
|
|
|
|
|
|
|
# L10n goes to CHROME_DIR unless specified otherwise.
|
|
|
|
!if "$(CHROME_L10N_DIR)" == "$(NULL)"
|
|
|
|
CHROME_L10N_DIR=.
|
|
|
|
!endif
|
|
|
|
|
|
|
|
# Export l10n files by copying to dist.
|
1999-07-28 01:55:17 +04:00
|
|
|
install:: $(CHROME_L10N:.\=INSTALL\.\)
|
1999-07-24 07:33:37 +04:00
|
|
|
|
|
|
|
# Pseudo-target specifying how to install l10n files.
|
1999-07-28 01:55:17 +04:00
|
|
|
$(CHROME_L10N:.\=INSTALL\.\):
|
|
|
|
$(MAKE_INSTALL) $(@:INSTALL\.=.) $(CHROME_DIST)\$(CHROME_L10N_DIR)\$(@D:INSTALL\.=.)
|
1999-07-24 07:33:37 +04:00
|
|
|
|
|
|
|
# Clobber l10n files.
|
|
|
|
clobber_all:: $(CHROME_L10N:.\=CLOBBER\.\)
|
|
|
|
|
|
|
|
# Pseudo-target specifying how to clobber l10n files.
|
|
|
|
$(CHROME_L10N:.\=CLOBBER\.\):
|
|
|
|
-@$(RM) $(CHROME_DIST)\$(CHROME_L10N_DIR)\$(@:CLOBBER\.=.)
|
|
|
|
|
|
|
|
!endif # localization
|
|
|
|
|
|
|
|
!endif # chrome
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
!endif # CONFIG_RULES_MAK
|
1999-03-09 12:44:27 +03:00
|
|
|
|