1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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)"!=""
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
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
55 .ENDIF
# "$(DEPFILES)" != ""
57 @echo
$(PWD
) - Old dependency files removed or updated
67 @echo NOT-Making
: Depend-Lists
68 @echo ttt
: ppp
> $(MISC
)/$(TARGET
).dpc
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
++++++++++++++++++++++++++++++++++++++++++++++++
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
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
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
98 @echo
------------------------------
100 @echo
$(EMQ
)# > $(MISC)/$(TARGET).dpc
103 @echo
------------------------------
104 @echo No Dependencies