office-gobmx/solenv/inc/rules.mk

833 lines
39 KiB
Makefile
Raw Normal View History

2000-10-30 06:14:55 -06:00
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
2000-10-30 06:14:55 -06:00
#
# OpenOffice.org - a multi-platform office productivity suite
2000-10-30 06:14:55 -06:00
#
# $RCSfile: rules.mk,v $
2000-10-30 06:14:55 -06:00
#
# $Revision: 1.103 $
2000-10-30 06:14:55 -06:00
#
# This file is part of OpenOffice.org.
2000-10-30 06:14:55 -06:00
#
# 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.
2000-10-30 06:14:55 -06:00
#
# 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).
2000-10-30 06:14:55 -06:00
#
# 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.
2000-10-30 06:14:55 -06:00
#
#*************************************************************************
2000-09-20 08:43:26 -05:00
MKFILENAME:=RULES.MK
$(OBJ)$/%.obj : %.cxx
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
@$(RM) $@ $(@:s/.obj/.o/)
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $(CFLAGSINCXX)$(PWD)$/$*.cxx
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
.IF "$(noadjust)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(noadjust)"==""
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ELSE
@@-$(RM) $@
2000-09-20 08:43:26 -05:00
.IF "$(COM)"=="GCC"
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx
2000-09-20 08:43:26 -05:00
.ELSE
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx
2000-09-20 08:43:26 -05:00
.ENDIF
.ENDIF
.IF "$(nodep)"==""
$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)$/o_$(@:f:s/.obj/.dpcc/)
@noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
.ENDIF # "$(nodep)"==""
2000-09-20 08:43:26 -05:00
2001-03-08 09:31:39 -06:00
$(OBJ)$/%.obj : %.cpp
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
@$(RM) $@ $(@:s/.obj/.o/)
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $(CFLAGSINCXX)$(PWD)$/$*.cpp
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2001-03-08 09:31:39 -06:00
.ELSE
@@-$(RM) $@
2001-03-08 09:31:39 -06:00
.IF "$(COM)"=="GCC"
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cpp
2001-03-08 09:31:39 -06:00
.ELSE
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cpp
2001-03-08 09:31:39 -06:00
.ENDIF
.ENDIF
.IF "$(nodep)"==""
$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)$/o_$(@:f:s/.obj/.dpcc/)
@noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
.ENDIF # "$(nodep)"==""
2001-03-08 09:31:39 -06:00
$(OBJ)$/%.obj : %.cc
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
@$(RM) $@ $(@:s/.obj/.o/)
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $(CFLAGSINCXX)$(PWD)$/$*.cc
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
.ELSE
@@$(RM) $@
.IF "$(COM)"=="GCC"
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cc
.ELSE
$(CXX) @$(mktmp $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cc )
.ENDIF
.ENDIF
.IF "$(ENABLE_PCH)"!=""
# workaround for file locking problems on network volumes
.IF "$(NETWORK_BUILD)"==""
PCHOUTDIR=$(SLO)$/pch
PCHEXOUTDIR=$(SLO)$/pch_ex
.ELSE # "$(NETWORK_BUILD)"==""
PCHOUTDIR=$(TMP)$/$(BUILD)$(CWS_WORK_STAMP)$(PRJNAME)$(PROEXT)
PCHEXOUTDIR=$(TMP)$/$(BUILD)$(CWS_WORK_STAMP)$(PRJNAME)_ex$(PROEXT)
.ENDIF # "$(NETWORK_BUILD)"==""
INTEGRATION: CWS pchfix04 (1.78.12); FILE MERGED 2007/04/25 20:36:28 hjs 1.78.12.17: RESYNC: (1.84-1.86); FILE MERGED 2007/02/13 15:16:31 hjs 1.78.12.16: RESYNC: (1.83-1.84); FILE MERGED 2007/01/26 19:01:51 hjs 1.78.12.15: RESYNC: (1.80-1.83); FILE MERGED 2006/12/22 15:35:31 hjs 1.78.12.14: #i72621# escaped blank doesn't work on windows/4nt 2006/12/22 11:17:00 hjs 1.78.12.13: RESYNC: (1.79-1.80); FILE MERGED 2006/12/15 12:54:39 hjs 1.78.12.12: #i72621# fixed mp issue; .net 2005 support 2006/12/13 13:10:34 mkretzschmar 1.78.12.11: Use $(CCNUMVER) instead of deprecated $(CVER) as suggested by hjs. 2006/12/04 18:07:42 kaib 1.78.12.10: RESYNC: (1.78-1.79); FILE MERGED 2006/11/27 17:21:18 kaib 1.78.12.9: #i71519# msc now compiles the original pch .cxx file as well 2006/11/16 19:45:25 kaib 1.78.12.8: #i71519# Fixed backslash problem (again) 2006/11/16 17:33:01 kaib 1.78.12.7: #i71519# Fixed minor pch bugs on win32 with the new gcc code 2006/11/16 17:08:12 mkretzschmar 1.78.12.6: #i71588# Fix incremental builds/.PHONY/do not require changing all */inc/makefile.mk 2006/11/15 21:39:21 mkretzschmar 1.78.12.5: #i71588# Use PCHs on unxlngi6 2006/11/15 21:21:20 mkretzschmar 1.78.12.4: #i71588# Build (but don't use yet) PCHs on unxlngi6 2006/11/15 21:05:34 mkretzschmar 1.78.12.3: #i71588# Preparatory simplification for PCH support on GCC 2006/11/15 20:48:13 mkretzschmar 1.78.12.2: #i71588# Preparatory cleanups for PCH support on GCC 2006/11/15 20:41:55 mkretzschmar 1.78.12.1: #i71581# Use -I$(INCPCH) and not -I$(PRJ)$/inc$/pch
2007-05-10 09:10:49 -05:00
$(SLO)$/precompiled.% .PHONY:
-$(MKDIRHIER) $(SLO)$/pch
.IF "$(COM)"=="MSC"
.IF "$(NETWORK_BUILD)"!=""
-$(MKDIRHIER) $(PCHOUTDIR)
.IF "$(HAVE_BIG_TMP)"==""
-$(COPY) $(SLO)$/pch$/precompiled_$(PRJNAME).hxx$(PCHPOST) $(PCHOUTDIR)$/precompiled_$(PRJNAME).hxx$(PCHPOST)
.ENDIF # "$(HAVE_BIG_TMP)"==""
.ENDIF # "$(NETWORK_BUILD)"!=""
$(CXX) @$(mktmp -Fp$(PCHOUTDIR)$/precompiled_$(PRJNAME).hxx$(PCHPOST) $(CFLAGS_CREATE_PCH) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGS_NO_EXCEPTIONS) -DEXCEPTIONS_OFF $(CFLAGSAPPEND) $(INCPCH)$/precompiled_$(PRJNAME).cxx)
.IF "$(NETWORK_BUILD)"!=""
$(COPY) $(PCHOUTDIR)$/precompiled_$(PRJNAME).hxx$(PCHPOST) $(SLO)$/pch$/precompiled_$(PRJNAME).hxx$(PCHPOST)
.IF "$(HAVE_BIG_TMP)"==""
$(RM) $(PCHOUTDIR)$/precompiled_$(PRJNAME).hxx$(PCHPOST)
$(RMDIR) $(PCHOUTDIR)
.ENDIF # "$(HAVE_BIG_TMP)"==""
.ENDIF # "$(NETWORK_BUILD)"!=""
INTEGRATION: CWS pchfix04 (1.78.12); FILE MERGED 2007/04/25 20:36:28 hjs 1.78.12.17: RESYNC: (1.84-1.86); FILE MERGED 2007/02/13 15:16:31 hjs 1.78.12.16: RESYNC: (1.83-1.84); FILE MERGED 2007/01/26 19:01:51 hjs 1.78.12.15: RESYNC: (1.80-1.83); FILE MERGED 2006/12/22 15:35:31 hjs 1.78.12.14: #i72621# escaped blank doesn't work on windows/4nt 2006/12/22 11:17:00 hjs 1.78.12.13: RESYNC: (1.79-1.80); FILE MERGED 2006/12/15 12:54:39 hjs 1.78.12.12: #i72621# fixed mp issue; .net 2005 support 2006/12/13 13:10:34 mkretzschmar 1.78.12.11: Use $(CCNUMVER) instead of deprecated $(CVER) as suggested by hjs. 2006/12/04 18:07:42 kaib 1.78.12.10: RESYNC: (1.78-1.79); FILE MERGED 2006/11/27 17:21:18 kaib 1.78.12.9: #i71519# msc now compiles the original pch .cxx file as well 2006/11/16 19:45:25 kaib 1.78.12.8: #i71519# Fixed backslash problem (again) 2006/11/16 17:33:01 kaib 1.78.12.7: #i71519# Fixed minor pch bugs on win32 with the new gcc code 2006/11/16 17:08:12 mkretzschmar 1.78.12.6: #i71588# Fix incremental builds/.PHONY/do not require changing all */inc/makefile.mk 2006/11/15 21:39:21 mkretzschmar 1.78.12.5: #i71588# Use PCHs on unxlngi6 2006/11/15 21:21:20 mkretzschmar 1.78.12.4: #i71588# Build (but don't use yet) PCHs on unxlngi6 2006/11/15 21:05:34 mkretzschmar 1.78.12.3: #i71588# Preparatory simplification for PCH support on GCC 2006/11/15 20:48:13 mkretzschmar 1.78.12.2: #i71588# Preparatory cleanups for PCH support on GCC 2006/11/15 20:41:55 mkretzschmar 1.78.12.1: #i71581# Use -I$(INCPCH) and not -I$(PRJ)$/inc$/pch
2007-05-10 09:10:49 -05:00
.ELIF "$(COM)"=="GCC" && "$(CCNUMVER)">="000300040000"
$(CXX) -o$(SLO)$/pch$/precompiled_$(PRJNAME).hxx$(PCHPOST) $(CFLAGS_CREATE_PCH) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGS_NO_EXCEPTIONS) -DEXCEPTIONS_OFF $(CFLAGSAPPEND) $(INCPCH)/precompiled_$(PRJNAME).hxx
@echo "#error Tried to use wrong precompiled header" > $(SLO)$/pch$/precompiled_$(PRJNAME).hxx
.ELSE # "$(COM)"=="MSC"
INTEGRATION: CWS pchfix04 (1.78.12); FILE MERGED 2007/04/25 20:36:28 hjs 1.78.12.17: RESYNC: (1.84-1.86); FILE MERGED 2007/02/13 15:16:31 hjs 1.78.12.16: RESYNC: (1.83-1.84); FILE MERGED 2007/01/26 19:01:51 hjs 1.78.12.15: RESYNC: (1.80-1.83); FILE MERGED 2006/12/22 15:35:31 hjs 1.78.12.14: #i72621# escaped blank doesn't work on windows/4nt 2006/12/22 11:17:00 hjs 1.78.12.13: RESYNC: (1.79-1.80); FILE MERGED 2006/12/15 12:54:39 hjs 1.78.12.12: #i72621# fixed mp issue; .net 2005 support 2006/12/13 13:10:34 mkretzschmar 1.78.12.11: Use $(CCNUMVER) instead of deprecated $(CVER) as suggested by hjs. 2006/12/04 18:07:42 kaib 1.78.12.10: RESYNC: (1.78-1.79); FILE MERGED 2006/11/27 17:21:18 kaib 1.78.12.9: #i71519# msc now compiles the original pch .cxx file as well 2006/11/16 19:45:25 kaib 1.78.12.8: #i71519# Fixed backslash problem (again) 2006/11/16 17:33:01 kaib 1.78.12.7: #i71519# Fixed minor pch bugs on win32 with the new gcc code 2006/11/16 17:08:12 mkretzschmar 1.78.12.6: #i71588# Fix incremental builds/.PHONY/do not require changing all */inc/makefile.mk 2006/11/15 21:39:21 mkretzschmar 1.78.12.5: #i71588# Use PCHs on unxlngi6 2006/11/15 21:21:20 mkretzschmar 1.78.12.4: #i71588# Build (but don't use yet) PCHs on unxlngi6 2006/11/15 21:05:34 mkretzschmar 1.78.12.3: #i71588# Preparatory simplification for PCH support on GCC 2006/11/15 20:48:13 mkretzschmar 1.78.12.2: #i71588# Preparatory cleanups for PCH support on GCC 2006/11/15 20:41:55 mkretzschmar 1.78.12.1: #i71581# Use -I$(INCPCH) and not -I$(PRJ)$/inc$/pch
2007-05-10 09:10:49 -05:00
$(TOUCH) $(SLO)$/pch$/precompiled_$(PRJNAME).hxx$(PCHPOST)
.ENDIF # "$(COM)"=="MSC"
INTEGRATION: CWS pchfix04 (1.78.12); FILE MERGED 2007/04/25 20:36:28 hjs 1.78.12.17: RESYNC: (1.84-1.86); FILE MERGED 2007/02/13 15:16:31 hjs 1.78.12.16: RESYNC: (1.83-1.84); FILE MERGED 2007/01/26 19:01:51 hjs 1.78.12.15: RESYNC: (1.80-1.83); FILE MERGED 2006/12/22 15:35:31 hjs 1.78.12.14: #i72621# escaped blank doesn't work on windows/4nt 2006/12/22 11:17:00 hjs 1.78.12.13: RESYNC: (1.79-1.80); FILE MERGED 2006/12/15 12:54:39 hjs 1.78.12.12: #i72621# fixed mp issue; .net 2005 support 2006/12/13 13:10:34 mkretzschmar 1.78.12.11: Use $(CCNUMVER) instead of deprecated $(CVER) as suggested by hjs. 2006/12/04 18:07:42 kaib 1.78.12.10: RESYNC: (1.78-1.79); FILE MERGED 2006/11/27 17:21:18 kaib 1.78.12.9: #i71519# msc now compiles the original pch .cxx file as well 2006/11/16 19:45:25 kaib 1.78.12.8: #i71519# Fixed backslash problem (again) 2006/11/16 17:33:01 kaib 1.78.12.7: #i71519# Fixed minor pch bugs on win32 with the new gcc code 2006/11/16 17:08:12 mkretzschmar 1.78.12.6: #i71588# Fix incremental builds/.PHONY/do not require changing all */inc/makefile.mk 2006/11/15 21:39:21 mkretzschmar 1.78.12.5: #i71588# Use PCHs on unxlngi6 2006/11/15 21:21:20 mkretzschmar 1.78.12.4: #i71588# Build (but don't use yet) PCHs on unxlngi6 2006/11/15 21:05:34 mkretzschmar 1.78.12.3: #i71588# Preparatory simplification for PCH support on GCC 2006/11/15 20:48:13 mkretzschmar 1.78.12.2: #i71588# Preparatory cleanups for PCH support on GCC 2006/11/15 20:41:55 mkretzschmar 1.78.12.1: #i71581# Use -I$(INCPCH) and not -I$(PRJ)$/inc$/pch
2007-05-10 09:10:49 -05:00
@echo USED_PCHFLAGS=$(CFLAGS)$(CFLAGSCXX)$(CFLAGSCXXSLO)$(CFLAGSSLO)$(CDEFS)$(CDEFSSLO)$(CDEFSMT)$(CFLAGS_NO_EXCEPTIONS) -DEXCEPTIONS_OFF$(CFLAGSAPPEND)> $(INCCOM)$/pch.mk
INTEGRATION: CWS pchfix04 (1.78.12); FILE MERGED 2007/04/25 20:36:28 hjs 1.78.12.17: RESYNC: (1.84-1.86); FILE MERGED 2007/02/13 15:16:31 hjs 1.78.12.16: RESYNC: (1.83-1.84); FILE MERGED 2007/01/26 19:01:51 hjs 1.78.12.15: RESYNC: (1.80-1.83); FILE MERGED 2006/12/22 15:35:31 hjs 1.78.12.14: #i72621# escaped blank doesn't work on windows/4nt 2006/12/22 11:17:00 hjs 1.78.12.13: RESYNC: (1.79-1.80); FILE MERGED 2006/12/15 12:54:39 hjs 1.78.12.12: #i72621# fixed mp issue; .net 2005 support 2006/12/13 13:10:34 mkretzschmar 1.78.12.11: Use $(CCNUMVER) instead of deprecated $(CVER) as suggested by hjs. 2006/12/04 18:07:42 kaib 1.78.12.10: RESYNC: (1.78-1.79); FILE MERGED 2006/11/27 17:21:18 kaib 1.78.12.9: #i71519# msc now compiles the original pch .cxx file as well 2006/11/16 19:45:25 kaib 1.78.12.8: #i71519# Fixed backslash problem (again) 2006/11/16 17:33:01 kaib 1.78.12.7: #i71519# Fixed minor pch bugs on win32 with the new gcc code 2006/11/16 17:08:12 mkretzschmar 1.78.12.6: #i71588# Fix incremental builds/.PHONY/do not require changing all */inc/makefile.mk 2006/11/15 21:39:21 mkretzschmar 1.78.12.5: #i71588# Use PCHs on unxlngi6 2006/11/15 21:21:20 mkretzschmar 1.78.12.4: #i71588# Build (but don't use yet) PCHs on unxlngi6 2006/11/15 21:05:34 mkretzschmar 1.78.12.3: #i71588# Preparatory simplification for PCH support on GCC 2006/11/15 20:48:13 mkretzschmar 1.78.12.2: #i71588# Preparatory cleanups for PCH support on GCC 2006/11/15 20:41:55 mkretzschmar 1.78.12.1: #i71581# Use -I$(INCPCH) and not -I$(PRJ)$/inc$/pch
2007-05-10 09:10:49 -05:00
$(SLO)$/precompiled_ex.% .PHONY:
-$(MKDIRHIER) $(SLO)$/pch_ex
.IF "$(COM)"=="MSC"
.IF "$(NETWORK_BUILD)"!=""
-$(MKDIRHIER) $(PCHEXOUTDIR)
.IF "$(HAVE_BIG_TMP)"==""
-$(COPY) $(SLO)$/pch_ex$/precompiled_$(PRJNAME).hxx$(PCHPOST) $(PCHEXOUTDIR)$/precompiled_$(PRJNAME).hxx$(PCHPOST)
.ENDIF # "$(HAVE_BIG_TMP)"==""
.ENDIF # "$(NETWORK_BUILD)"!=""
$(CXX) @$(mktmp -Fp$(PCHEXOUTDIR)$/precompiled_$(PRJNAME).hxx$(PCHPOST) $(CFLAGS_CREATE_PCH:s/pchname/pchname_ex/) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSEXCEPTIONS) -DEXCEPTIONS_ON $(CFLAGSAPPEND) $(INCPCH)$/precompiled_$(PRJNAME).cxx)
.IF "$(NETWORK_BUILD)"!=""
$(COPY) $(PCHEXOUTDIR)$/precompiled_$(PRJNAME).hxx$(PCHPOST) $(SLO)$/pch_ex$/precompiled_$(PRJNAME).hxx$(PCHPOST)
.IF "$(HAVE_BIG_TMP)"==""
$(RM) $(PCHEXOUTDIR)$/precompiled_$(PRJNAME).hxx$(PCHPOST)
$(RMDIR) $(PCHEXOUTDIR)
.ENDIF # "$(HAVE_BIG_TMP)"==""
.ENDIF # "$(NETWORK_BUILD)"!=""
INTEGRATION: CWS pchfix04 (1.78.12); FILE MERGED 2007/04/25 20:36:28 hjs 1.78.12.17: RESYNC: (1.84-1.86); FILE MERGED 2007/02/13 15:16:31 hjs 1.78.12.16: RESYNC: (1.83-1.84); FILE MERGED 2007/01/26 19:01:51 hjs 1.78.12.15: RESYNC: (1.80-1.83); FILE MERGED 2006/12/22 15:35:31 hjs 1.78.12.14: #i72621# escaped blank doesn't work on windows/4nt 2006/12/22 11:17:00 hjs 1.78.12.13: RESYNC: (1.79-1.80); FILE MERGED 2006/12/15 12:54:39 hjs 1.78.12.12: #i72621# fixed mp issue; .net 2005 support 2006/12/13 13:10:34 mkretzschmar 1.78.12.11: Use $(CCNUMVER) instead of deprecated $(CVER) as suggested by hjs. 2006/12/04 18:07:42 kaib 1.78.12.10: RESYNC: (1.78-1.79); FILE MERGED 2006/11/27 17:21:18 kaib 1.78.12.9: #i71519# msc now compiles the original pch .cxx file as well 2006/11/16 19:45:25 kaib 1.78.12.8: #i71519# Fixed backslash problem (again) 2006/11/16 17:33:01 kaib 1.78.12.7: #i71519# Fixed minor pch bugs on win32 with the new gcc code 2006/11/16 17:08:12 mkretzschmar 1.78.12.6: #i71588# Fix incremental builds/.PHONY/do not require changing all */inc/makefile.mk 2006/11/15 21:39:21 mkretzschmar 1.78.12.5: #i71588# Use PCHs on unxlngi6 2006/11/15 21:21:20 mkretzschmar 1.78.12.4: #i71588# Build (but don't use yet) PCHs on unxlngi6 2006/11/15 21:05:34 mkretzschmar 1.78.12.3: #i71588# Preparatory simplification for PCH support on GCC 2006/11/15 20:48:13 mkretzschmar 1.78.12.2: #i71588# Preparatory cleanups for PCH support on GCC 2006/11/15 20:41:55 mkretzschmar 1.78.12.1: #i71581# Use -I$(INCPCH) and not -I$(PRJ)$/inc$/pch
2007-05-10 09:10:49 -05:00
.ELIF "$(COM)"=="GCC" && "$(CCNUMVER)">="000300040000"
$(CXX) -o$(SLO)$/pch_ex$/precompiled_$(PRJNAME).hxx$(PCHPOST) $(CFLAGS_CREATE_PCH) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSEXCEPTIONS) -DEXCEPTIONS_ON $(CFLAGSAPPEND) $(INCPCH)/precompiled_$(PRJNAME).hxx
@echo "#error Tried to use wrong precompiled header" > $(SLO)$/pch_ex$/precompiled_$(PRJNAME).hxx
.ELSE # "$(COM)"=="MSC"
INTEGRATION: CWS pchfix04 (1.78.12); FILE MERGED 2007/04/25 20:36:28 hjs 1.78.12.17: RESYNC: (1.84-1.86); FILE MERGED 2007/02/13 15:16:31 hjs 1.78.12.16: RESYNC: (1.83-1.84); FILE MERGED 2007/01/26 19:01:51 hjs 1.78.12.15: RESYNC: (1.80-1.83); FILE MERGED 2006/12/22 15:35:31 hjs 1.78.12.14: #i72621# escaped blank doesn't work on windows/4nt 2006/12/22 11:17:00 hjs 1.78.12.13: RESYNC: (1.79-1.80); FILE MERGED 2006/12/15 12:54:39 hjs 1.78.12.12: #i72621# fixed mp issue; .net 2005 support 2006/12/13 13:10:34 mkretzschmar 1.78.12.11: Use $(CCNUMVER) instead of deprecated $(CVER) as suggested by hjs. 2006/12/04 18:07:42 kaib 1.78.12.10: RESYNC: (1.78-1.79); FILE MERGED 2006/11/27 17:21:18 kaib 1.78.12.9: #i71519# msc now compiles the original pch .cxx file as well 2006/11/16 19:45:25 kaib 1.78.12.8: #i71519# Fixed backslash problem (again) 2006/11/16 17:33:01 kaib 1.78.12.7: #i71519# Fixed minor pch bugs on win32 with the new gcc code 2006/11/16 17:08:12 mkretzschmar 1.78.12.6: #i71588# Fix incremental builds/.PHONY/do not require changing all */inc/makefile.mk 2006/11/15 21:39:21 mkretzschmar 1.78.12.5: #i71588# Use PCHs on unxlngi6 2006/11/15 21:21:20 mkretzschmar 1.78.12.4: #i71588# Build (but don't use yet) PCHs on unxlngi6 2006/11/15 21:05:34 mkretzschmar 1.78.12.3: #i71588# Preparatory simplification for PCH support on GCC 2006/11/15 20:48:13 mkretzschmar 1.78.12.2: #i71588# Preparatory cleanups for PCH support on GCC 2006/11/15 20:41:55 mkretzschmar 1.78.12.1: #i71581# Use -I$(INCPCH) and not -I$(PRJ)$/inc$/pch
2007-05-10 09:10:49 -05:00
$(TOUCH) $(SLO)$/pch_ex$/precompiled_$(PRJNAME).hxx$(PCHPOST)
.ENDIF # "$(COM)"=="MSC"
INTEGRATION: CWS pchfix04 (1.78.12); FILE MERGED 2007/04/25 20:36:28 hjs 1.78.12.17: RESYNC: (1.84-1.86); FILE MERGED 2007/02/13 15:16:31 hjs 1.78.12.16: RESYNC: (1.83-1.84); FILE MERGED 2007/01/26 19:01:51 hjs 1.78.12.15: RESYNC: (1.80-1.83); FILE MERGED 2006/12/22 15:35:31 hjs 1.78.12.14: #i72621# escaped blank doesn't work on windows/4nt 2006/12/22 11:17:00 hjs 1.78.12.13: RESYNC: (1.79-1.80); FILE MERGED 2006/12/15 12:54:39 hjs 1.78.12.12: #i72621# fixed mp issue; .net 2005 support 2006/12/13 13:10:34 mkretzschmar 1.78.12.11: Use $(CCNUMVER) instead of deprecated $(CVER) as suggested by hjs. 2006/12/04 18:07:42 kaib 1.78.12.10: RESYNC: (1.78-1.79); FILE MERGED 2006/11/27 17:21:18 kaib 1.78.12.9: #i71519# msc now compiles the original pch .cxx file as well 2006/11/16 19:45:25 kaib 1.78.12.8: #i71519# Fixed backslash problem (again) 2006/11/16 17:33:01 kaib 1.78.12.7: #i71519# Fixed minor pch bugs on win32 with the new gcc code 2006/11/16 17:08:12 mkretzschmar 1.78.12.6: #i71588# Fix incremental builds/.PHONY/do not require changing all */inc/makefile.mk 2006/11/15 21:39:21 mkretzschmar 1.78.12.5: #i71588# Use PCHs on unxlngi6 2006/11/15 21:21:20 mkretzschmar 1.78.12.4: #i71588# Build (but don't use yet) PCHs on unxlngi6 2006/11/15 21:05:34 mkretzschmar 1.78.12.3: #i71588# Preparatory simplification for PCH support on GCC 2006/11/15 20:48:13 mkretzschmar 1.78.12.2: #i71588# Preparatory cleanups for PCH support on GCC 2006/11/15 20:41:55 mkretzschmar 1.78.12.1: #i71581# Use -I$(INCPCH) and not -I$(PRJ)$/inc$/pch
2007-05-10 09:10:49 -05:00
@echo USED_EXCEPTIONS_PCHFLAGS=$(CFLAGS)$(CFLAGSCXX)$(CFLAGSCXXSLO)$(CFLAGSSLO)$(CDEFS)$(CDEFSSLO)$(CDEFSMT)$(CFLAGSEXCEPTIONS) -DEXCEPTIONS_ON$(CFLAGSAPPEND)> $(INCCOM)$/pch_ex.mk
.INCLUDE .IGNORE : $(INCCOM)$/pch.mk
.INCLUDE .IGNORE : $(INCCOM)$/pch_ex.mk
.ENDIF # "$(ENABLE_PCH)"!=""
2001-03-08 09:31:39 -06:00
2000-09-20 08:43:26 -05:00
$(SLO)$/%.obj : %.cxx
@echo ------------------------------
@echo Making: $@
2008-06-30 07:21:09 -05:00
.IF "$(ENABLE_PCH)"!="" && ( "$(PRJNAME)"!="sw" || "$(BUILD_SPECIAL)"!="TRUE" )
# just a helper var
@noop $(assign used_exc_switches=$(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)))
# cleanup first
@noop $(assign ACT_PCH_SWITCHES:=$(NULL))
# eq: first string is a copy of the compile line,
# second generated by pch creation
# use pch with exception support
INTEGRATION: CWS pchfix04 (1.78.12); FILE MERGED 2007/04/25 20:36:28 hjs 1.78.12.17: RESYNC: (1.84-1.86); FILE MERGED 2007/02/13 15:16:31 hjs 1.78.12.16: RESYNC: (1.83-1.84); FILE MERGED 2007/01/26 19:01:51 hjs 1.78.12.15: RESYNC: (1.80-1.83); FILE MERGED 2006/12/22 15:35:31 hjs 1.78.12.14: #i72621# escaped blank doesn't work on windows/4nt 2006/12/22 11:17:00 hjs 1.78.12.13: RESYNC: (1.79-1.80); FILE MERGED 2006/12/15 12:54:39 hjs 1.78.12.12: #i72621# fixed mp issue; .net 2005 support 2006/12/13 13:10:34 mkretzschmar 1.78.12.11: Use $(CCNUMVER) instead of deprecated $(CVER) as suggested by hjs. 2006/12/04 18:07:42 kaib 1.78.12.10: RESYNC: (1.78-1.79); FILE MERGED 2006/11/27 17:21:18 kaib 1.78.12.9: #i71519# msc now compiles the original pch .cxx file as well 2006/11/16 19:45:25 kaib 1.78.12.8: #i71519# Fixed backslash problem (again) 2006/11/16 17:33:01 kaib 1.78.12.7: #i71519# Fixed minor pch bugs on win32 with the new gcc code 2006/11/16 17:08:12 mkretzschmar 1.78.12.6: #i71588# Fix incremental builds/.PHONY/do not require changing all */inc/makefile.mk 2006/11/15 21:39:21 mkretzschmar 1.78.12.5: #i71588# Use PCHs on unxlngi6 2006/11/15 21:21:20 mkretzschmar 1.78.12.4: #i71588# Build (but don't use yet) PCHs on unxlngi6 2006/11/15 21:05:34 mkretzschmar 1.78.12.3: #i71588# Preparatory simplification for PCH support on GCC 2006/11/15 20:48:13 mkretzschmar 1.78.12.2: #i71588# Preparatory cleanups for PCH support on GCC 2006/11/15 20:41:55 mkretzschmar 1.78.12.1: #i71581# Use -I$(INCPCH) and not -I$(PRJ)$/inc$/pch
2007-05-10 09:10:49 -05:00
@noop $(assign ACT_PCH_SWITCHES+=$(eq,$(strip $(USED_EXCEPTIONS_PCHFLAGS)),$(strip $(CFLAGS)$(CFLAGSCXX)$(CFLAGSCXXSLO)$(CFLAGSSLO)$(CDEFS:s/\//)$(CDEFSSLO)$(CDEFSMT)$(used_exc_switches)$(CFLAGSAPPEND)) $(CFLAGS_USE_EXCEPTIONS_PCH) $(NULL)))
# use pch without exception support
INTEGRATION: CWS pchfix04 (1.78.12); FILE MERGED 2007/04/25 20:36:28 hjs 1.78.12.17: RESYNC: (1.84-1.86); FILE MERGED 2007/02/13 15:16:31 hjs 1.78.12.16: RESYNC: (1.83-1.84); FILE MERGED 2007/01/26 19:01:51 hjs 1.78.12.15: RESYNC: (1.80-1.83); FILE MERGED 2006/12/22 15:35:31 hjs 1.78.12.14: #i72621# escaped blank doesn't work on windows/4nt 2006/12/22 11:17:00 hjs 1.78.12.13: RESYNC: (1.79-1.80); FILE MERGED 2006/12/15 12:54:39 hjs 1.78.12.12: #i72621# fixed mp issue; .net 2005 support 2006/12/13 13:10:34 mkretzschmar 1.78.12.11: Use $(CCNUMVER) instead of deprecated $(CVER) as suggested by hjs. 2006/12/04 18:07:42 kaib 1.78.12.10: RESYNC: (1.78-1.79); FILE MERGED 2006/11/27 17:21:18 kaib 1.78.12.9: #i71519# msc now compiles the original pch .cxx file as well 2006/11/16 19:45:25 kaib 1.78.12.8: #i71519# Fixed backslash problem (again) 2006/11/16 17:33:01 kaib 1.78.12.7: #i71519# Fixed minor pch bugs on win32 with the new gcc code 2006/11/16 17:08:12 mkretzschmar 1.78.12.6: #i71588# Fix incremental builds/.PHONY/do not require changing all */inc/makefile.mk 2006/11/15 21:39:21 mkretzschmar 1.78.12.5: #i71588# Use PCHs on unxlngi6 2006/11/15 21:21:20 mkretzschmar 1.78.12.4: #i71588# Build (but don't use yet) PCHs on unxlngi6 2006/11/15 21:05:34 mkretzschmar 1.78.12.3: #i71588# Preparatory simplification for PCH support on GCC 2006/11/15 20:48:13 mkretzschmar 1.78.12.2: #i71588# Preparatory cleanups for PCH support on GCC 2006/11/15 20:41:55 mkretzschmar 1.78.12.1: #i71581# Use -I$(INCPCH) and not -I$(PRJ)$/inc$/pch
2007-05-10 09:10:49 -05:00
@noop $(assign ACT_PCH_SWITCHES+=$(eq,$(strip $(USED_PCHFLAGS)),$(strip $(CFLAGS)$(CFLAGSCXX)$(CFLAGSCXXSLO)$(CFLAGSSLO)$(CDEFS:s/\//)$(CDEFSSLO)$(CDEFSMT)$(used_exc_switches)$(CFLAGSAPPEND)) $(CFLAGS_USE_PCH) $(NULL)))
.ENDIF # "$(ENABLE_PCH)"!=""
2000-09-20 08:43:26 -05:00
.IF "$(GUI)"=="UNX"
.IF "$(TEST)"!=""
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) -E $(CFLAGSINCXX)$(PWD)$/$*.cxx
2000-09-20 08:43:26 -05:00
.ELSE
@$(RM) $@ $(@:s/.obj/.o/)
INTEGRATION: CWS pchfix04 (1.78.12); FILE MERGED 2007/04/25 20:36:28 hjs 1.78.12.17: RESYNC: (1.84-1.86); FILE MERGED 2007/02/13 15:16:31 hjs 1.78.12.16: RESYNC: (1.83-1.84); FILE MERGED 2007/01/26 19:01:51 hjs 1.78.12.15: RESYNC: (1.80-1.83); FILE MERGED 2006/12/22 15:35:31 hjs 1.78.12.14: #i72621# escaped blank doesn't work on windows/4nt 2006/12/22 11:17:00 hjs 1.78.12.13: RESYNC: (1.79-1.80); FILE MERGED 2006/12/15 12:54:39 hjs 1.78.12.12: #i72621# fixed mp issue; .net 2005 support 2006/12/13 13:10:34 mkretzschmar 1.78.12.11: Use $(CCNUMVER) instead of deprecated $(CVER) as suggested by hjs. 2006/12/04 18:07:42 kaib 1.78.12.10: RESYNC: (1.78-1.79); FILE MERGED 2006/11/27 17:21:18 kaib 1.78.12.9: #i71519# msc now compiles the original pch .cxx file as well 2006/11/16 19:45:25 kaib 1.78.12.8: #i71519# Fixed backslash problem (again) 2006/11/16 17:33:01 kaib 1.78.12.7: #i71519# Fixed minor pch bugs on win32 with the new gcc code 2006/11/16 17:08:12 mkretzschmar 1.78.12.6: #i71588# Fix incremental builds/.PHONY/do not require changing all */inc/makefile.mk 2006/11/15 21:39:21 mkretzschmar 1.78.12.5: #i71588# Use PCHs on unxlngi6 2006/11/15 21:21:20 mkretzschmar 1.78.12.4: #i71588# Build (but don't use yet) PCHs on unxlngi6 2006/11/15 21:05:34 mkretzschmar 1.78.12.3: #i71588# Preparatory simplification for PCH support on GCC 2006/11/15 20:48:13 mkretzschmar 1.78.12.2: #i71588# Preparatory cleanups for PCH support on GCC 2006/11/15 20:41:55 mkretzschmar 1.78.12.1: #i71581# Use -I$(INCPCH) and not -I$(PRJ)$/inc$/pch
2007-05-10 09:10:49 -05:00
$(CAPTURE_COMMAND) $(CXX) $(ACT_PCH_SWITCHES) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $(CFLAGSINCXX)$(PWD)$/$*.cxx $(CAPTURE_OUTPUT)
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"=="" && "$(CAPTURE_COMMAND)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ENDIF
.ELSE # "$(GUI)"=="UNX"
@@-$(RM) $@
.IF "$(COM)"=="GCC"
$(CAPTURE_COMMAND) $(CXX) $(ACT_PCH_SWITCHES) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx $(CAPTURE_OUTPUT)
.ELSE
$(CAPTURE_COMMAND) $(CXX) $(ACT_PCH_SWITCHES) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cxx $(CAPTURE_OUTPUT)
.ENDIF # "$(COM)"=="GCC"
.ENDIF # "$(GUI)"=="UNX"
.IF "$(nodep)"==""
# fixme: write to file
$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)$/s_$(@:f:s/.obj/.dpcc/)
@noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
.ENDIF # "$(nodep)"==""
2000-09-20 08:43:26 -05:00
$(SLO)$/%.obj : %.cpp
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
.IF "$(TEST)"!=""
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) -E $(CFLAGSINCXX)$(PWD)$/$*.cpp
2000-09-20 08:43:26 -05:00
.ELSE
@$(RM) $@ $(@:s/.obj/.o/)
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $(CFLAGSINCXX)$(PWD)$/$*.cpp
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ENDIF
.ELSE
@@-$(RM) $@
.IF "$(COM)"=="GCC"
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cpp
.ELSE
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(CFLAGSINCXX)$(PWD)$/$*.cpp
2000-09-20 08:43:26 -05:00
.ENDIF
.ENDIF
.IF "$(nodep)"==""
$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)$/s_$(@:f:s/.obj/.dpcc/)
@noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
.ENDIF # "$(nodep)"==""
2000-09-20 08:43:26 -05:00
$(SLO)$/%.obj : $(MISC)$/%.cxx
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
.IF "$(TEST)"!=""
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) -E $(CFLAGSINCXX)$(MISC)$/$*.cxx
2000-09-20 08:43:26 -05:00
.ELSE
@$(RM) $@ $(@:s/.obj/.o/)
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $(CFLAGSINCXX)$(MISC)$/$*.cxx
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ENDIF
.ELSE
.IF "$(COM)"=="GCC"
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(CFLAGSINCXX)$(MISC)$/$*.cxx
.ELSE
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(CFLAGSINCXX)$(MISC)$/$*.cxx
2000-09-20 08:43:26 -05:00
.ENDIF
.ENDIF
.IF "$(nodep)"==""
$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $@ ) > $(MISC)$/s_$(@:f:s/.obj/.dpcc/)
@noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
.ENDIF # "$(nodep)"==""
2000-09-20 08:43:26 -05:00
$(SLO)$/%.obj : $(MISC)$/%.cc
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
.IF "$(TEST)"!=""
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) -E $(CFLAGSINCXX)$(MISC)$/$*.cc
.ELSE
@$(RM) $@ $(@:s/.obj/.o/)
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $(CFLAGSINCXX)$(MISC)$/$*.cc
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
+$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
.ENDIF
.ELSE
$(CXX) @$(mktmp $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(CFLAGSINCXX)$(MISC)$/$*.cc )
.ENDIF
2000-09-20 08:43:26 -05:00
$(OBJ)$/%.obj : $(MISC)$/%.cxx
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
.IF "$(TEST)"!=""
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) -E $(CFLAGSINCXX)$(MISC)$/$*.cxx
2000-09-20 08:43:26 -05:00
.ELSE
@$(RM) $@ $(@:s/.obj/.o/)
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $(CFLAGSINCXX)$(MISC)$/$*.cxx
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ENDIF
.ELSE
.IF "$(COM)"=="GCC"
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(MISC)$/$*.cxx
.ELSE
$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(CFLAGSINCXX)$(MISC)$/$*.cxx
2000-09-20 08:43:26 -05:00
.ENDIF
.ENDIF
.IF "$(nodep)"==""
$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)$/o_$(@:f:s/.obj/.dpcc/)
@noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
.ENDIF # "$(nodep)"==""
2000-09-20 08:43:26 -05:00
$(OBJ)$/%.obj : %.c
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
.IF "$(TEST)"!=""
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) -E $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $*.c
2000-09-20 08:43:26 -05:00
.ELSE
@$(RM) $@ $(@:s/.obj/.o/)
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $*.c
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
.IF "$(noadjust)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(noadjust)"==""
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ENDIF
.ELSE
.IF "$(COM)"=="GCC"
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $*.c
2000-09-20 08:43:26 -05:00
.ELSE
-@echo Cflags: $(CFLAGS) $(INCLUDE)
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $*.c
2000-09-20 08:43:26 -05:00
.ENDIF
.ENDIF
.IF "$(nodep)"==""
$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)$/o_$(@:f:s/.obj/.dpcc/)
@noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
.ENDIF # "$(nodep)"==""
2000-09-20 08:43:26 -05:00
$(OBJ)$/%.obj : $(MISC)$/%.c
2000-09-20 08:43:26 -05:00
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
@$(RM) $@ $(@:s/.obj/.o/)
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $(MISC)$/$*.c
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ELSE
@@-$(RM) $@
.IF "$(COM)"=="GCC"
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(MISC)$/$*.c
.ELSE
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)$/$*.obj $(MISC)$/$*.c
.ENDIF
2000-09-20 08:43:26 -05:00
.ENDIF
.IF "$(nodep)"==""
$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)$/o_$(@:f:s/.obj/.dpcc/)
@noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
.ENDIF # "$(nodep)"==""
2000-09-20 08:43:26 -05:00
$(SLO)$/%.obj : $(MISC)$/%.c
2000-09-20 08:43:26 -05:00
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
@$(RM) $@ $(@:s/.obj/.o/)
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $(MISC)$/$*.c
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ELSE
@@-$(RM) $@
2000-09-20 08:43:26 -05:00
.IF "$(COM)"=="GCC"
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(MISC)$/$*.c
2000-09-20 08:43:26 -05:00
.ELSE
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $(MISC)$/$*.c
2000-09-20 08:43:26 -05:00
.ENDIF
.ENDIF
.IF "$(nodep)"==""
$(TYPE) $(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< )
$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)$/s_$(@:f:s/.obj/.dpcc/)
# avoid _version objects (see tg_shl.mk) - quite hacky...
@noop $(!eq,$@,$(@:s/_version.obj/.obj/) $(NULL) $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/)))
.ENDIF # "$(nodep)"==""
2000-09-20 08:43:26 -05:00
$(SLO)$/%.obj : %.c
@echo ------------------------------
@echo Making: $@
.IF "$(GUI)"=="UNX"
@$(RM) $@ $(@:s/.obj/.o/)
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $*.c
.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/)
.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"==""
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ELSE
@@-$(RM) $@
2000-09-20 08:43:26 -05:00
.IF "$(COM)"=="GCC"
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $*.c
2000-09-20 08:43:26 -05:00
.ELSE
$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)$/$*.obj $*.c
2000-09-20 08:43:26 -05:00
.ENDIF
.ENDIF
.IF "$(nodep)"==""
$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)$/s_$(@:f:s/.obj/.dpcc/)
@noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
.ENDIF # "$(nodep)"==""
2000-09-20 08:43:26 -05:00
# Objective-C files
$(OBJ)$/%.obj : %.m
@echo ------------------------------
@echo Making: $@
.IF "$(OS)"=="MACOSX"
.IF "$(TEST)"!=""
$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) -E $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $*.m
2000-09-20 08:43:26 -05:00
.ELSE
@$(RM) $@ $(@:s/.obj/.o/)
$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $*.m
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
2000-09-20 08:43:26 -05:00
.ENDIF
.ELSE # "$(OS)"=="MACOSX"
2000-09-20 08:43:26 -05:00
@echo "No recipe for compiling Objective-C files is available for this platform"
.ENDIF "$(OS)"=="MACOSX"
# Objective-C files
$(OBJ)$/%.obj : $(MISC)$/%.m
2000-09-20 08:43:26 -05:00
@echo ------------------------------
@echo Making: $@
.IF "$(OS)"=="MACOSX"
@$(RM) $@ $(@:s/.obj/.o/)
$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $(MISC)$/$*.m
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
.ELSE # "$(OS)"=="MACOSX"
2000-09-20 08:43:26 -05:00
@echo "No recipe for compiling Objective-C files is available for this platform"
.ENDIF "$(OS)"=="MACOSX"
# Objective-C files
$(SLO)$/%.obj : $(MISC)$/%.m
2000-09-20 08:43:26 -05:00
@echo ------------------------------
@echo Making: $@
.IF "$(OS)"=="MACOSX"
@$(RM) $@ $(@:s/.obj/.o/)
$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $(MISC)$/$*.m
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
.ELSE # "$(OS)"=="MACOSX"
2000-09-20 08:43:26 -05:00
@echo "No recipe for compiling Objective-C files is available for this platform"
.ENDIF "$(OS)"=="MACOSX"
# Objective-C files
$(SLO)$/%.obj : %.m
@echo ------------------------------
@echo Making: $@
.IF "$(OS)"=="MACOSX"
@$(RM) $@ $(@:s/.obj/.o/)
$(objc) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(OBJCFLAGS) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $*.m
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
.ELSE # "$(OS)"=="MACOSX"
2000-09-20 08:43:26 -05:00
@echo "No recipe for compiling Objective-C files is available for this platform"
.ENDIF "$(OS)"=="MACOSX"
# dependencies c / c++
not_existing$/s_%.dpcc : %.c;@noop $(assign all_local_slo+:=$<)
not_existing$/o_%.dpcc : %.c;@noop $(assign all_local_obj+:=$<)
# Objective-C++ files
$(OBJ)$/%.obj : %.mm
@echo ------------------------------
@echo Making: $@
.IF "$(OS)"=="MACOSX"
.IF "$(TEST)"!=""
$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCC) $(OBJCXXFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) -E $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $*.mm
.ELSE
@$(RM) $@ $(@:s/.obj/.o/)
$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCC) $(OBJCXXFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $*.mm
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
.ENDIF
.IF "$(nodep)"==""
$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)$/o_$(@:f:s/.obj/.dpcc/)
@noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
.ENDIF # "$(nodep)"==""
.ELSE # "$(OS)"=="MACOSX"
@echo "No recipe for compiling Objective-C++ files is available for this platform"
.ENDIF # "$(OS)"=="MACOSX"
# Objective-C++ files
$(OBJ)$/%.obj : $(MISC)$/%.mm
@echo ------------------------------
@echo Making: $@
.IF "$(OS)"=="MACOSX"
@$(RM) $@ $(@:s/.obj/.o/)
$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(OBJCXXFLAGS) $(CFLAGSOBJ) $(CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)$/$*.o $(MISC)$/$*.mm
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
.IF "$(nodep)"==""
$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< ) > $(MISC)$/o_$(@:f:s/.obj/.dpcc/)
@noop $(assign DEPS_MADE+:=o_$(@:f:s/.obj/.dpcc/))
.ENDIF # "$(nodep)"==""
.ELSE # "$(OS)"=="MACOSX"
@echo "No recipe for compiling Objective-C++ files is available for this platform"
.ENDIF # "$(OS)"=="MACOSX"
# Objective-C++ files
$(SLO)$/%.obj : $(MISC)$/%.mm
@echo ------------------------------
@echo Making: $@
.IF "$(OS)"=="MACOSX"
@$(RM) $@ $(@:s/.obj/.o/)
$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(OBJCXXFLAGS) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $(MISC)$/$*.mm
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
.IF "$(nodep)"==""
$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)$/s_$(@:f:s/.obj/.dpcc/)
@noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
.ENDIF # "$(nodep)"==""
.ELSE # "$(OS)"=="MACOSX"
@echo "No recipe for compiling Objective-C++ files is available for this platform"
.ENDIF # "$(OS)"=="MACOSX"
# Objective-C++ files
$(SLO)$/%.obj : %.mm
@echo ------------------------------
@echo Making: $@
.IF "$(OS)"=="MACOSX"
@$(RM) $@ $(@:s/.obj/.o/)
$(objcpp) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(OBJCXXFLAGS) $(CFLAGSSLO) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)$/$*.o $*.mm
$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI)
.IF "$(nodep)"==""
$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< ) > $(MISC)$/s_$(@:f:s/.obj/.dpcc/)
@noop $(assign DEPS_MADE+:=s_$(@:f:s/.obj/.dpcc/))
.ENDIF # "$(nodep)"==""
.ELSE # "$(OS)"=="MACOSX"
@echo "No recipe for compiling Objective-C++ files is available for this platform"
.ENDIF # "$(OS)"=="MACOSX"
$(MISC)$/%.dpslo :
@echo making .dpslo
@@$(RM) $@
@@-$(CDD) $(MISC) && $(!null,$(all_local_slo) $(TYPE:s/+//) echo #) $(foreach,i,$(all_local_slo:b:+".dpcc") s_$(i)) > $(@:f)
@@-$(CDD) $(MISC) && $(!null,$(all_misc_slo) $(TYPE:s/+//) echo #) $(foreach,i,$(all_misc_slo:b:+".dpcc") s_$(i)) >> $(@:f)
@$(TYPE) $(mktmp $(foreach,i,$(all_local_slo:b:+".dpcc") $(@:^"\n") : $(MISC)$/s_$i) $(foreach,i,$(all_misc_slo:b:+".dpcc") $(@:^"\n") : $(MISC)$/s_$i)) >> $@
@$(TYPE) $(mktmp $(TARGET)_known_dpcc+=$(all_local_slo:b:+".dpcc":^"s_") $(all_misc_slo:b:+".dpcc":^"s_")) >> $@
$(MISC)$/%.dpobj :
@echo making .dpobj
@@$(RM) $@
@@-$(CDD) $(MISC) && $(!null,$(all_local_obj) $(TYPE:s/+//) echo #) $(foreach,i,$(all_local_obj:b:+".dpcc") o_$(i)) > $(@:f)
@@-$(CDD) $(MISC) && $(!null,$(all_misc_obj) $(TYPE:s/+//) echo #) $(foreach,i,$(all_misc_obj:b:+".dpcc") o_$(i)) >> $(@:f)
@$(TYPE) $(mktmp $(foreach,i,$(all_local_obj:b:+".dpcc") $(@:^"\n") : $(MISC)$/o_$i) $(foreach,i,$(all_misc_obj:b:+".dpcc") $(@:^"\n") : $(MISC)$/o_$i)) >> $@
@$(TYPE) $(mktmp $(TARGET)_known_dpcc+=$(all_local_obj:b:+".dpcc":^"s_") $(all_misc_obj:b:+".dpcc":^"s_")) >> $@
# see also %.dpslo
not_existing$/s_%.dpcc : %.cxx;@noop $(assign all_local_slo+:=$<)
not_existing$/o_%.dpcc : %.cxx;@noop $(assign all_local_obj+:=$<)
not_existing$/s_%.dpcc : %.cpp;@noop $(assign all_local_slo+:=$<)
not_existing$/o_%.dpcc : %.cpp;@noop $(assign all_local_obj+:=$<)
not_existing$/s_%.dpcc : $(MISC)$/%.c;@noop $(assign all_misc_slo+:=$<)
not_existing$/o_%.dpcc : $(MISC)$/%.c;@noop $(assign all_misc_obj+:=$<)
not_existing$/s_%.dpcc : $(MISC)$/%.cxx;@noop $(assign all_misc_slo+:=$<)
not_existing$/o_%.dpcc : $(MISC)$/%.cxx;@noop $(assign all_misc_obj+:=$<)
not_existing$/s_%.dpcc : %.mm;@noop $(assign all_local_slo+:=$<)
not_existing$/o_%.dpcc : %.mm;@noop $(assign all_local_obj+:=$<)
not_existing$/s_%.dpcc : $(MISC)$/%.mm;@noop $(assign all_misc_slo+:=$<)
not_existing$/o_%.dpcc : $(MISC)$/%.mm;@noop $(assign all_misc_obj+:=$<)
# dependencies objective-c
$(MISC)$/s_%.dpcc : %.m
@@-$(RM) $@
@$(MAKEDEPEND) -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< > $@
@echo $@ : $(SLO)$/$(<:b).obj >> $@
$(MISC)$/o_%.dpcc : %.m
@@-$(RM) $@
@$(MAKEDEPEND) -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< > $@
@echo $@ : $(OBJ)$/$(<:b).obj >> $@
$(MISC)$/s_%.dpcc : $(MISC)$/%.m
@@-$(RM) $@
.IF "$(GUI)"=="UNX"
@$(MAKEDEPEND) -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< | sed s\#$(MISC)$/\#\# > $@
.ELSE # "$(GUI)"=="UNX"
@$(MAKEDEPEND) -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< | $(SED) s/$(MISC:s/\/\\/)\\// > $@
.ENDIF # "$(GUI)"=="UNX"
@echo $@ : $(SLO)$/$(<:b).obj >> $@
$(MISC)$/o_%.dpcc : $(MISC)$/%.m
@@-$(RM) $@
.IF "$(GUI)"=="UNX"
@$(MAKEDEPEND) -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< | sed s\#$(MISC)$/\#\# > $@
.ELSE # "$(GUI)"=="UNX"
@$(MAKEDEPEND) -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $< | $(SED) s/$(MISC:s/\/\\/)\\// > $@
.ENDIF # "$(GUI)"=="UNX"
@echo $@ : $(OBJ)$/$(<:b).obj >> $@
2001-02-09 04:57:55 -06:00
# dependency dummy for *.s files
$(MISC)$/s_%.dpcc : %.s
@@-$(RM) $@
@$(MAKEDEPEND) -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $< > $@
@echo $@ : $(SLO)$/$(<:b).obj >> $@
2001-02-09 04:57:55 -06:00
$(MISC)$/s_%.dpcc : $(SLO)$/%.obj
@noop $(assign DEPS_MISSING+:=$(@:f))
2001-02-12 09:17:43 -06:00
$(MISC)$/o_%.dpcc : $(OBJ)$/%.obj
@noop $(assign DEPS_MISSING+:=$(@:f))
2001-02-09 04:57:55 -06:00
# dependencies script files
2001-02-12 09:17:43 -06:00
$(MISC)$/%.dpsc :
@@-$(RM) $@
@@-$(MKDIR) $(MISC)$/{$(subst,$(@:d:d:d), $(@:d:d))}
@$(MAKEDEPEND) -f - -p$(PAR)$/{$(subst,$(@:d:d:d), $(@:d:d))} -o.par -D{$(subst,$(@:d:d:d:u), $(@:d:d:u))}_PRODUCT $(CDEFS) -DDLLPOSTFIX=$(DLLPOSTFIX) -I. -I$(INC) -I$(INCLOCAL) -I$(INCGUI) -I$(INCCOM) $(*:b).scp > $@
@echo $@ : $(PAR)$/{$(subst,$(@:d:d:d), $(@:d:d))}$/$(*:b).par >> $@
@echo $(PAR)$/{$(subst,$(@:d:d:d), $(@:d:d))}$/$(*:b).par : $(*:b).scp >> $@
2001-02-05 12:59:43 -06:00
# dependencies rc files (native resources for windows)
$(MISC)$/%.dprc :
@@-$(RM) $@
@$(MAKEDEPEND) -f - -p$(RES) -o.res $(RCLANGFLAGS_{$(subst,$(@:d:d:d:u), $(@:d:d:u))}:u:s/ //) $(CDEFS) -DDLLPOSTFIX=$(DLLPOSTFIX) -I. -I$(INC) -I$(INCLOCAL) -I$(INCGUI) -I$(INCCOM) -I$(SOLARENV)$/inc $(*:b).rc >> $@
# @echo $@ : $(RES)$/{$(subst,$(@:d:d:d), $(@:d:d))}$/$(*:b).res >> $@
@echo $@ : $(RES)$/$(*:b).res >> $@
$(MISC)$/%.dpr :
2000-09-20 08:43:26 -05:00
@echo ------------------------------
.IF "$(nodep)"==""
2000-09-20 08:43:26 -05:00
@echo Making: $@
@@-$(RM) $@
dmake $(MFLAGS) $(MAKEFILE) $(CALLMACROS) NO_HIDS=true make_srs_deps=true $(DEPSRSFILES)
-$(TYPE) $(MISC)$/$(PWD:f).*.dprr >> $@
.ENDIF # "$(nodep)"==""
2000-09-20 08:43:26 -05:00
$(MISC)$/%.dpz :
@echo ------------------------------
.IF "$(nodep)"==""
2000-09-20 08:43:26 -05:00
@echo Making: $@
@@-$(RM) $@
2004-01-21 10:43:29 -06:00
# line too long on 4nt
.IF "$(USE_SHELL)"!="4nt" || "$(GUI)"=="OS2"
dmake $(MFLAGS) $(MAKEFILE) $(CALLMACROS) make_zip_deps=true $(ZIPDEPFILES)
2004-01-21 10:43:29 -06:00
.ELSE # "$(USE_SHELL)"!="4nt"
$(TYPE) $(mktmp $(ZIPDEPFILES:s/\/\\/)) | $(XARGS) dmake $(MFLAGS) $(MAKEFILE) $(CALLMACROS) make_zip_deps=true
2004-01-21 10:43:29 -06:00
.ENDIF # "$(USE_SHELL)"!="4nt"
$(TYPE) $(ZIPDEPFILES) $(mktmp $(NULL)) | grep -v "CVS" >> $@
echo zipdep_langs=$(alllangiso) >> $@
@@-$(RM) $(ZIPDEPFILES)
.ENDIF # "$(nodep)"==""
2000-09-20 08:43:26 -05:00
# Dependencies fuer java - Files
2000-09-20 08:43:26 -05:00
$(MISC)$/%.dpj :
@echo Making dpj...
2000-09-20 08:43:26 -05:00
.IF "$(nodep)"!=""
.IF "$(GUI)"=="UNX"
@echo > $@
2000-09-20 08:43:26 -05:00
.ELSE
@$(ECHONL) > $@
2000-09-20 08:43:26 -05:00
.ENDIF
.ELSE # "$(ndep)"==""
.IF "$(GUI)"=="UNX"
@echo $(shell @$(STARDEP) @$(mktmp -o $@ -i $(CLASSDIR) $(foreach,i,$(JAVADEPINCLUDES:s/:/ /) -i $i) $(JAVACLASSFILES)))
2000-09-20 08:43:26 -05:00
.ELSE
@echo javadeps
@echo $(shell @$(STARDEP) @$(mktmp -o $@ -i $(CLASSDIR) $(foreach,i,$(JAVADEPINCLUDES:s/;/ /) -i $i) $(JAVACLASSFILES)))
2000-09-20 08:43:26 -05:00
.ENDIF
.ENDIF # "$(nodep)"==""
$(SLO)$/%.obj : %.asm
@echo ------------------------------
@echo Making: $@
.IF "$(COM)"=="GCC"
.IF "$(ASM)"=="ml"
$(ASM) $(AFLAGS) -D$(COM) /Fo$(SLO)$/$*.obj $*.asm
@@-$(RM) $*.err
.ELSE # "$(ASM)"=="ml"
@@-$(RM) $@
$(ASM) $(AFLAGS) $*.asm,$(SLO)$/$*.obj;
.ENDIF # "$(ASM)"=="ml"
.ELSE
2000-09-20 08:43:26 -05:00
.IF "$(COM)"=="WTC"
$(ASM) $(AFLAGS) -D$(COM) $*.asm -fo=$(SLO)$/$*.obj
-$(IFEXIST) $*.err $(THEN) $(RM:s/+//) $*.err $(FI)
2000-09-20 08:43:26 -05:00
.ELSE
2000-12-15 10:05:22 -06:00
.IF "$(COM)"=="MSC"
.IF "$(ASM)"=="ml"
$(ASM) $(AFLAGS) -D$(COM) /Fo$(SLO)$/$*.obj $*.asm
-$(IFEXIST) $*.err $(THEN) $(RM:s/+//) $*.err $(FI)
2000-12-15 10:05:22 -06:00
.ELSE # "$(ASM)"=="ml"
@@-$(RM) $@
$(ASM) $(AFLAGS) $*.asm,$(SLO)$/$*.obj;
2000-12-15 10:05:22 -06:00
.ENDIF # "$(ASM)"=="ml"
.ENDIF "$(COM)"=="MSC"
2000-09-20 08:43:26 -05:00
.ENDIF
.ENDIF
2000-09-20 08:43:26 -05:00
$(OBJ)$/%.obj : %.asm
@echo ------------------------------
@echo Making: $@
.IF "$(COM)"=="GCC"
.IF "$(ASM)"=="ml"
$(ASM) $(AFLAGS) -D$(COM) /Fo$(OBJ)$/$*.obj $*.asm
@@-$(RM) $*.err
.ELSE # "$(ASM)"=="ml"
@@-$(RM) $@
$(ASM) $(AFLAGS) $*.asm,$(OBJ)$/$*.obj;
.ENDIF # "$(ASM)"=="ml"
.ELSE
2000-12-15 10:05:22 -06:00
.IF "$(COM)"=="MSC"
.IF "$(ASM)"=="ml"
$(ASM) $(AFLAGS) -D$(COM) /Fo$(SLO)$/$*.obj $*.asm
-$(IFEXIST) $*.err $(THEN) $(RM:s/+//) $*.err $(FI)
2000-12-15 10:05:22 -06:00
.ELSE # "$(ASM)"=="ml"
@$(IFEXIST) $@ $(THEN) $(RM:s/+//) $@ >& $(NULLDEV) $(FI)
$(ASM) $(AFLAGS) $*.asm,$(OBJ)$/$*.obj;
2000-12-15 10:05:22 -06:00
.ENDIF # "$(ASM)"=="ml"
.ENDIF "$(COM)"=="MSC"
.ENDIF
$(OUT)$/ucr$/$(IDLPACKAGE)$/%.urd : %.idl
@noop $(assign all_outdated_idl+:=$<)
$(OUT)$/ucrdoc$/$(IDLPACKAGE)$/%.urd : %.idl
@noop $(assign all_outdated_doc_idl+:=$<)
# generate hid files
$(SRS)$/%.hid : %.src
@echo ------------------------------
@echo Making hid $@
$(PERL) $(SOLARENV)$/bin$/mhids.pl $*.src $(SRS) $(PRJNAME) $(CDEFS) $(INCLUDE)
2000-09-20 08:43:26 -05:00
# make *.xml descriptions available in $(MISC)
2001-08-14 03:15:43 -05:00
$(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml : %.xml
$(COPY) $< $@
2001-12-12 05:38:13 -06:00
# dummy rule to make sure xml file is in place when used in settings.mk
$(MISC)$/%.mk : $(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml
$(TOUCH) $@
echo XML2MK_FILES += $(@:b) >> $@
2000-10-30 06:14:55 -06:00
#generate descriptions from xml
2001-08-14 03:15:43 -05:00
$(MISC)$/%$($(WINVERSIONNAMES)_MAJOR)_description.cxx : $(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml
xml2cmp -func $(MISC)$/$*$($(WINVERSIONNAMES)_MAJOR)_description.cxx $<
2000-10-30 06:14:55 -06:00
2000-09-20 08:43:26 -05:00
#generate private rdb
$(BIN)$/%.rdb: $(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml
$(RDBMAKER) -BUCR -O$(BIN)$/$*.rdb @$(mktmp $(foreach,i,$($(@:b)_XML2CMPTYPES) -T$i ) $(COMPRDB))
2000-09-20 08:43:26 -05:00
2000-09-21 07:12:00 -05:00
#strip dos lineends
$(MISC)$/%.sh : %.sh
@@-$(RM) -f $@
@tr -d "\015" < $< > $@
2000-09-20 08:43:26 -05:00
# merge targets
.IF "$(WITH_LANG)"!=""
$(COMMONMISC)$/$(TARGET)$/%.ulf : %.ulf
-$(MKDIR) $(@:d)
-$(RM) $@
$(ULFEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m localize.sdf -l all
$(RENAME) $@.$(INPATH) $@
-$(RM) $@.$(INPATH)
$(COMMONMISC)$/$(TARGET)$/%.xrb : %.xrb
-$(MKDIR) $(@:d)
-$(RM) $@
$(XMLEX) -t xrb -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m localize.sdf -l all
$(RENAME) $@.$(INPATH) $@
-$(RM) $@.$(INPATH)
$(COMMONMISC)$/$(MYPATH)$/%.xrm : %.xrm
-$(MKDIRHIER) $(@:d)
-$(RM) $@
$(XRMEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m localize.sdf -l all
$(RENAME) $@.$(INPATH) $@
-$(RM) $@.$(INPATH)
$(COMMONMISC)$/$(TARGET)$/%.xrm : %.xrm
-$(MKDIRHIER) $(@:d)
-$(RM) $@
$(XRMEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m localize.sdf -l all
$(RENAME) $@.$(INPATH) $@
-$(RM) $@.$(INPATH)
$(COMMONMISC)$/%.xrm : %.xrm
-$(MKDIR) $(@:d)
-$(RM) $@
$(XRMEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m localize.sdf -l all
$(RENAME) $@.$(INPATH) $@
-$(RM) $@.$(INPATH)
.ENDIF # "$(WITH_LANG)"!=""
.IF "$(WITH_LANG)"!=""
$(COMMONMISC)$/$(TARGET)$/%.jlf : $$(@:db).ulf
.ELSE # "$(WITH_LANG)"!=""
$(COMMONMISC)$/$(TARGET)$/%.jlf : $$(@:b).ulf
.ENDIF # "$(WITH_LANG)"!=""
@-$(MKDIRHIER) $(@:d)
-$(RM) $@
$(ULFCONV) -o $@.$(INPATH) $<
$(RENAME) $@.$(INPATH) $@
-$(RM) $@.$(INPATH)
.IF "$(WITH_LANG)"!=""
$(COMMONMISC)$/$(TARGET)$/%.mlf : $$(@:db).ulf
.ELSE # "$(WITH_LANG)"!=""
$(COMMONMISC)$/$(TARGET)$/%.mlf : $$(@:b).ulf
.ENDIF # "$(WITH_LANG)"!=""
@-$(MKDIRHIER) $(@:d)
-$(RM) $@
@$(ULFCONV) -o $@.$(INPATH) -t $(SOLARBINDIR)$/msi-encodinglist.txt $<
@$(RENAME) $@.$(INPATH) $@
@-$(RM) $@.$(INPATH)
.IF "$(WITH_LANG)"!=""
$(COMMONMISC)$/$(TARGET)$/%.uulf : $$(@:db).ulf
.ELSE # "$(WITH_LANG)"!=""
$(COMMONMISC)$/$(TARGET)$/%.uulf : $$(@:b).ulf
.ENDIF # "$(WITH_LANG)"!=""
@-$(MKDIRHIER) $(@:d)
-$(RM) $@
@$(COPY) $< $@.$(INPATH)
@$(RENAME) $@.$(INPATH) $@
@-$(RM) $@.$(INPATH)
$(COMMONMISC)$/$(TARGET)$/%.xrm : %.xrm
-$(MKDIR) $(@:d)
-$(RM) $@
$(XRMEX) -p $(PRJNAME) -i $(@:f) -o $(@).$(INPATH) -m localize.sdf -l all
$(RENAME) $@.$(INPATH) $@
-$(RM) $@.$(INPATH)
# dirty hack
# if local *.sdf file is missing
%.sdf:
echo > $@