1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 29*cdf0e10cSrcweir#+++++++++++ second_build rules +++++++++++++++++++++++++++++++++++++ 30*cdf0e10cSrcweir#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir.IF "$(SECOND_BUILD)"!="" 33*cdf0e10cSrcweir.IF "$($(SECOND_BUILD)_OBJFILES)"!="" 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir$(OBJ)/$(SECOND_BUILD)_%.obj : %.cxx 36*cdf0e10cSrcweir @echo "Making: " $@ 37*cdf0e10cSrcweir.IF "$(GUI)"=="UNX" 38*cdf0e10cSrcweir @$(RM) $@ $(@:s/.obj/.o/) 39*cdf0e10cSrcweir $(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXOBJ) $(CFLAGSOBJ) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$(SECOND_BUILD)_$*.o $(CFLAGSINCXX)$(PWD)/$*.cxx 40*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"=="" 41*cdf0e10cSrcweir $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/) 42*cdf0e10cSrcweir.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"=="" 43*cdf0e10cSrcweir @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI) 44*cdf0e10cSrcweir.ELSE 45*cdf0e10cSrcweir @$(IFEXIST) $@ $(THEN) $(RM:s/+//) $@ >& $(NULLDEV) $(FI) 46*cdf0e10cSrcweir $(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSOBJ) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)/$(SECOND_BUILD)_$*.obj $(CFLAGSINCXX)$(PWD)/$*.cxx 47*cdf0e10cSrcweir.ENDIF 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir$(OBJ)/$(SECOND_BUILD)_%.obj : %.c 50*cdf0e10cSrcweir @echo "Making: " $@ 51*cdf0e10cSrcweir.IF "$(GUI)"=="UNX" 52*cdf0e10cSrcweir.IF "$(TEST)"!="" 53*cdf0e10cSrcweir $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) -E $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$(SECOND_BUILD)_$*.o $*.c 54*cdf0e10cSrcweir.ELSE 55*cdf0e10cSrcweir @$(RM) $@ $(@:s/.obj/.o/) 56*cdf0e10cSrcweir $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(OBJ)/$(SECOND_BUILD)_$*.o $*.c 57*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"=="" 58*cdf0e10cSrcweir $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/) 59*cdf0e10cSrcweir.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"=="" 60*cdf0e10cSrcweir @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI) 61*cdf0e10cSrcweir.ENDIF 62*cdf0e10cSrcweir.ELSE 63*cdf0e10cSrcweir @$(TYPE) $(mktmp $(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)\$(SECOND_BUILD)_$*.obj $*.c ) 64*cdf0e10cSrcweir @echo. 65*cdf0e10cSrcweir.IF "$(COM)"=="GCC" 66*cdf0e10cSrcweir $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)\$(SECOND_BUILD)_$*.obj $*.c 67*cdf0e10cSrcweir.ELSE 68*cdf0e10cSrcweir $(COMMAND_ECHO)$(CC) @$(mktmp $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSOBJ) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSOBJ) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(OBJ)\$(SECOND_BUILD)_$*.obj $*.c ) 69*cdf0e10cSrcweir.ENDIF 70*cdf0e10cSrcweir $(SEMADEBUG) 71*cdf0e10cSrcweir.ENDIF 72*cdf0e10cSrcweir 73*cdf0e10cSrcweir.ENDIF # "$($(SECOND_BUILD)_OBJFILES)"!="" 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir.IF "$($(SECOND_BUILD)_SLOFILES)"!="" 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir$(SLO)/$(SECOND_BUILD)_%.obj : %.cxx 78*cdf0e10cSrcweir @echo "Making: " $@ 79*cdf0e10cSrcweir.IF "$(GUI)"=="UNX" 80*cdf0e10cSrcweir @$(RM) $@ $(@:s/.obj/.o/) 81*cdf0e10cSrcweir $(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSCXXSLO) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$(SECOND_BUILD)_$*.o $(CFLAGSINCXX)$(PWD)/$*.cxx 82*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"=="" 83*cdf0e10cSrcweir $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/) 84*cdf0e10cSrcweir.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"=="" 85*cdf0e10cSrcweir @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI) 86*cdf0e10cSrcweir.ELSE 87*cdf0e10cSrcweir @-$(RM) $@ 88*cdf0e10cSrcweir.IF "$(COM)"=="GCC" 89*cdf0e10cSrcweir $(COMMAND_ECHO)$(CXX) $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$(SECOND_BUILD)_$*.obj $(CFLAGSINCXX)$(PWD)/$*.cxx 90*cdf0e10cSrcweir.ELSE 91*cdf0e10cSrcweir $(COMMAND_ECHO)$(CXX) @$(mktmp $(CFLAGS) $(INCLUDE) $(CFLAGSCXX) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(!eq,$(EXCEPTIONSFILES),$(subst,$@, $(EXCEPTIONSFILES)) $(LOCAL_EXCEPTIONS_FLAGS) $(GLOBAL_EXCEPTIONS_FLAGS)) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$(SECOND_BUILD)_$*.obj $(CFLAGSINCXX)$(PWD)/$*.cxx ) 92*cdf0e10cSrcweir.ENDIF 93*cdf0e10cSrcweir.ENDIF 94*cdf0e10cSrcweir 95*cdf0e10cSrcweir$(SLO)/$(SECOND_BUILD)_%.obj : %.c 96*cdf0e10cSrcweir @echo "Making: " $@ 97*cdf0e10cSrcweir.IF "$(GUI)"=="UNX" 98*cdf0e10cSrcweir @$(RM) $@ $(@:s/.obj/.o/) 99*cdf0e10cSrcweir $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ) $(SLO)/$(SECOND_BUILD)_$*.o $*.c 100*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"=="" 101*cdf0e10cSrcweir $(COMMAND_ECHO)$(ADJUSTVISIBILITY) -p $(@:s/.obj/.o/) 102*cdf0e10cSrcweir.ENDIF # "$(OS)"=="SOLARIS" && "$(product)"=="full" && "$(debug)"=="" 103*cdf0e10cSrcweir @$(IFEXIST) $(@:s/.obj/.o/) $(THEN) $(TOUCH) $@ $(FI) 104*cdf0e10cSrcweir.ELSE 105*cdf0e10cSrcweir @-$(RM) $@ 106*cdf0e10cSrcweir.IF "$(COM)"=="GCC" 107*cdf0e10cSrcweir $(COMMAND_ECHO)$(CC) $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$(SECOND_BUILD)_$*.obj $*.c 108*cdf0e10cSrcweir.ELSE 109*cdf0e10cSrcweir $(COMMAND_ECHO)$(TYPE) $(mktmp $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$(SECOND_BUILD)_$*.obj $*.c ) 110*cdf0e10cSrcweir $(COMMAND_ECHO)$(CC) @$(mktmp $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CFLAGSSLO) $(CDEFS) $($(SECOND_BUILD)CDEFS) $(CDEFSSLO) $(CDEFSMT) $(CFLAGSAPPEND) $(CFLAGSOUTOBJ)$(SLO)/$(SECOND_BUILD)_$*.obj $*.c ) 111*cdf0e10cSrcweir.ENDIF 112*cdf0e10cSrcweir.ENDIF 113*cdf0e10cSrcweir 114*cdf0e10cSrcweir.ENDIF # "$($(SECOND_BUILD)_SLOFILES)"!="" 115*cdf0e10cSrcweir.ENDIF # "$(SECOND_BUILD)"!="" 116*cdf0e10cSrcweir 117*cdf0e10cSrcweir#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 118*cdf0e10cSrcweir#+++++++++++ srcipting rules ++++++++++++++++++++++++++++++++++++++++ 119*cdf0e10cSrcweir#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir.IF "$(PARFILES)"!="" 122*cdf0e10cSrcweirULFPARFILES=$(foreach,i,$(ULFFILES) $(foreach,j,$(SCP_PRODUCT_TYPE) $(PAR)/$j/$(i:b).par)) 123*cdf0e10cSrcweirMOREPARFILES=$(foreach,i,$(PARFILES) $(foreach,j,$(SCP_PRODUCT_TYPE) $(PAR)/$j/$i )) 124*cdf0e10cSrcweirALLPARFILES=$(uniq $(ULFPARFILES) $(MOREPARFILES)) 125*cdf0e10cSrcweir 126*cdf0e10cSrcweirSCP_PRODUCT_TYPE*=FAT 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir.IF "$(GUI)" == "WNT" 129*cdf0e10cSrcweirLANGFILEEXT=mlf 130*cdf0e10cSrcweir.ELSE 131*cdf0e10cSrcweirLANGFILEEXT=jlf 132*cdf0e10cSrcweir.ENDIF 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir$(PAR)/%.par : 135*cdf0e10cSrcweir @echo "Making: " $@ 136*cdf0e10cSrcweir @@-$(MKDIR) $(MISC)/{$(subst,$(@:d:d:d), $(@:d:d))} 137*cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 138*cdf0e10cSrcweir $(COMMAND_ECHO)$(CPPLCC) -+ -P $(INCLUDE) $(CDEFS) $(SCPDEFS) -DDLLPOSTFIX=$(DLLPOSTFIX) $(*:b).scp > $(MISC)/{$(subst,$(@:d:d:d), $(@:d:d))}/$(*:b).pre 139*cdf0e10cSrcweir.ENDIF 140*cdf0e10cSrcweir# YD: INCLUDE macro too long, include only few items (scp2 compile) 141*cdf0e10cSrcweir.IF "$(GUI)"=="OS2" 142*cdf0e10cSrcweir $(CPPLCC) -+ -P -I..\..\inc -I..\..\os2gcci.pro\inc $(CDEFS) $(SCPDEFS) -DDLLPOSTFIX=$(DLLPOSTFIX) $(*:b).scp > $(MISC)$/{$(subst,$(@:d:d:d), $(@:d:d))}$/$(*:b).pre 143*cdf0e10cSrcweir.ENDIF 144*cdf0e10cSrcweir.IF "$(GUI)"=="UNX" 145*cdf0e10cSrcweir $(COMMAND_ECHO)$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/cpp.lcc -+ -P $(CDEFS) $(SCPDEFS) -DDLLPOSTFIX=$(DLLPOSTFIX) -I. -I$(INC) -I$(INCLOCAL) -I$(INCGUI) -I$(INCCOM) $(SOLARINC) $(*:b).scp > $(MISC)/{$(subst,$(@:d:d:d), $(@:d:d))}/$(*:b).pre 146*cdf0e10cSrcweir.ENDIF 147*cdf0e10cSrcweir.IF "$(common_build_srs)"!="" 148*cdf0e10cSrcweir $(COMMAND_ECHO)$(SCPCOMP) -l {$(subst,$(OUTPATH),$(COMMON_OUTDIR) $(MISC))/$(TARGET)/$(@:b).$(LANGFILEEXT)} -s $(MISC)/{$(subst,$(@:d:d:d), $(@:d:d))}/$(*:b).pre -o $@ 149*cdf0e10cSrcweir.ELSE # "$(common_build_srs)"!="" 150*cdf0e10cSrcweir $(COMMAND_ECHO)$(SCPCOMP) -l {$(MISC)/$(TARGET)/$(@:b).$(LANGFILEEXT)} -s $(MISC)/{$(subst,$(@:d:d:d), $(@:d:d))}/$(*:b).pre -o $@ 151*cdf0e10cSrcweir.ENDIF # "$(common_build_srs)"!="" 152*cdf0e10cSrcweir# hacked version 153*cdf0e10cSrcweir# $(COMMAND_ECHO)$(SCPCOMP) -l $(@:b).$(LANGFILEEXT) -s $(MISC)/{$(subst,$(@:d:d:d), $(@:d:d))}/$(*:b).pre -o $@ 154*cdf0e10cSrcweir 155*cdf0e10cSrcweir.ENDIF # "$(PARFILES)"!="" 156