86792bd0e0
2009-07-30 10:12:10 +0200 jl r274470 : #i100873# switch on checking for symbol definitions. It works with the current xpcom lib. 2009-07-29 09:48:29 +0200 jl r274443 : #i100873# 2009-07-29 09:47:36 +0200 jl r274442 : #i100873# changes after resync with DEV300m53 which contains the seamonkey update 2009-07-28 10:00:03 +0200 jl r274389 : #100873# Patches from tono 2009-07-27 16:59:39 +0200 jl r274372 : CWS-TOOLING: rebase CWS jl127 to trunk@274203 (milestone: DEV300:m53) 2009-07-07 09:08:53 +0200 jl r273768 : #100873# 2009-07-06 17:16:10 +0200 jl r273754 : #100873# 2009-07-01 13:58:09 +0200 jl r273576 : #100873# added to readme 2009-07-01 13:15:02 +0200 jl r273573 : #100873# deliver lib files when building with MS compiler 2009-06-30 11:22:06 +0200 jl r273498 : #i100873# accidentally commented out patch_files 2009-06-30 09:01:10 +0200 jl r273489 : #100873# make rc.exe work in ooo windows build 2009-06-29 09:47:56 +0200 jl r273451 : #i100873# applied mingw patch from tono 2009-06-24 12:52:14 +0200 jl r273332 : #100873# reapplying the configure.in patch on version 273150 2009-06-24 12:51:12 +0200 jl r273331 : #100873# reapplying the patch on version 273150 2009-06-23 17:17:36 +0200 jl r273299 : #100873# manually modified patch from tono 2009-06-22 17:05:41 +0200 jl r273243 : #100873# applying mingw patch from tono 2009-06-22 17:02:30 +0200 jl r273242 : #100873# applying mingw patch from tono 2009-06-22 12:49:57 +0200 jl r273216 : #100873# dependency to stlport 2009-06-19 11:56:16 +0200 jl r273155 : #100873# undoing a previous change, instset_native complained about missing libjpipe.jnilib (jurt) 2009-06-19 10:13:03 +0200 jl r273150 : #100873# ooo builds shall also use the new nss by default 2009-06-18 14:32:07 +0200 jl r273117 : #110873# more debug output when verifying a certificate 2009-06-16 11:23:50 +0200 jl r273012 : #i10873# 2009-06-16 10:57:41 +0200 jl r273011 : #100873# wrong parameter definition in nsscrypto_initialize 2009-06-16 10:56:45 +0200 jl r273010 : #100873# wrong parameter definition in nsscrypto_initialize 2009-06-15 16:20:42 +0200 jl r272996 : #100873# initialization of NSS is now threadsafe 2009-06-10 12:50:46 +0200 jl r272804 : #100873# rename in foreach fails in 4nt 2009-06-09 13:43:00 +0200 jl r272768 : #i100873# deliver only .h from inc/nss otherwise we get a warning when nss/nssck.api is delivered 2009-06-08 16:15:44 +0200 jl r272739 : #i100873# 2009-06-08 16:04:54 +0200 jl r272738 : #i100873# 2009-06-08 15:45:52 +0200 jl r272736 : #i100873# 2009-06-08 15:44:15 +0200 jl r272735 : #i100873# unzipping of nss.tar.z not working with 4nt 2009-06-08 09:45:46 +0200 jl r272720 : #i100873# 2009-06-03 13:53:52 +0200 jl r272562 : #i100873# MOZILLABUILD not correct 2009-06-03 13:17:54 +0200 jl r272557 : #i100873# readme and makefile changes from cws jl125, support of new nss module 2009-06-03 09:57:40 +0200 jl r272544 : #i100873# added readme 2009-06-02 16:47:47 +0200 jl r272512 : #i100873# removed no longer needed stuff regarding jnilibs 2009-06-02 15:54:42 +0200 jl r272510 : #i100873# added NSS to BUILD_TYPE 2009-06-02 15:20:18 +0200 jl r272508 : #i100873# DEREFERENCE option for copy command 2009-06-02 13:00:12 +0200 jl r272496 : #i100873# PATCH_FILE_NAMES is now PATCH_FILES 2009-06-02 12:23:39 +0200 jl r272494 : #i100873# build dependency to nss 2009-05-29 16:21:40 +0200 jl r272470 : #i100873# seting ENABLE_NSS_MODULE==YES and includeing mozilla-build-1.3 folder in environment 2009-05-29 16:03:23 +0200 jl r272468 : #i100873# use intermediate certificates when validating a certificate 2009-05-29 15:57:16 +0200 jl r272466 : #i100873# use intermediate certificates when validating a certificate 2009-05-29 15:49:58 +0200 jl r272464 : #i100873# using ENABLE_NSS_MODULE 2009-05-29 15:33:14 +0200 jl r272463 : #i100873# using ENABLE_NSS_MODULE 2009-05-29 15:28:39 +0200 jl r272461 : #i100873# build dependency to nss module 2009-05-29 15:24:57 +0200 jl r272460 : #i100873# pass additional certificates into verifyCertificate function 2009-05-29 14:49:40 +0200 jl r272458 : #i100873# new NSS module 2009-05-29 14:43:44 +0200 jl r272457 : #i100873# new NSS module
378 lines
17 KiB
Makefile
378 lines
17 KiB
Makefile
#*************************************************************************
|
|
#
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
#
|
|
# Copyright 2008 by Sun Microsystems, Inc.
|
|
#
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
|
#
|
|
# $RCSfile: tg_ext.mk,v $
|
|
#
|
|
# $Revision: 1.91 $
|
|
#
|
|
# This file is part of OpenOffice.org.
|
|
#
|
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Lesser General Public License version 3
|
|
# only, as published by the Free Software Foundation.
|
|
#
|
|
# OpenOffice.org is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Lesser General Public License version 3 for more details
|
|
# (a copy is included in the LICENSE file that accompanied this code).
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
# version 3 along with OpenOffice.org. If not, see
|
|
# <http://www.openoffice.org/license.html>
|
|
# for a copy of the LGPLv3 License.
|
|
#
|
|
#*************************************************************************
|
|
|
|
.EXPORT : CC CXX
|
|
|
|
# setup INCLUDE variable for use by VC++
|
|
.IF "$(GUI)$(COM)"=="WNTMSC"
|
|
.IF "$(EXT_USE_STLPORT)"==""
|
|
INCLUDE!:=. $(subst,$/stl, $(SOLARINC))
|
|
.ELSE # "$(EXT_USE_STLPORT)"==""
|
|
INCLUDE!:=. $(SOLARINC)
|
|
.ENDIF # "$(EXT_USE_STLPORT)"==""
|
|
INCLUDE!:=$(INCLUDE:s/ -I/;/)
|
|
.EXPORT : INCLUDE
|
|
.ENDIF # "$(GUI)$(COM)"=="WNTMSC"
|
|
|
|
.IF "$(OS)"=="MACOSX"
|
|
LDFLAGS!:=$(EXTRA_LINKFLAGS) $(LDFLAGS)
|
|
.EXPORT : LDFLAGS
|
|
.ENDIF
|
|
|
|
.IF "$(GUI)"=="WNT" && "$(USE_SHELL)"!="4nt"
|
|
PATH!:=.:$(SOLARBINDIR:^"/cygdrive/":s/://):$(PATH)
|
|
.ELSE # "$(GUI)"=="WNT" && "$(USE_SHELL)"!="4nt"
|
|
PATH!:=.$(PATH_SEPERATOR)$(SOLARBINDIR)$(PATH_SEPERATOR)$(PATH)
|
|
.ENDIF # "$(GUI)"=="WNT" && "$(USE_SHELL)"!="4nt"
|
|
.EXPORT : PATH
|
|
|
|
#override
|
|
PACKAGE_DIR=$(MISC)$/build
|
|
ABS_PACKAGE_DIR:=$(MAKEDIR)$/$(MISC)$/build
|
|
|
|
#MUST match with PACKAGE_DIR
|
|
BACK_PATH=..$/..$/..$/
|
|
#MUST match with reference (currently MISC)
|
|
MBACK_PATH=..$/..$/
|
|
.IF "$(TARFILE_IS_FLAT)" != ""
|
|
fake_root_dir=$/$(TARFILE_NAME)
|
|
#MUST match fake_root_dir in directory levels
|
|
fake_back=..$/
|
|
.ENDIF "$(TARFILE_IS_FLAT)" != ""
|
|
|
|
P_CONFIGURE_DIR=$(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$(CONFIGURE_DIR)
|
|
P_BUILD_DIR=$(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$(BUILD_DIR)
|
|
P_INSTALL_DIR=$(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$(BUILD_DIR)
|
|
P_INSTALL_TARGET_DIR=$(MISC)$/install
|
|
|
|
.IF "$(PATCH_FILES)"=="none" || "$(PATCH_FILES)"==""
|
|
NEW_PATCH_FILE_NAME:=$(TARFILE_NAME)
|
|
.ELSE # "$(PATCH_FILES)"=="none" || "$(PATCH_FILES)"==""
|
|
NEW_PATCH_FILE_NAME:=$(TARFILE_NAME)-newpatch-rename_me.patch
|
|
PATCH_FILE_DEP:=$(PRJ)$/$(PATH_IN_MODULE)$/{$(PATCH_FILES)}
|
|
.ENDIF # "$(PATCH_FILES)"=="none" || "$(PATCH_FILES)"==""
|
|
|
|
.IF "$(TAR_EXCLUDES)"!=""
|
|
TAR_EXCLUDE_SWITCH=--exclude=$(TAR_EXCLUDES)
|
|
.ENDIF # "$(TAR_EXCLUDES)"!=""
|
|
|
|
unzip_quiet_switch:=-qq
|
|
.IF "$(VERBOSE)"=="TRUE"
|
|
tar_verbose_switch=v
|
|
unzip_quiet_switch:=
|
|
.ENDIF # "$(VERBOSE)"=="TRUE"
|
|
|
|
.IF "$(ADDITIONAL_FILES)"!=""
|
|
P_ADDITIONAL_FILES=$(foreach,i,$(ADDITIONAL_FILES) $(MISC)$/$(TARFILE_ROOTDIR)$/$i)
|
|
T_ADDITIONAL_FILES=$(foreach,i,$(ADDITIONAL_FILES) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i)
|
|
.ENDIF # "$(ADDITIONAL_FILES)"!=""
|
|
|
|
EXTRPATH*=OOO
|
|
|
|
.IF "$(L10N_framework)"==""
|
|
|
|
ALLTAR : \
|
|
$(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE) \
|
|
$(PACKAGE_DIR)$/$(BUILD_FLAG_FILE) \
|
|
$(PACKAGE_DIR)$/$(INSTALL_FLAG_FILE) \
|
|
$(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE) \
|
|
$(PACKAGE_DIR)$/$(ADD_FILES_FLAG_FILE) \
|
|
$(PACKAGE_DIR)$/$(PATCH_FLAG_FILE) \
|
|
$(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE)
|
|
|
|
clean:
|
|
cd $(P_BUILD_DIR) && $(BUILD_ACTION) $(BUILD_FLAGS) clean
|
|
$(RM) $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE)
|
|
|
|
$(MISC)$/%.unpack : $(PRJ)$/download$/%.tar.bz2
|
|
@-$(RM) $@
|
|
.IF "$(GUI)"=="UNX"
|
|
@noop $(assign UNPACKCMD := sh -c "bzip2 -cd $(BACK_PATH)$(fake_back)download$/$(TARFILE_NAME).tar.bz2 $(TARFILE_FILTER) | $(TAR) $(TAR_EXCLUDE_SWITCH) -x$(tar_verbose_switch)f - ")
|
|
.ELSE # "$(GUI)"=="UNX"
|
|
@noop $(assign UNPACKCMD := bzip2 -cd $(BACK_PATH)$(fake_back)download$/$(TARFILE_NAME).tar.bz2 $(TARFILE_FILTER) | $(TAR) $(TAR_EXCLUDE_SWITCH) -x$(tar_verbose_switch)f - )
|
|
.ENDIF # "$(GUI)"=="UNX"
|
|
@$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH)
|
|
@$(RENAME) $@.$(INPATH) $@
|
|
|
|
$(MISC)$/%.unpack : $(PRJ)$/download$/%.tar.Z
|
|
@-$(RM) $@
|
|
.IF "$(GUI)"=="UNX"
|
|
@noop $(assign UNPACKCMD := sh -c "uncompress -c $(BACK_PATH)$(fake_back)download$/$(TARFILE_NAME).tar.Z | $(TAR) $(TAR_EXCLUDE_SWITCH) -x$(tar_verbose_switch)f - ")
|
|
.ELSE # "$(GUI)"=="UNX"
|
|
@noop $(assign UNPACKCMD := uncompress -c $(BACK_PATH)$(fake_back)download$/$(TARFILE_NAME).tar.Z | $(TAR) $(TAR_EXCLUDE_SWITCH) -x$(tar_verbose_switch)f - )
|
|
.ENDIF # "$(GUI)"=="UNX"
|
|
@$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH)
|
|
@$(RENAME) $@.$(INPATH) $@
|
|
|
|
$(MISC)$/%.unpack : $(PRJ)$/download$/%.tar.gz
|
|
@-$(RM) $@
|
|
@noop $(assign UNPACKCMD := gzip -d -c $(subst,\,/ $(BACK_PATH)$(fake_back)download$/$(TARFILE_NAME).tar.gz) $(TARFILE_FILTER) | $(TAR) $(TAR_EXCLUDE_SWITCH) -x$(tar_verbose_switch)f - )
|
|
@$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH)
|
|
@$(RENAME) $@.$(INPATH) $@
|
|
|
|
$(MISC)$/%.unpack : $(PRJ)$/download$/%.tgz
|
|
@-$(RM) $@
|
|
@noop $(assign UNPACKCMD := gzip -d -c $(subst,\,/ $(BACK_PATH)$(fake_back)download$/$(TARFILE_NAME).tgz) $(TARFILE_FILTER) | $(TAR) $(TAR_EXCLUDE_SWITCH) -x$(tar_verbose_switch)f - )
|
|
@$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH)
|
|
@$(RENAME) $@.$(INPATH) $@
|
|
|
|
$(MISC)$/%.unpack : $(PRJ)$/download$/%.tar
|
|
@-$(RM) $@
|
|
noop $(assign UNPACKCMD := $(TAR) $(TAR_EXCLUDE_SWITCH) -x$(tar_verbose_switch)f $(BACK_PATH)$(fake_back)download$/$(TARFILE_NAME).tar)
|
|
@$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH)
|
|
@$(RENAME) $@.$(INPATH) $@
|
|
|
|
$(MISC)$/%.unpack : $(PRJ)$/download$/%.zip
|
|
@-$(RM) $@
|
|
noop $(assign UNPACKCMD := unzip $(unzip_quiet_switch) -o $(BACK_PATH)$(fake_back)download$/$(TARFILE_NAME).zip)
|
|
@$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH)
|
|
@$(RENAME) $@.$(INPATH) $@
|
|
|
|
$(MISC)$/%.unpack : $(PRJ)$/download$/%.jar
|
|
@-$(RM) $@
|
|
.IF "$(OS)"=="SOLARIS"
|
|
noop $(assign UNPACKCMD := jar xf $(BACK_PATH)$(fake_back)download$/$(TARFILE_NAME).jar)
|
|
.ELSE # "$(OS)"=="SOLARIS"
|
|
noop $(assign UNPACKCMD := unzip $(unzip_quiet_switch) -o $(BACK_PATH)$(fake_back)download$/$(TARFILE_NAME).jar)
|
|
.ENDIF # "$(OS)"=="SOLARIS"
|
|
@$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH)
|
|
@$(RENAME) $@.$(INPATH) $@
|
|
|
|
#do unpack
|
|
$(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE) : $(PRJ)$/$(ROUT)$/misc$/$(TARFILE_NAME).unpack $(PATCH_FILE_DEP)
|
|
$(IFEXIST) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR) $(THEN) $(RENAME:s/+//) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)_removeme $(FI)
|
|
-rm -rf $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)_removeme
|
|
@-$(MKDIRHIER) $(PACKAGE_DIR)$(fake_root_dir)
|
|
cd $(PACKAGE_DIR)$(fake_root_dir) && ( $(shell $(TYPE) $(PRJ)$/$(ROUT)$/misc$/$(TARFILE_NAME).unpack)) && $(TOUCH) $(UNTAR_FLAG_FILE)
|
|
@echo make writeable...
|
|
.IF "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
|
|
@cd $(PACKAGE_DIR) && chmod -R +rw $(TARFILE_ROOTDIR) && $(TOUCH) $(UNTAR_FLAG_FILE)
|
|
@cd $(PACKAGE_DIR) && find $(TARFILE_ROOTDIR) -type d -exec chmod a+x {{}} \;
|
|
.ELSE # "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
|
|
# Native W32 tools generate only filedates with even seconds, cygwin also with odd seconds
|
|
$(DELAY) 2
|
|
@cd $(PACKAGE_DIR) && attrib /s -r $(TARFILE_ROOTDIR) >& $(NULLDEV) && $(TOUCH) $(UNTAR_FLAG_FILE)
|
|
.ENDIF # "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
|
|
|
|
#add new files to patch
|
|
$(PACKAGE_DIR)$/$(ADD_FILES_FLAG_FILE) : $(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE) $(T_ADDITIONAL_FILES:+".dummy")
|
|
.IF "$(GUI)"=="WNT"
|
|
@$(TOUCH) $@
|
|
.ELSE # "$(GUI)"=="WNT"
|
|
@$(TOUCH) $@
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
#patch
|
|
$(PACKAGE_DIR)$/$(PATCH_FLAG_FILE) : $(PACKAGE_DIR)$/$(ADD_FILES_FLAG_FILE)
|
|
.IF "$(PATCH_FILES)"=="none" || "$(PATCH_FILES)"==""
|
|
@echo no patch needed...
|
|
$(TOUCH) $@
|
|
.ELSE # "$(PATCH_FILES)"=="none" || "$(PATCH_FILES)"==""
|
|
.IF "$(GUI)"=="WNT"
|
|
# hack to make 4nt version 4,01 work and still get propper
|
|
# errorcodes for versions < 3,00
|
|
.IF "$(my4ver:s/.//:s/,//)" >= "300"
|
|
cd $(PACKAGE_DIR) && ( $(TYPE:s/+//) $(BACK_PATH)$(PATH_IN_MODULE)$/{$(PATCH_FILES)} | tr -d "\015" | patch $(PATCHFLAGS) -p2 ) && $(TOUCH) $(PATCH_FLAG_FILE)
|
|
.ELSE # "$(my4ver:s/.//:s/,//)" >= "300"
|
|
cd $(PACKAGE_DIR) && $(TYPE:s/+//) $(BACK_PATH)$(PATH_IN_MODULE)$/{$(PATCH_FILES)} | tr -d "\015" | patch $(PATCHFLAGS) -p2 && $(TOUCH) $(PATCH_FLAG_FILE)
|
|
.ENDIF # "$(my4ver:s/.//:s/,//)" >= "300"
|
|
.ELSE # "$(GUI)"=="WNT"
|
|
.IF "$(BSCLIENT)"=="TRUE"
|
|
cd $(PACKAGE_DIR) && $(TYPE) $(BACK_PATH)$(PATH_IN_MODULE)$/{$(PATCH_FILES)} | $(GNUPATCH) -f $(PATCHFLAGS) -p2 && $(TOUCH) $(PATCH_FLAG_FILE)
|
|
.ELSE # "$(BSCLIENT)"!=""
|
|
cd $(PACKAGE_DIR) && $(TYPE) $(BACK_PATH)$(PATH_IN_MODULE)$/{$(PATCH_FILES)} | $(GNUPATCH) $(PATCHFLAGS) -p2 && $(TOUCH) $(PATCH_FLAG_FILE)
|
|
.ENDIF # "$(BSCLIENT)"!=""
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.ENDIF # "$(PATCH_FILES)"=="none" || "$(PATCH_FILES)"==""
|
|
.IF "$(T_ADDITIONAL_FILES)"!=""
|
|
.IF "$(GUI)"=="WNT"
|
|
# Native W32 tools generate only filedates with even seconds, cygwin also with odd seconds
|
|
$(DELAY) 2
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
$(TOUCH) $(PACKAGE_DIR)$/$(PATCH_FLAG_FILE)
|
|
.ENDIF # "$(T_ADDITIONAL_FILES)"!=""
|
|
|
|
.IF "$(CONVERTFILES)"!=""
|
|
$(MISC)$/$(TARGET)_convert_unx_flag : $(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE)
|
|
$(CONVERT) unix $(foreach,i,$(CONVERTFILES) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) && $(TOUCH) $(MISC)$/$(TARGET)_convert_unx_flag
|
|
|
|
$(PACKAGE_DIR)$/$(PATCH_FLAG_FILE) : $(MISC)$/$(TARGET)_convert_unx_flag
|
|
|
|
$(MISC)$/$(TARGET)_convert_dos_flag : $(PACKAGE_DIR)$/$(PATCH_FLAG_FILE)
|
|
$(CONVERT) dos $(foreach,i,$(CONVERTFILES) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) && $(TOUCH) $(MISC)$/$(TARGET)_convert_dos_flag
|
|
|
|
$(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE) : $(MISC)$/$(TARGET)_convert_dos_flag
|
|
|
|
patch : $(MISC)$/$(TARGET)_convert_dos_flag
|
|
|
|
.ENDIF # "$(CONVERTFILES)"!=""
|
|
|
|
$(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE) : $(PACKAGE_DIR)$/$(PATCH_FLAG_FILE)
|
|
@@-$(RM) $@
|
|
.IF "$(CONFIGURE_ACTION)" == "none" || "$(CONFIGURE_ACTION)"==""
|
|
$(TOUCH) $(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE)
|
|
.ELSE # "$(CONFIGURE_ACTION)"=="none" || "$(CONFIGURE_ACTION)"==""
|
|
-$(MKDIR) $(P_CONFIGURE_DIR)
|
|
.IF "$(OS)"=="OS2"
|
|
cd $(P_CONFIGURE_DIR) && sh -c "$(CONFIGURE_ACTION:s!\!/!) $(CONFIGURE_FLAGS:s!\!/!)" && $(TOUCH) $(CONFIGURE_FLAG_FILE)
|
|
.ELSE
|
|
cd $(P_CONFIGURE_DIR) && $(CONFIGURE_ACTION) $(CONFIGURE_FLAGS) && $(TOUCH) $(CONFIGURE_FLAG_FILE)
|
|
.ENDIF
|
|
mv $(P_CONFIGURE_DIR)$/$(CONFIGURE_FLAG_FILE) $(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE)
|
|
.ENDIF # "$(CONFIGURE_ACTION)"=="none" || "$(CONFIGURE_ACTION)"==""
|
|
|
|
|
|
$(PACKAGE_DIR)$/$(BUILD_FLAG_FILE) : $(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE)
|
|
@@-$(RM) $@
|
|
.IF "$(eq,x$(BUILD_ACTION:s/none//)x,xx true false)"=="true"
|
|
$(TOUCH) $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE)
|
|
.ELSE # "$(eq,x$(BUILD_ACTION:s/none//)x,xx true false)"=="true"
|
|
-$(MKDIR) $(P_BUILD_DIR)
|
|
cd $(P_BUILD_DIR) && $(BUILD_ACTION) $(BUILD_FLAGS) && $(TOUCH) $(ABS_PACKAGE_DIR)$/$(BUILD_FLAG_FILE)
|
|
.ENDIF # "$(eq,x$(BUILD_ACTION:s/none//)x,xx true false)"=="true"
|
|
|
|
$(PACKAGE_DIR)$/$(INSTALL_FLAG_FILE) : $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE)
|
|
@@-$(RM) $@
|
|
.IF "$(INSTALL_ACTION)"=="none" || "$(INSTALL_ACTION)"==""
|
|
$(TOUCH) $(PACKAGE_DIR)$/$(INSTALL_FLAG_FILE)
|
|
.ELSE # "$(INSTALL_ACTION)"=="none" || "$(INSTALL_ACTION)"==""
|
|
-$(MKDIR) $(P_INSTALL_DIR)
|
|
-$(MKDIR) $(P_INSTALL_TARGET_DIR)
|
|
cd $(P_INSTALL_DIR) && $(INSTALL_ACTION) $(INSTALL_FLAGS) && $(TOUCH) $(INSTALL_FLAG_FILE)
|
|
mv $(P_INSTALL_DIR)$/$(INSTALL_FLAG_FILE) $(PACKAGE_DIR)$/$(INSTALL_FLAG_FILE)
|
|
.ENDIF # "$(INSTALL_ACTION)"=="none" || "$(INSTALL_ACTION)"==""
|
|
|
|
$(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE) : $(PACKAGE_DIR)$/$(INSTALL_FLAG_FILE)
|
|
.IF "$(OUT2LIB)"!=""
|
|
$(COPY) $(foreach,i,$(OUT2LIB) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(LB)
|
|
.IF "$(OS)"=="MACOSX"
|
|
$(PERL) $(SOLARENV)$/bin$/macosx-change-install-names.pl extshl \
|
|
$(EXTRPATH) \
|
|
$(shell ls $(foreach,j,$(OUT2LIB) $(LB)$/$(j:f)) | \
|
|
(grep -v '\.a$$' || test $$? = 1))
|
|
.ENDIF
|
|
.ENDIF # "$(OUT2LIB)"!=""
|
|
.IF "$(OUT2INC)"!=""
|
|
.IF "$(OUT2INC_SUBDIR)"!=""
|
|
-$(MKDIRHIER) $(INCCOM)$/$(OUT2INC_SUBDIR)
|
|
$(COPY) $(foreach,i,$(OUT2INC) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(INCCOM)$/$(OUT2INC_SUBDIR)
|
|
.ELSE # "$(OUT2INC_SUBDIR)"!=""
|
|
$(COPY) $(foreach,i,$(OUT2INC) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(INCCOM)
|
|
.ENDIF # "$(OUT2INC_SUBDIR)"!=""
|
|
.ENDIF # "$(OUT2INC)"!=""
|
|
.IF "$(OUTDIR2INC)"!=""
|
|
.IF "$(USE_SHELL)"=="4nt"
|
|
@-$(MKDIR) $(foreach,i,$(OUTDIR2INC) $(INCCOM)$/$(i:b))
|
|
@echo copied $(foreach,i,$(OUTDIR2INC) $(shell @$(COPY) $(COPYRECURSE) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i$/* $(INCCOM)$/$(i:b) >& $(NULLDEV) && echo $i))
|
|
.ELSE # "$(USE_SHELL)"=="4nt"
|
|
$(COPY) $(DEREFERENCE) $(COPYRECURSE) $(foreach,i,$(OUTDIR2INC) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(INCCOM)
|
|
.ENDIF # "$(USE_SHELL)"=="4nt"
|
|
.ENDIF # "$(OUTDIR2INC)"!=""
|
|
.IF "$(OUT2BIN)"!=""
|
|
$(COPY) $(foreach,i,$(OUT2BIN) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(BIN)
|
|
.IF "$(GUI)$(COM)$(COMEX)"=="WNTMSC12"
|
|
@noop $(foreach,j,$(foreach,k,$(OUT2BIN) \
|
|
$(shell -ls -1 $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$k | $(GREP) .dll)) \
|
|
$(shell @$(IFEXIST) $(j).manifest $(THEN) mt.exe \
|
|
-manifest $(j).manifest -outputresource:$(BIN)$/$(j:f)$(EMQ);2 $(FI)))
|
|
.ENDIF # "$(GUI)$(COM)$(COMEX)"=="WNTMSC12"
|
|
.ENDIF # "$(OUT2BIN)"!=""
|
|
.IF "$(OUT2CLASS)"!=""
|
|
$(COPY) $(foreach,i,$(OUT2CLASS) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(CLASSDIR)
|
|
.ENDIF # "$(OUT2BIN)"!=""
|
|
$(TOUCH) $(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE)
|
|
|
|
$(MISC)$/$(TARFILE_ROOTDIR).done : $(MISC)$/$(TARFILE_NAME).unpack $(PATCH_FILES)
|
|
@-mv $(MISC)$/$(TARFILE_ROOTDIR) $(MISC)$/$(TARFILE_ROOTDIR).old
|
|
@-rm -rf $(MISC)$/$(TARFILE_ROOTDIR).old
|
|
@-$(MKDIRHIER) $(MISC)$(fake_root_dir)
|
|
cd $(MISC)$(fake_root_dir) && $(subst,$(BACK_PATH),$(MBACK_PATH) $(shell @$(TYPE) $(PRJ)$/$(ROUT)$/misc$/$(TARFILE_NAME).unpack))
|
|
.IF "$(P_ADDITIONAL_FILES)"!=""
|
|
noop $(foreach,i,$(P_ADDITIONAL_FILES) $(shell echo dummy > $i))
|
|
.ENDIF "$(P_ADDITIONAL_FILES)"!=""
|
|
.IF "$(PATCH_FILES)"!="none" && "$(PATCH_FILES)"!=""
|
|
.IF "$(CONVERTFILES)"!=""
|
|
$(CONVERT) unix $(foreach,i,$(CONVERTFILES) $(MISC)$/$(TARFILE_ROOTDIR)$/$i)
|
|
.ENDIF # "$(CONVERTFILES)"!=""
|
|
.IF "$(GUI)"=="WNT"
|
|
# hack to make 4nt version 4,01 work and still get propper
|
|
# errorcodes for versions < 3,00
|
|
.IF "$(my4ver:s/.//:s/,//)" >= "300"
|
|
cd $(MISC) && ( $(TYPE:s/+//) $(BACK_PATH)$(PATH_IN_MODULE)$/{$(PATCH_FILES)} | tr -d "\015" | patch $(PATCHFLAGS) -p2 )
|
|
.ELSE # "$(my4ver:s/.//:s/,//)" >= "300"
|
|
cd $(MISC) && $(TYPE:s/+//) $(BACK_PATH)$(PATH_IN_MODULE)$/{$(PATCH_FILES)} | tr -d "\015" | patch $(PATCHFLAGS) -p2
|
|
.ENDIF # "$(my4ver:s/.//:s/,//)" >= "300"
|
|
.ELSE # "$(GUI)"=="WNT"
|
|
.IF "$(BSCLIENT)"=="TRUE"
|
|
cd $(MISC) && $(TYPE) $(BACK_PATH)$(PATH_IN_MODULE)$/{$(PATCH_FILES)} | $(GNUPATCH) -f $(PATCHFLAGS) -p2
|
|
.ELSE # "$(BSCLIENT)"!=""
|
|
cd $(MISC) && $(TYPE) $(MBACK_PATH)$(PATH_IN_MODULE)$/{$(PATCH_FILES)} | $(GNUPATCH) $(PATCHFLAGS) -p2
|
|
.ENDIF # "$(BSCLIENT)"!=""
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
.IF "$(CONVERTFILES)"!=""
|
|
$(CONVERT) dos $(foreach,i,$(CONVERTFILES) $(MISC)$/$(TARFILE_ROOTDIR)$/$i)
|
|
.ENDIF # "$(CONVERTFILES)"!=""
|
|
.ENDIF # "$(PATCH_FILES)"!="none" && "$(PATCH_FILES)"!="
|
|
.IF "$(GUI)"=="UNX"
|
|
$(TOUCH) $@
|
|
.ENDIF # "$(GUI)"=="UNX"
|
|
|
|
.IF "$(T_ADDITIONAL_FILES)"!=""
|
|
$(T_ADDITIONAL_FILES:+".dummy") : $(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE)
|
|
@-$(MKDIRHIER) $(@:d)
|
|
-echo dummy > $@
|
|
-$(TOUCH) $@
|
|
-echo dummy > $(@:d)$(@:b)
|
|
-$(TOUCH) $(@:d)$(@:b)
|
|
.ENDIF "$(T_ADDITIONAL_FILES)"!=""
|
|
|
|
create_patch : $(MISC)$/$(TARFILE_ROOTDIR).done $(PACKAGE_DIR)$/$(PATCH_FLAG_FILE)
|
|
@@-$(MKDIRHIER) $(PRJ)$/$(NEW_PATCH_FILE_NAME:d)
|
|
@@-$(RM) $(MISC)$/$(NEW_PATCH_FILE_NAME:f).tmp
|
|
@@-$(RM) $(PRJ)$/$(PATH_IN_MODULE)$/$(NEW_PATCH_FILE_NAME).bak
|
|
#ignore returncode of 1 (indicates differences...)
|
|
# hard coded again to get the same directory level as before. quite ugly...
|
|
-cd $(PRJ)$/$(ROUT) && diff -ru misc$/$(TARFILE_ROOTDIR) misc$/build$/$(TARFILE_ROOTDIR) | $(PERL) $(SOLARENV)$/bin$/cleandiff.pl | tr -d "\015" > misc$/$(NEW_PATCH_FILE_NAME:f).tmp
|
|
-mv $(PRJ)$/$(PATH_IN_MODULE)$/$(NEW_PATCH_FILE_NAME) $(PRJ)$/$(PATH_IN_MODULE)$/$(NEW_PATCH_FILE_NAME).bak
|
|
-$(TOUCH) $(PRJ)$/$(PATH_IN_MODULE)$/$(NEW_PATCH_FILE_NAME).bak
|
|
$(PERL) $(SOLARENV)$/bin$/patch_sanitizer.pl $(PRJ)$/$(PATH_IN_MODULE)$/$(NEW_PATCH_FILE_NAME).bak $(MISC)$/$(NEW_PATCH_FILE_NAME:f).tmp $(PRJ)$/$(PATH_IN_MODULE)$/$(NEW_PATCH_FILE_NAME)
|
|
@@-$(RM) $(MISC)$/$(NEW_PATCH_FILE_NAME:f).tmp $(PRJ)$/$(PATH_IN_MODULE)$/$(NEW_PATCH_FILE_NAME).bak
|
|
$(MAKECMD) $(MAKEMACROS) patch
|
|
@echo still some problems with win32 generated patches...
|
|
@echo $(USQ)find your new changes in $(NEW_PATCH_FILE_NAME). don't forget to move/rename that patch and insert it in your makefiles PATCH_FILES to activate.$(USQ)
|
|
|
|
create_clean : $(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE)
|
|
@echo done
|
|
|
|
patch : $(PACKAGE_DIR)$/$(PATCH_FLAG_FILE)
|
|
@echo done
|
|
|
|
.ENDIF # "$(L10N_framework)"==""
|