2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 .IF
"$(SLOFILES)$(OBJFILES)$(DEPOBJFILES)$(SRCFILES)$(SRC1FILES)$(SRC2FILES)$(SRC3FILES)$(RCFILES)$(HDBDEPNTARGET)$(IDLFILES)$(PARFILES)$(ZIP1TARGET)$(ZIP2TARGET)$(ZIP3TARGET)$(ZIP4TARGET)$(ZIP5TARGET)$(ZIP6TARGET)$(ZIP7TARGET)$(ZIP8TARGET)$(ZIP9TARGET)"!=""
21 @
-$(IFEXIST
) $(SRS
)/$(TARGET
).
*.dpr
$(THEN
) $(RM
:s
/+//) $(SRS
)/$(TARGET
).
*.dpr
>& $(NULLDEV
) $(FI
)
22 @@
-$(RM
) $(MISC
)/$(TARGET
).dpr
23 @@
-$(RM
) $(MISC
)/$(TARGET
).
*.dprr
24 @@
-$(RM
) $(MISC
)/$(TARGET
).dpj
25 @@
-$(RM
) $(MISC
)/$(TARGET
).dpz
27 .IF
"$(DEPFILE_SLO)"!=""
28 @@
-$(RM
) $(DEPFILE_SLO
)
29 $(foreach,i
,$(all_local_slo
) $(shell @
$(MAKEDEPEND
) @
$(mktmp
-f
- -p
$(SLO
) $(MKDEPFLAGS
) $(CDEFS
) $(CDEFSSLO
) $(CDEFSMT
) $i ) > $(MISC
)/s_
$(i
:b
).dpcc
))
30 $(foreach,i
,$(all_misc_slo
) $(shell @
$(MAKEDEPEND
) @
$(mktmp
-f
- -p
$(SLO
) $(MKDEPFLAGS
) $(CDEFS
) $(CDEFSSLO
) $(CDEFSMT
) $i ) > $(MISC
)/s_
$(i
:b
).dpcc
))
31 .ENDIF
# "$(DEPFILE_SLO)"!=""
32 .IF
"$(DEPFILE_OBJ)"!=""
33 @@
-$(RM
) $(DEPFILE_OBJ
)
34 $(foreach,i
,$(all_local_obj
) $(shell @
$(MAKEDEPEND
) @
$(mktmp
-f
- -p
$(OBJ
) $(MKDEPFLAGS
) $(CDEFS
) $(CDEFSOBJ
) $(CDEFSMT
) $i ) > $(MISC
)/o_
$(i
:b
).dpcc
))
35 $(foreach,i
,$(all_misc_obj
) $(shell @
$(MAKEDEPEND
) @
$(mktmp
-f
- -p
$(OBJ
) $(MKDEPFLAGS
) $(CDEFS
) $(CDEFSOBJ
) $(CDEFSMT
) $i ) > $(MISC
)/o_
$(i
:b
).dpcc
))
36 .ENDIF
# "$(DEPFILE_OBJ)"!=""
37 .ENDIF
# "$(nodep)"==""
38 .IF
"$(DEPFILES)" != ""
39 echo xxx
$(DEPFILES
)xxx
41 .ENDIF
# "$(DEPFILES)" != ""
50 @echo NOT-Making
: Depend-Lists
51 @echo ttt
: ppp
> $(MISC
)/$(TARGET
).dpc
53 @echo Making
: Dependencies
54 .IF
"$(CFILES)$(CXXFILES)"!=""
55 .IF
"$(SLOFILES)$(OBJFILES)$(DEPOBJFILES)"==""
56 @echo
++++++++++++++++++++++++++++++++++++++++++++++++
57 @echo something is wrong
!!
58 @echo source files but no obj
59 @echo
++++++++++++++++++++++++++++++++++++++++++++++++
63 .IF
"$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)$(PARFILES)"!=""
64 @
$(IFEXIST
) $(MISC
)/$(TARGET
).dpj
$(THEN
) $(RM
:s
/+//) $(MISC
)/$(TARGET
).dpj
>& $(NULLDEV
) $(FI
)
65 @
$(IFEXIST
) $(MISC
)/genjava.mk
$(THEN
) $(RM
:s
/+//) $(MISC
)/genjava.mk
>& $(NULLDEV
) $(FI
)
66 $(TOUCH
) $(MISC
)/$(TARGET
).dpc
67 .IF
"$($(SECOND_BUILD)_SLOFILES)"!=""
68 @
$(TYPE
) $(mktmp
$(foreach,i
,$($(SECOND_BUILD
)_SLOFILES
) $(i
:d
:^
"\n")$(SECOND_BUILD
)_
$(i
:f
) : $i )) >> $(MISC
)/$(TARGET
).dpc
70 .IF
"$($(SECOND_BUILD)_OBJFILES)"!=""
71 @
$(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
73 .ELSE
# "$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)"!=""
74 @echo ttt
: ppp
> $(MISC
)/$(TARGET
).dpc
75 .ENDIF
# "$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)"!=""
76 .ENDIF
# "$(nodep)"!=""
77 .ELSE
# anything requiring dependencies
80 @echo
$(EMQ
)# > $(MISC)/$(TARGET).dpc
83 @echo nothing to do here...