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