update dev300-m58
[ooovba.git] / solenv / inc / tg_dep.mk
blob46a5ffbf196b2dae4c916e6e7bcf42d2270f0692
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: tg_dep.mk,v $
11 # $Revision: 1.30.166.1 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 .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)"!=""
33 ALLDEP .PHONY:
34 @-$(IFEXIST) $(SRS)/$(TARGET).*.dpr $(THEN) $(RM:s/+//) $(SRS)/$(TARGET).*.dpr >& $(NULLDEV) $(FI)
35 @@-$(RM) $(MISC)/$(TARGET).dpr
36 @@-$(RM) $(MISC)/$(TARGET).*.dprr
37 @@-$(RM) $(MISC)/$(TARGET).dpj
38 @@-$(RM) $(MISC)/$(TARGET).dpz
39 @@-$(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
40 .IF "$(nodep)"==""
41 .IF "$(DEPFILE_SLO)"!=""
42 @@-$(RM) $(DEPFILE_SLO)
43 $(foreach,i,$(all_local_slo) $(shell @$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $i ) > $(MISC)/s_$(i:b).dpcc ))
44 $(foreach,i,$(all_misc_slo) $(shell @$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $i ) > $(MISC)/s_$(i:b).dpcc ))
45 .ENDIF # "$(DEPFILE_SLO)"!=""
46 .IF "$(DEPFILE_OBJ)"!=""
47 @@-$(RM) $(DEPFILE_OBJ)
48 $(foreach,i,$(all_local_obj) $(shell @$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $i ) > $(MISC)/o_$(i:b).dpcc ))
49 $(foreach,i,$(all_misc_obj) $(shell @$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $i ) > $(MISC)/o_$(i:b).dpcc ))
50 .ENDIF # "$(DEPFILE_OBJ)"!=""
51 .ENDIF # "$(nodep)"==""
52 .IF "$(DEPFILES)" != ""
53 echo xxx$(DEPFILES)xxx
54 @@-$(RM) $(DEPFILES)
55 .ENDIF # "$(DEPFILES)" != ""
56 @echo ---
57 @echo $(PWD) - Old dependency files removed or updated
58 @echo ---
61 ALLDPC: \
62 $(DEPFILES) \
63 $(RCFILES) \
64 $(IDLFILES) \
65 $(HDBDEPNTARGET)
66 .IF "$(nodep)"!=""
67 @echo NOT-Making: Depend-Lists
68 @echo ttt: ppp > $(MISC)/$(TARGET).dpc
69 .ELSE
70 @echo Making : Dependencies
71 .IF "$(CFILES)$(CXXFILES)"!=""
72 .IF "$(SLOFILES)$(OBJFILES)$(DEPOBJFILES)"==""
73 @echo ++++++++++++++++++++++++++++++++++++++++++++++++
74 @echo something is wrong!!
75 @echo source files but no obj
76 @echo ++++++++++++++++++++++++++++++++++++++++++++++++
77 force_dmake_to_error
78 .ENDIF
79 .ENDIF
80 .IF "$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)$(PARFILES)"!=""
81 @$(IFEXIST) $(MISC)/$(TARGET).dpj $(THEN) $(RM:s/+//) $(MISC)/$(TARGET).dpj >& $(NULLDEV) $(FI)
82 @$(IFEXIST) $(MISC)/genjava.mk $(THEN) $(RM:s/+//) $(MISC)/genjava.mk >& $(NULLDEV) $(FI)
83 $(TOUCH) $(MISC)/$(TARGET).dpc
84 .IF "$($(SECOND_BUILD)_SLOFILES)"!=""
85 @$(TYPE) $(mktmp $(foreach,i,$($(SECOND_BUILD)_SLOFILES) $(i:d:^"\n")$(SECOND_BUILD)_$(i:f) : $i )) >> $(MISC)/$(TARGET).dpc
86 .ENDIF
87 .IF "$($(SECOND_BUILD)_OBJFILES)"!=""
88 @$(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
89 .ENDIF
90 .ELSE # "$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)"!=""
91 @echo ttt: ppp > $(MISC)/$(TARGET).dpc
92 .ENDIF # "$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)"!=""
93 .ENDIF # "$(nodep)"!=""
94 .ELSE # anything requiring dependencies
97 ALLDPC:
98 @echo ------------------------------
99 @echo No Dependencies
100 @echo $(EMQ)# > $(MISC)/$(TARGET).dpc
102 ALLDEP:
103 @echo ------------------------------
104 @echo No Dependencies
106 .ENDIF