xref: /aoo4110/main/solenv/inc/tg_dep.mk (revision b1cdbd2c)
1*b1cdbd2cSJim Jagielski#**************************************************************
2*b1cdbd2cSJim Jagielski#
3*b1cdbd2cSJim Jagielski#  Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski#  or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski#  distributed with this work for additional information
6*b1cdbd2cSJim Jagielski#  regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski#  to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski#  "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski#  with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski#
11*b1cdbd2cSJim Jagielski#    http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski#
13*b1cdbd2cSJim Jagielski#  Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski#  software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski#  KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski#  specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski#  under the License.
19*b1cdbd2cSJim Jagielski#
20*b1cdbd2cSJim Jagielski#**************************************************************
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim Jagielski.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)"!=""
25*b1cdbd2cSJim JagielskiALLDEP .PHONY:
26*b1cdbd2cSJim Jagielski	@-$(IFEXIST) $(SRS)/$(TARGET).*.dpr $(THEN) $(RM:s/+//) $(SRS)/$(TARGET).*.dpr >& $(NULLDEV) $(FI)
27*b1cdbd2cSJim Jagielski	@@-$(RM) $(MISC)/$(TARGET).dpr
28*b1cdbd2cSJim Jagielski	@@-$(RM) $(MISC)/$(TARGET).*.dprr
29*b1cdbd2cSJim Jagielski	@@-$(RM) $(MISC)/$(TARGET).dpj
30*b1cdbd2cSJim Jagielski	@@-$(RM) $(MISC)/$(TARGET).dpz
31*b1cdbd2cSJim Jagielski	@@-$(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
32*b1cdbd2cSJim Jagielski.IF "$(nodep)"==""
33*b1cdbd2cSJim Jagielski.IF "$(DEPFILE_SLO)"!=""
34*b1cdbd2cSJim Jagielski	@@-$(RM) $(DEPFILE_SLO)
35*b1cdbd2cSJim Jagielski	$(foreach,i,$(all_local_slo) $(shell @$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $i ) > $(MISC)/s_$(i:b).dpcc ))
36*b1cdbd2cSJim Jagielski	$(foreach,i,$(all_misc_slo) $(shell @$(MAKEDEPEND) @$(mktmp -f - -p$(SLO) $(MKDEPFLAGS) $(CDEFS) $(CDEFSSLO) $(CDEFSMT) $i ) > $(MISC)/s_$(i:b).dpcc ))
37*b1cdbd2cSJim Jagielski.ENDIF			# "$(DEPFILE_SLO)"!=""
38*b1cdbd2cSJim Jagielski.IF "$(DEPFILE_OBJ)"!=""
39*b1cdbd2cSJim Jagielski	@@-$(RM) $(DEPFILE_OBJ)
40*b1cdbd2cSJim Jagielski	$(foreach,i,$(all_local_obj) $(shell @$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $i ) > $(MISC)/o_$(i:b).dpcc ))
41*b1cdbd2cSJim Jagielski	$(foreach,i,$(all_misc_obj) $(shell @$(MAKEDEPEND) @$(mktmp -f - -p$(OBJ) $(MKDEPFLAGS) $(CDEFS) $(CDEFSOBJ) $(CDEFSMT) $i ) > $(MISC)/o_$(i:b).dpcc ))
42*b1cdbd2cSJim Jagielski.ENDIF			# "$(DEPFILE_OBJ)"!=""
43*b1cdbd2cSJim Jagielski.ENDIF			# "$(nodep)"==""
44*b1cdbd2cSJim Jagielski.IF "$(DEPFILES)" != ""
45*b1cdbd2cSJim Jagielski	echo xxx$(DEPFILES)xxx
46*b1cdbd2cSJim Jagielski	@@-$(RM) $(DEPFILES)
47*b1cdbd2cSJim Jagielski.ENDIF			# "$(DEPFILES)" != ""
48*b1cdbd2cSJim Jagielski
49*b1cdbd2cSJim Jagielski
50*b1cdbd2cSJim JagielskiALLDPC: \
51*b1cdbd2cSJim Jagielski		$(DEPFILES) \
52*b1cdbd2cSJim Jagielski		$(RCFILES) \
53*b1cdbd2cSJim Jagielski		$(IDLFILES) \
54*b1cdbd2cSJim Jagielski		$(HDBDEPNTARGET)
55*b1cdbd2cSJim Jagielski.IF "$(nodep)"!=""
56*b1cdbd2cSJim Jagielski	@echo NOT-Making: Depend-Lists
57*b1cdbd2cSJim Jagielski	@echo ttt: ppp > $(MISC)/$(TARGET).dpc
58*b1cdbd2cSJim Jagielski.ELSE
59*b1cdbd2cSJim Jagielski	@echo Making : Dependencies
60*b1cdbd2cSJim Jagielski.IF "$(CFILES)$(CXXFILES)"!=""
61*b1cdbd2cSJim Jagielski.IF "$(SLOFILES)$(OBJFILES)$(DEPOBJFILES)"==""
62*b1cdbd2cSJim Jagielski	@echo ++++++++++++++++++++++++++++++++++++++++++++++++
63*b1cdbd2cSJim Jagielski	@echo 		something is wrong!!
64*b1cdbd2cSJim Jagielski	@echo 		source files but no obj
65*b1cdbd2cSJim Jagielski	@echo ++++++++++++++++++++++++++++++++++++++++++++++++
66*b1cdbd2cSJim Jagielski	force_dmake_to_error
67*b1cdbd2cSJim Jagielski.ENDIF
68*b1cdbd2cSJim Jagielski.ENDIF
69*b1cdbd2cSJim Jagielski.IF "$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)$(PARFILES)"!=""
70*b1cdbd2cSJim Jagielski	@$(IFEXIST) $(MISC)/$(TARGET).dpj $(THEN) $(RM:s/+//) $(MISC)/$(TARGET).dpj >& $(NULLDEV) $(FI)
71*b1cdbd2cSJim Jagielski	@$(IFEXIST) $(MISC)/genjava.mk $(THEN) $(RM:s/+//) $(MISC)/genjava.mk >& $(NULLDEV) $(FI)
72*b1cdbd2cSJim Jagielski	$(TOUCH) $(MISC)/$(TARGET).dpc
73*b1cdbd2cSJim Jagielski.IF "$($(SECOND_BUILD)_SLOFILES)"!=""
74*b1cdbd2cSJim Jagielski	@$(TYPE) $(mktmp $(foreach,i,$($(SECOND_BUILD)_SLOFILES) $(i:d:^"\n")$(SECOND_BUILD)_$(i:f) : $i )) >> $(MISC)/$(TARGET).dpc
75*b1cdbd2cSJim Jagielski.ENDIF
76*b1cdbd2cSJim Jagielski.IF "$($(SECOND_BUILD)_OBJFILES)"!=""
77*b1cdbd2cSJim Jagielski	@$(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
78*b1cdbd2cSJim Jagielski.ENDIF
79*b1cdbd2cSJim Jagielski.ELSE			# "$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)"!=""
80*b1cdbd2cSJim Jagielski	@echo ttt: ppp > $(MISC)/$(TARGET).dpc
81*b1cdbd2cSJim Jagielski.ENDIF			# "$(HDBDEPNTARGET)$(OBJFILES)$(SLOFILES)$(DEPOBJFILES)$(RCFILES)"!=""
82*b1cdbd2cSJim Jagielski.ENDIF			# "$(nodep)"!=""
83*b1cdbd2cSJim Jagielski.ELSE		# anything requiring dependencies
84*b1cdbd2cSJim Jagielski
85*b1cdbd2cSJim JagielskiALLDPC:
86*b1cdbd2cSJim Jagielski	@echo $(EMQ)# > $(MISC)/$(TARGET).dpc
87*b1cdbd2cSJim Jagielski
88*b1cdbd2cSJim JagielskiALLDEP:
89*b1cdbd2cSJim Jagielski    @echo nothing to do here...
90*b1cdbd2cSJim Jagielski
91*b1cdbd2cSJim Jagielski.ENDIF
92*b1cdbd2cSJim Jagielski
93