2001-12-12 05:42:22 -06:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2005-09-08 03:43:19 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
2005-09-08 03:43:19 -05:00
|
|
|
# $RCSfile: tg_dep.mk,v $
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
2007-01-25 05:54:21 -06:00
|
|
|
# $Revision: 1.25 $
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
2007-01-25 05:54:21 -06:00
|
|
|
# last change: $Author: obo $ $Date: 2007-01-25 12:54:21 $
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
2005-09-08 03:43:19 -05:00
|
|
|
# The Contents of this file are made available subject to
|
|
|
|
# the terms of GNU Lesser General Public License Version 2.1.
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
|
|
|
#
|
2005-09-08 03:43:19 -05:00
|
|
|
# GNU Lesser General Public License Version 2.1
|
|
|
|
# =============================================
|
|
|
|
# Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
# 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
2005-09-08 03:43:19 -05:00
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License version 2.1, as published by the Free Software Foundation.
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
2005-09-08 03:43:19 -05:00
|
|
|
# This library 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 for more details.
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
2005-09-08 03:43:19 -05:00
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this library; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
2001-12-12 05:42:22 -06:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
2001-08-22 12:39:51 -05:00
|
|
|
.IF "$(SLOFILES)$(OBJFILES)$(DEPOBJFILES)$(SRCFILES)$(SRC1FILES)$(SRC2FILES)$(SRC3FILES)$(RCFILES)$(HXX1TARGET)$(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:
|
2003-03-27 04:48:49 -06:00
|
|
|
.IF "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
|
2007-01-25 05:54:21 -06:00
|
|
|
@-$(IFEXIST) $(SRS)$/$(PWD:f).*.dpr $(THEN) $(RM) $(SRS)$/$(PWD:f).*.dpr >& $(NULLDEV) $(FI)
|
2000-09-20 08:43:26 -05:00
|
|
|
.ELSE
|
2007-01-25 05:54:21 -06:00
|
|
|
@-$(RM) $(SRS)$/$(PWD:f).*.dpr >& $(NULLDEV)
|
2000-09-20 08:43:26 -05:00
|
|
|
.ENDIF
|
2007-01-25 05:54:21 -06:00
|
|
|
@-$(RM) $(MISC)$/$(TARGET).dpr >& $(NULLDEV)
|
|
|
|
@-$(RM) $(MISC)$/$(PWD:f).*.dprr >& $(NULLDEV)
|
|
|
|
@-$(RM) $(MISC)$/$(TARGET).dpj >& $(NULLDEV)
|
|
|
|
@-$(RM) $(MISC)$/$(TARGET).dpz >& $(NULLDEV)
|
|
|
|
@-$(RM) $(MISC)$/$(COMP1TYPELIST).mk >& $(NULLDEV)
|
|
|
|
@-$(RM) $(MISC)$/$(COMP2TYPELIST).mk >& $(NULLDEV)
|
|
|
|
@-$(RM) $(MISC)$/$(COMP3TYPELIST).mk >& $(NULLDEV)
|
|
|
|
@-$(RM) $(MISC)$/$(COMP4TYPELIST).mk >& $(NULLDEV)
|
|
|
|
@-$(RM) $(MISC)$/$(COMP5TYPELIST).mk >& $(NULLDEV)
|
|
|
|
@-$(RM) $(MISC)$/$(COMP6TYPELIST).mk >& $(NULLDEV)
|
|
|
|
@-$(RM) $(MISC)$/$(COMP7TYPELIST).mk >& $(NULLDEV)
|
|
|
|
@-$(RM) $(MISC)$/$(COMP8TYPELIST).mk >& $(NULLDEV)
|
|
|
|
@-$(RM) $(MISC)$/$(COMP9TYPELIST).mk >& $(NULLDEV)
|
2006-10-30 01:54:25 -06:00
|
|
|
.IF "$(DEPFILE_SLO)"!=""
|
2007-01-25 05:54:21 -06:00
|
|
|
@-$(RM) $(DEPFILE_SLO) >& $(NULLDEV)
|
2006-10-30 01:54:25 -06:00
|
|
|
.ENDIF # "$(DEPFILE_SLO)"!=""
|
|
|
|
.IF "$(DEPFILE_OBJ)"!=""
|
2007-01-25 05:54:21 -06:00
|
|
|
@-$(RM) $(DEPFILE_OBJ) >& $(NULLDEV)
|
2006-10-30 01:54:25 -06:00
|
|
|
.ENDIF # "$(DEPFILE_OBJ)"!=""
|
2001-02-08 08:21:43 -06:00
|
|
|
.IF "$(DEPFILES)" != ""
|
2001-02-23 12:22:07 -06:00
|
|
|
#to keep win9x happy
|
|
|
|
.IF "$(GROUPSHELL:b:l)"=="4dos"
|
2007-01-25 05:54:21 -06:00
|
|
|
@-echo $(foreach,i,$(DEPFILES) $(shell $(4nt_force_shell)-del $i >& $(NULLDEV))) >& $(NULLDEV)
|
2001-02-23 12:22:07 -06:00
|
|
|
.ELSE # "$(GROUPSHELL:b)"=="4dos"
|
2003-03-27 04:48:49 -06:00
|
|
|
.IF "$(USE_SHELL)"=="4nt"
|
2007-01-25 05:54:21 -06:00
|
|
|
@-echo $(foreach,i,$(DEPFILES) $(shell $(shell $(4nt_force_shell)-del $i >& $(NULLDEV))) >& $(NULLDEV)
|
2003-03-27 04:48:49 -06:00
|
|
|
.ELSE # "$(USE_SHELL)"=="4nt"
|
2007-01-25 05:54:21 -06:00
|
|
|
@-$(RM) $(DEPFILES) >& $(NULLDEV)
|
2003-03-27 04:48:49 -06:00
|
|
|
.ENDIF # "$(USE_SHELL)"=="4nt"
|
2001-02-23 12:22:07 -06:00
|
|
|
.ENDIF # "$(GROUPSHELL:b)"=="4dos"
|
2001-02-08 08:21:43 -06:00
|
|
|
.ENDIF # "$(DEPFILES)" != ""
|
2007-01-25 05:54:21 -06:00
|
|
|
@echo ---
|
|
|
|
@echo Old dependency files removed
|
|
|
|
@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
|
|
|
$(CFILES) \
|
|
|
|
$(CXXFILES) \
|
|
|
|
$(RCFILES) \
|
|
|
|
$(IDLFILES) \
|
|
|
|
$(HDBDEPNTARGET)
|
|
|
|
.IF "$(nodep)"!=""
|
|
|
|
@echo NOT-Making: Depend-Lists
|
|
|
|
@echo ttt: ppp > $(MISC)$/$(TARGET).dpc
|
|
|
|
.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)"!=""
|
2007-01-25 05:54:21 -06:00
|
|
|
@$(IFEXIST) $(MISC)$/$(TARGET).dpj $(THEN) $(RM) $(MISC)$/$(TARGET).dpj >& $(NULLDEV) $(FI)
|
|
|
|
@$(IFEXIST) $(MISC)$/genjava.mk $(THEN) $(RM) $(MISC)$/genjava.mk >& $(NULLDEV) $(FI)
|
|
|
|
$(TOUCH) $(MISC)$/$(TARGET).dpc
|
2001-02-02 07:01:02 -06:00
|
|
|
.IF "$($(SECOND_BUILD)_SLOFILES)"!=""
|
2007-01-25 05:54:21 -06: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)"!=""
|
2007-01-25 05:54:21 -06: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)"!=""
|
|
|
|
@echo ttt: ppp > $(MISC)$/$(TARGET).dpc
|
|
|
|
.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
|
2005-03-18 03:14:00 -06:00
|
|
|
@echo $(EMQ)# > $(MISC)$/$(TARGET).dpc
|
2000-09-20 08:43:26 -05:00
|
|
|
|
|
|
|
ALLDEP:
|
|
|
|
@echo ------------------------------
|
|
|
|
@echo No Dependencies
|
|
|
|
|
|
|
|
.ENDIF
|
|
|
|
|