2001-12-12 05:42:22 -06:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2008-04-10 11:39:32 -05:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# Copyright 2008 by Sun Microsystems, Inc.
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
2008-04-10 11:39:32 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
2008-04-10 11:39:32 -05:00
|
|
|
# $RCSfile: tg_dep.mk,v $
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
2008-10-15 03:43:33 -05:00
|
|
|
# $Revision: 1.30.166.1 $
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
2008-04-10 11:39:32 -05:00
|
|
|
# This file is part of OpenOffice.org.
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
2008-04-10 11:39:32 -05: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.
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
2008-04-10 11:39:32 -05: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).
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
2008-04-10 11:39:32 -05: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.
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
2007-02-06 06:59:12 -06:00
|
|
|
.IF "$(SLOFILES)$(OBJFILES)$(DEPOBJFILES)$(SRCFILES)$(SRC1FILES)$(SRC2FILES)$(SRC3FILES)$(RCFILES)$(HDBDEPNTARGET)$(IDLFILES)$(PARFILES)$(ZIP1TARGET)$(ZIP2TARGET)$(ZIP3TARGET)$(ZIP4TARGET)$(ZIP5TARGET)$(ZIP6TARGET)$(ZIP7TARGET)$(ZIP8TARGET)$(ZIP9TARGET)$(COMP1TYPELIST)$(COMP2TYPELIST)$(COMP3TYPELIST)$(COMP4TYPELIST)$(COMP5TYPELIST)$(COMP6TYPELIST)$(COMP7TYPELIST)$(COMP8TYPELIST)$(COMP9TYPELIST)"!=""
|
2000-09-20 08:43:26 -05:00
|
|
|
ALLDEP .PHONY:
|
2009-09-07 08:35:07 -05:00
|
|
|
@-$(IFEXIST) $(SRS)/$(TARGET).*.dpr $(THEN) $(RM:s/+//) $(SRS)/$(TARGET).*.dpr >& $(NULLDEV) $(FI)
|
|
|
|
@@-$(RM) $(MISC)/$(TARGET).dpr
|
|
|
|
@@-$(RM) $(MISC)/$(TARGET).*.dprr
|
|
|
|
@@-$(RM) $(MISC)/$(TARGET).dpj
|
|
|
|
@@-$(RM) $(MISC)/$(TARGET).dpz
|
|
|
|
@@-$(RM) $(MISC)/$(COMP1TYPELIST).mk $(MISC)/$(COMP2TYPELIST).mk $(MISC)/$(COMP3TYPELIST).mk $(MISC)/$(COMP4TYPELIST).mk $(MISC)/$(COMP5TYPELIST).mk $(MISC)/$(COMP6TYPELIST).mk $(MISC)/$(COMP7TYPELIST).mk $(MISC)/$(COMP8TYPELIST).mk $(MISC)/$(COMP9TYPELIST).mk
|
2008-01-16 07:27:44 -06:00
|
|
|
.IF "$(nodep)"==""
|
2006-10-30 01:54:25 -06:00
|
|
|
.IF "$(DEPFILE_SLO)"!=""
|
2007-02-06 06:59:12 -06:00
|
|
|
@@-$(RM) $(DEPFILE_SLO)
|
2009-09-07 08:35:07 -05:00
|
|
|
$(foreach,i,$(all_local_slo) $(shell @$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $i ) > $(MISC)/s_$(i:b).dpcc ))
|
|
|
|
$(foreach,i,$(all_misc_slo) $(shell @$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $i ) > $(MISC)/s_$(i:b).dpcc ))
|
2006-10-30 01:54:25 -06:00
|
|
|
.ENDIF # "$(DEPFILE_SLO)"!=""
|
|
|
|
.IF "$(DEPFILE_OBJ)"!=""
|
2007-02-06 06:59:12 -06:00
|
|
|
@@-$(RM) $(DEPFILE_OBJ)
|
2009-09-07 08:35:07 -05:00
|
|
|
$(foreach,i,$(all_local_obj) $(shell @$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $i ) > $(MISC)/o_$(i:b).dpcc ))
|
|
|
|
$(foreach,i,$(all_misc_obj) $(shell @$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $i ) > $(MISC)/o_$(i:b).dpcc ))
|
2006-10-30 01:54:25 -06:00
|
|
|
.ENDIF # "$(DEPFILE_OBJ)"!=""
|
2008-01-16 07:27:44 -06:00
|
|
|
.ENDIF # "$(nodep)"==""
|
2001-02-08 08:21:43 -06:00
|
|
|
.IF "$(DEPFILES)" != ""
|
2008-01-16 07:27:44 -06:00
|
|
|
echo xxx$(DEPFILES)xxx
|
2007-02-06 06:59:12 -06:00
|
|
|
@@-$(RM) $(DEPFILES)
|
2001-02-08 08:21:43 -06:00
|
|
|
.ENDIF # "$(DEPFILES)" != ""
|
2007-01-25 05:54:21 -06:00
|
|
|
@echo ---
|
2008-01-16 07:27:44 -06:00
|
|
|
@echo $(PWD) - Old dependency files removed or updated
|
2007-01-25 05:54:21 -06:00
|
|
|
@echo ---
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
|
|
|
|
ALLDPC: \
|
2001-02-02 07:01:02 -06:00
|
|
|
$(DEPFILES) \
|
2000-09-20 08:43:26 -05:00
|
|
|
$(RCFILES) \
|
|
|
|
$(IDLFILES) \
|
|
|
|
$(HDBDEPNTARGET)
|
|
|
|
.IF "$(nodep)"!=""
|
|
|
|
@echo NOT-Making: Depend-Lists
|
2009-09-07 08:35:07 -05:00
|
|
|
@echo ttt: ppp > $(MISC)/$(TARGET).dpc
|
2000-09-20 08:43:26 -05:00
|
|
|
.ELSE
|
|
|
|
@echo Making : Dependencies
|
|
|
|
.IF "$(CFILES)$(CXXFILES)"!=""
|
|
|
|
.IF "$(SLOFILES)$(OBJFILES)$(DEPOBJFILES)"==""
|
|
|
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++
|
2005-08-05 08:00:57 -05:00
|
|
|
@echo something is wrong!!
|
|
|
|
@echo source files but no obj
|
2000-09-20 08:43:26 -05:00
|
|
|
@echo ++++++++++++++++++++++++++++++++++++++++++++++++
|
2005-08-05 08:00:57 -05:00
|
|
|
force_dmake_to_error
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
|
|
|
.IF "$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)$(PARFILES)"!=""
|
2009-09-07 08:35:07 -05:00
|
|
|
@$(IFEXIST) $(MISC)/$(TARGET).dpj $(THEN) $(RM:s/+//) $(MISC)/$(TARGET).dpj >& $(NULLDEV) $(FI)
|
|
|
|
@$(IFEXIST) $(MISC)/genjava.mk $(THEN) $(RM:s/+//) $(MISC)/genjava.mk >& $(NULLDEV) $(FI)
|
|
|
|
$(TOUCH) $(MISC)/$(TARGET).dpc
|
2001-02-02 07:01:02 -06:00
|
|
|
.IF "$($(SECOND_BUILD)_SLOFILES)"!=""
|
2009-09-07 08:35:07 -05:00
|
|
|
@$(TYPE) $(mktmp $(foreach,i,$($(SECOND_BUILD)_SLOFILES) $(i:d:^"\n")$(SECOND_BUILD)_$(i:f) : $i )) >> $(MISC)/$(TARGET).dpc
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
2001-02-02 07:01:02 -06:00
|
|
|
.IF "$($(SECOND_BUILD)_OBJFILES)"!=""
|
2009-09-07 08:35:07 -05:00
|
|
|
@$(TYPE) $(mktmp $(foreach,i,$($(SECOND_BUILD)_OBJFILES) $(i:d:^"\n")$(SECOND_BUILD)_$(i:f) : $(i:d:s/obj/slo/)$(i:b).obj )) >> $(MISC)/$(TARGET).dpc
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
|
|
|
.ELSE # "$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)"!=""
|
2009-09-07 08:35:07 -05:00
|
|
|
@echo ttt: ppp > $(MISC)/$(TARGET).dpc
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF # "$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)"!=""
|
|
|
|
.ENDIF # "$(nodep)"!=""
|
2005-08-05 08:00:57 -05:00
|
|
|
.ELSE # anything requiring dependencies
|
2000-09-20 08:43:26 -05:00
|
|
|
|
2000-10-12 05:54:47 -05:00
|
|
|
|
2000-09-20 08:43:26 -05:00
|
|
|
ALLDPC:
|
|
|
|
@echo ------------------------------
|
|
|
|
@echo No Dependencies
|
2009-09-07 08:35:07 -05:00
|
|
|
@echo $(EMQ)# > $(MISC)/$(TARGET).dpc
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
ALLDEP:
|
|
|
|
@echo ------------------------------
|
|
|
|
@echo No Dependencies
|
|
|
|
|
|
|
|
.ENDIF
|
|
|
|
|