Update ooo320-m1
[ooovba.git] / solenv / inc / tg_dep.mk
blobe585120938b301e4054346d4c4cc80b210a14f65
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 .IF "$(VERBOSE)" == "TRUE"
57 @echo ---
58 @echo $(PWD) - Old dependency files removed or updated
59 @echo ---
60 .ENDIF
63 ALLDPC: \
64 $(DEPFILES) \
65 $(RCFILES) \
66 $(IDLFILES) \
67 $(HDBDEPNTARGET)
68 .IF "$(nodep)"!=""
69 @echo NOT-Making: Depend-Lists
70 @echo ttt: ppp > $(MISC)/$(TARGET).dpc
71 .ELSE
72 @echo Making : Dependencies
73 .IF "$(CFILES)$(CXXFILES)"!=""
74 .IF "$(SLOFILES)$(OBJFILES)$(DEPOBJFILES)"==""
75 @echo ++++++++++++++++++++++++++++++++++++++++++++++++
76 @echo something is wrong!!
77 @echo source files but no obj
78 @echo ++++++++++++++++++++++++++++++++++++++++++++++++
79 force_dmake_to_error
80 .ENDIF
81 .ENDIF
82 .IF "$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)$(PARFILES)"!=""
83 @$(IFEXIST) $(MISC)/$(TARGET).dpj $(THEN) $(RM:s/+//) $(MISC)/$(TARGET).dpj >& $(NULLDEV) $(FI)
84 @$(IFEXIST) $(MISC)/genjava.mk $(THEN) $(RM:s/+//) $(MISC)/genjava.mk >& $(NULLDEV) $(FI)
85 $(TOUCH) $(MISC)/$(TARGET).dpc
86 .IF "$($(SECOND_BUILD)_SLOFILES)"!=""
87 @$(TYPE) $(mktmp $(foreach,i,$($(SECOND_BUILD)_SLOFILES) $(i:d:^"\n")$(SECOND_BUILD)_$(i:f) : $i )) >> $(MISC)/$(TARGET).dpc
88 .ENDIF
89 .IF "$($(SECOND_BUILD)_OBJFILES)"!=""
90 @$(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
91 .ENDIF
92 .ELSE # "$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)"!=""
93 @echo ttt: ppp > $(MISC)/$(TARGET).dpc
94 .ENDIF # "$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)"!=""
95 .ENDIF # "$(nodep)"!=""
96 .ELSE # anything requiring dependencies
99 ALLDPC:
100 .IF "$(VERBOSE)" == "TRUE"
101 @echo ------------------------------
102 @echo No Dependencies
103 .ENDIF
104 @echo $(EMQ)# > $(MISC)/$(TARGET).dpc
106 ALLDEP:
107 .IF "$(VERBOSE)" == "TRUE"
108 @echo ------------------------------
109 @echo No Dependencies
110 .ENDIF
112 .ENDIF