1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# The Contents of this file are made available subject to the terms of 4*cdf0e10cSrcweir# the BSD license. 5*cdf0e10cSrcweir# 6*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 7*cdf0e10cSrcweir# All rights reserved. 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# Redistribution and use in source and binary forms, with or without 10*cdf0e10cSrcweir# modification, are permitted provided that the following conditions 11*cdf0e10cSrcweir# are met: 12*cdf0e10cSrcweir# 1. Redistributions of source code must retain the above copyright 13*cdf0e10cSrcweir# notice, this list of conditions and the following disclaimer. 14*cdf0e10cSrcweir# 2. Redistributions in binary form must reproduce the above copyright 15*cdf0e10cSrcweir# notice, this list of conditions and the following disclaimer in the 16*cdf0e10cSrcweir# documentation and/or other materials provided with the distribution. 17*cdf0e10cSrcweir# 3. Neither the name of Sun Microsystems, Inc. nor the names of its 18*cdf0e10cSrcweir# contributors may be used to endorse or promote products derived 19*cdf0e10cSrcweir# from this software without specific prior written permission. 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22*cdf0e10cSrcweir# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23*cdf0e10cSrcweir# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 24*cdf0e10cSrcweir# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 25*cdf0e10cSrcweir# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 26*cdf0e10cSrcweir# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27*cdf0e10cSrcweir# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 28*cdf0e10cSrcweir# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 29*cdf0e10cSrcweir# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 30*cdf0e10cSrcweir# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 31*cdf0e10cSrcweir# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32*cdf0e10cSrcweir# 33*cdf0e10cSrcweir#************************************************************************** 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir# Builds the C++ component example of the Developers Guide. 36*cdf0e10cSrcweir 37*cdf0e10cSrcweirPRJ=../../../.. 38*cdf0e10cSrcweirSETTINGS=$(PRJ)/settings 39*cdf0e10cSrcweir 40*cdf0e10cSrcweirinclude $(SETTINGS)/settings.mk 41*cdf0e10cSrcweirinclude $(SETTINGS)/std.mk 42*cdf0e10cSrcweirinclude $(SETTINGS)/dk.mk 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir# Define non-platform/compiler specific settings 45*cdf0e10cSrcweirSAMPLE_NAME=CppComponentSample 46*cdf0e10cSrcweirSAMPLE_INC_OUT=$(OUT_INC)/$(SAMPLE_NAME) 47*cdf0e10cSrcweirSAMPLE_GEN_OUT=$(OUT_MISC)/$(SAMPLE_NAME) 48*cdf0e10cSrcweirSAMPLE_SLO_OUT=$(OUT_SLO)/$(SAMPLE_NAME) 49*cdf0e10cSrcweirSAMPLE_OBJ_OUT=$(OUT_OBJ)/$(SAMPLE_NAME) 50*cdf0e10cSrcweir 51*cdf0e10cSrcweirCOMP_NAME=CppComponent 52*cdf0e10cSrcweirCOMP_IMPL_NAME=$(COMP_NAME).uno.$(SHAREDLIB_EXT) 53*cdf0e10cSrcweir 54*cdf0e10cSrcweirAPP1_NAME= TestCppComponent 55*cdf0e10cSrcweirAPP1_BINARY= $(OUT_BIN)/$(APP1_NAME)$(EXE_EXT) 56*cdf0e10cSrcweir 57*cdf0e10cSrcweirCOMP_RDB_NAME = $(COMP_NAME).uno.rdb 58*cdf0e10cSrcweirCOMP_RDB = $(SAMPLE_GEN_OUT)/$(COMP_RDB_NAME) 59*cdf0e10cSrcweirCOMP_PACKAGE = $(OUT_BIN)/$(COMP_NAME).$(UNOOXT_EXT) 60*cdf0e10cSrcweirCOMP_PACKAGE_URL = $(subst \\,\,"$(COMP_PACKAGE_DIR)$(PS)$(COMP_NAME).$(UNOOXT_EXT)") 61*cdf0e10cSrcweirCOMP_UNOPKG_MANIFEST = $(SAMPLE_GEN_OUT)/$(COMP_NAME)/META-INF/manifest.xml 62*cdf0e10cSrcweir#COMP_MAPFILE = $(SAMPLE_GEN_OUT)/$(COMP_NAME).uno.map 63*cdf0e10cSrcweirCOMP_COMPONENTS = $(SAMPLE_GEN_OUT)/$(COMP_NAME).components 64*cdf0e10cSrcweir 65*cdf0e10cSrcweirCOMP_REGISTERFLAG = $(SAMPLE_GEN_OUT)/devguide_$(COMP_NAME)_register_component.flag 66*cdf0e10cSrcweirCOMP_TYPEFLAG = $(SAMPLE_GEN_OUT)/devguide_$(COMP_NAME)_types.flag 67*cdf0e10cSrcweir 68*cdf0e10cSrcweirIDLFILES = some.idl 69*cdf0e10cSrcweir 70*cdf0e10cSrcweirCXXFILES = service1_impl.cxx \ 71*cdf0e10cSrcweir service2_impl.cxx 72*cdf0e10cSrcweir 73*cdf0e10cSrcweirSLOFILES = $(patsubst %.cxx,$(SAMPLE_SLO_OUT)/%.$(OBJ_EXT),$(CXXFILES)) 74*cdf0e10cSrcweir 75*cdf0e10cSrcweirGENURDFILES = $(patsubst %.idl,$(SAMPLE_GEN_OUT)/%.urd,$(IDLFILES)) 76*cdf0e10cSrcweir 77*cdf0e10cSrcweirTYPELIST=-Tmy_module.XSomething \ 78*cdf0e10cSrcweir -Tmy_modules.MyService1 \ 79*cdf0e10cSrcweir -Tmy_module.MyService2 80*cdf0e10cSrcweir 81*cdf0e10cSrcweir# Targets 82*cdf0e10cSrcweir.PHONY: ALL 83*cdf0e10cSrcweirALL : \ 84*cdf0e10cSrcweir $(SAMPLE_NAME) 85*cdf0e10cSrcweir 86*cdf0e10cSrcweirinclude $(SETTINGS)/stdtarget.mk 87*cdf0e10cSrcweir 88*cdf0e10cSrcweir$(SAMPLE_GEN_OUT)/%.urd : %.idl 89*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(@D)) 90*cdf0e10cSrcweir $(IDLC) -I. -I$(IDL_DIR) -O$(SAMPLE_GEN_OUT) $< 91*cdf0e10cSrcweir 92*cdf0e10cSrcweir$(SAMPLE_GEN_OUT)/%.rdb : $(GENURDFILES) 93*cdf0e10cSrcweir -$(DEL) $(subst \\,\,$(subst /,$(PS),$@)) 94*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(@D)) 95*cdf0e10cSrcweir $(REGMERGE) $@ /UCR $(GENURDFILES) 96*cdf0e10cSrcweir 97*cdf0e10cSrcweir$(COMP_TYPEFLAG) : $(COMP_RDB) $(SDKTYPEFLAG) 98*cdf0e10cSrcweir -$(DEL) $(subst \\,\,$(subst /,$(PS),$@)) 99*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(@D)) 100*cdf0e10cSrcweir $(CPPUMAKER) -Gc -BUCR -O$(SAMPLE_INC_OUT) $(TYPESLIST) $(COMP_RDB) -X$(URE_TYPES) -X$(OFFICE_TYPES) 101*cdf0e10cSrcweir echo flagged > $@ 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir$(SAMPLE_SLO_OUT)/%.$(OBJ_EXT) : %.cxx $(COMP_TYPEFLAG) 104*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(@D)) 105*cdf0e10cSrcweir $(CC) $(CC_FLAGS) $(CC_INCLUDES) -I$(SAMPLE_INC_OUT) $(CC_DEFINES) $(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $< 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir#$(COMP_MAPFILE) : $(SLOFILES) 108*cdf0e10cSrcweir# -$(MKDIR) $(subst /,$(PS),$(@D)) 109*cdf0e10cSrcweir# cat $(PRJ)/settings/component.uno.map > $(COMP_MAPFILE) 110*cdf0e10cSrcweir#ifeq "$(OS)" "MACOSX" 111*cdf0e10cSrcweir# nm -gx $(SLOFILES) | $(ADDSYMBOLS) >> $(COMP_MAPFILE) 112*cdf0e10cSrcweir#endif 113*cdf0e10cSrcweir 114*cdf0e10cSrcweirifeq "$(OS)" "WIN" 115*cdf0e10cSrcweir$(SHAREDLIB_OUT)/%.$(SHAREDLIB_EXT) : $(SLOFILES) 116*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(@D)) 117*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(SAMPLE_GEN_OUT)) 118*cdf0e10cSrcweir $(LINK) $(COMP_LINK_FLAGS) /OUT:$@ \ 119*cdf0e10cSrcweir /MAP:$(SAMPLE_GEN_OUT)/$(subst $(SHAREDLIB_EXT),map,$(@F)) $(SLOFILES) \ 120*cdf0e10cSrcweir $(CPPUHELPERLIB) $(CPPULIB) $(SALLIB) $(STLPORTLIB) msvcrt.lib kernel32.lib 121*cdf0e10cSrcweir $(LINK_MANIFEST) 122*cdf0e10cSrcweirelse 123*cdf0e10cSrcweir#$(SHAREDLIB_OUT)/%.$(SHAREDLIB_EXT) : $(SLOFILES) $(COMP_MAPFILE) 124*cdf0e10cSrcweir$(SHAREDLIB_OUT)/%.$(SHAREDLIB_EXT) : $(SLOFILES) 125*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(@D)) && $(DEL) $(subst \\,\,$(subst /,$(PS),$@)) 126*cdf0e10cSrcweir $(LINK) $(COMP_LINK_FLAGS) $(LINK_LIBS) -o $@ $(SLOFILES) \ 127*cdf0e10cSrcweir $(CPPUHELPERLIB) $(CPPULIB) $(SALLIB) $(STLPORTLIB) $(STC++LIB) $(CPPUHELPERDYLIB) $(CPPUDYLIB) $(SALDYLIB) 128*cdf0e10cSrcweirifeq "$(OS)" "MACOSX" 129*cdf0e10cSrcweir $(INSTALL_NAME_URELIBS) $@ 130*cdf0e10cSrcweirendif 131*cdf0e10cSrcweirendif 132*cdf0e10cSrcweir 133*cdf0e10cSrcweir# rule for component package manifest 134*cdf0e10cSrcweir$(SAMPLE_GEN_OUT)/%/manifest.xml : 135*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(@D)) 136*cdf0e10cSrcweir @echo $(OSEP)?xml version="$(QM)1.0$(QM)" encoding="$(QM)UTF-8$(QM)"?$(CSEP) > $@ 137*cdf0e10cSrcweir @echo $(OSEP)!DOCTYPE manifest:manifest PUBLIC "$(QM)-//OpenOffice.org//DTD Manifest 1.0//EN$(QM)" "$(QM)Manifest.dtd$(QM)"$(CSEP) >> $@ 138*cdf0e10cSrcweir @echo $(OSEP)manifest:manifest xmlns:manifest="$(QM)http://openoffice.org/2001/manifest$(QM)"$(CSEP) >> $@ 139*cdf0e10cSrcweir @echo $(SQM) $(SQM)$(OSEP)manifest:file-entry manifest:media-type="$(QM)application/vnd.sun.star.uno-typelibrary;type=RDB$(QM)" >> $@ 140*cdf0e10cSrcweir @echo $(SQM) $(SQM)manifest:full-path="$(QM)$(subst /META-INF,,$(subst $(SAMPLE_GEN_OUT)/,,$(@D))).uno.rdb$(QM)"/$(CSEP) >> $@ 141*cdf0e10cSrcweir @echo $(SQM) $(SQM)$(OSEP)manifest:file-entry manifest:media-type="$(QM)application/vnd.sun.star.uno-components;platform=$(UNOPKG_PLATFORM)$(QM)">> $@ 142*cdf0e10cSrcweir @echo $(SQM) $(SQM)manifest:full-path="$(QM)$(COMP_NAME).components$(QM)"/$(CSEP)>> $@ 143*cdf0e10cSrcweir @echo $(OSEP)/manifest:manifest$(CSEP) >> $@ 144*cdf0e10cSrcweir 145*cdf0e10cSrcweir$(COMP_COMPONENTS) : 146*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(@D)) 147*cdf0e10cSrcweir @echo $(OSEP)?xml version="$(QM)1.0$(QM)" encoding="$(QM)UTF-8$(QM)"?$(CSEP) > $@ 148*cdf0e10cSrcweir @echo $(OSEP)components xmlns="$(QM)http://openoffice.org/2010/uno-components$(QM)"$(CSEP) >> $@ 149*cdf0e10cSrcweir @echo $(SQM) $(SQM)$(OSEP)component loader="$(QM)com.sun.star.loader.SharedLibrary$(QM)" uri="$(QM)$(UNOPKG_PLATFORM)/$(COMP_IMPL_NAME)$(QM)"$(CSEP) >> $@ 150*cdf0e10cSrcweir @echo $(SQM) $(SQM)$(OSEP)implementation name="$(QM)my_module.my_sc_implementation.MyService1$(QM)"$(CSEP) >> $@ 151*cdf0e10cSrcweir @echo $(SQM) $(SQM)$(OSEP)service name="$(QM)my_module.MyService1$(QM)"/$(CSEP) >> $@ 152*cdf0e10cSrcweir @echo $(SQM) $(SQM)$(OSEP)/implementation$(CSEP) >> $@ 153*cdf0e10cSrcweir @echo $(SQM) $(SQM)$(OSEP)implementation name="$(QM)my_module.my_sc_implementation.MyService2$(QM)"$(CSEP) >> $@ 154*cdf0e10cSrcweir @echo $(SQM) $(SQM)$(OSEP)service name="$(QM)my_module.MyService2$(QM)"/$(CSEP) >> $@ 155*cdf0e10cSrcweir @echo $(SQM) $(SQM)$(OSEP)/implementation$(CSEP) >> $@ 156*cdf0e10cSrcweir @echo $(SQM) $(SQM)$(OSEP)/component$(CSEP) >> $@ 157*cdf0e10cSrcweir @echo $(OSEP)/components$(CSEP) >> $@ 158*cdf0e10cSrcweir 159*cdf0e10cSrcweir$(COMP_PACKAGE) : $(SHAREDLIB_OUT)/$(COMP_IMPL_NAME) $(COMP_RDB) $(COMP_UNOPKG_MANIFEST) $(COMP_COMPONENTS) 160*cdf0e10cSrcweir -$(DEL) $(subst \\,\,$(subst /,$(PS),$@)) 161*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(@D)) 162*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(SAMPLE_GEN_OUT)/$(UNOPKG_PLATFORM)) 163*cdf0e10cSrcweir $(COPY) $(subst /,$(PS),$<) $(subst /,$(PS),$(SAMPLE_GEN_OUT)/$(UNOPKG_PLATFORM)) 164*cdf0e10cSrcweir cd $(subst /,$(PS),$(SAMPLE_GEN_OUT)) && $(SDK_ZIP) ../../bin/$(@F) $(COMP_NAME).components 165*cdf0e10cSrcweir cd $(subst /,$(PS),$(SAMPLE_GEN_OUT)) && $(SDK_ZIP) -u ../../bin/$(@F) $(COMP_RDB_NAME) $(UNOPKG_PLATFORM)/$(<F) 166*cdf0e10cSrcweir cd $(subst /,$(PS),$(SAMPLE_GEN_OUT)/$(subst .$(UNOOXT_EXT),,$(@F))) && $(SDK_ZIP) -u ../../../bin/$(@F) META-INF/manifest.xml 167*cdf0e10cSrcweir 168*cdf0e10cSrcweir 169*cdf0e10cSrcweir$(COMP_REGISTERFLAG) : $(COMP_PACKAGE) 170*cdf0e10cSrcweirifeq "$(SDK_AUTO_DEPLOYMENT)" "YES" 171*cdf0e10cSrcweir -$(DEL) $(subst \\,\,$(subst /,$(PS),$@)) 172*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(@D)) 173*cdf0e10cSrcweir $(DEPLOYTOOL) $(COMP_PACKAGE_URL) 174*cdf0e10cSrcweir @echo flagged > $(subst /,$(PS),$@) 175*cdf0e10cSrcweirelse 176*cdf0e10cSrcweir @echo -------------------------------------------------------------------------------- 177*cdf0e10cSrcweir @echo If you want to install your component automatically, please set the environment 178*cdf0e10cSrcweir @echo variable SDK_AUTO_DEPLOYMENT = YES. But note that auto deployment is only 179*cdf0e10cSrcweir @echo possible if no office instance is running. 180*cdf0e10cSrcweir @echo -------------------------------------------------------------------------------- 181*cdf0e10cSrcweirendif 182*cdf0e10cSrcweir 183*cdf0e10cSrcweir$(SAMPLE_OBJ_OUT)/$(APP1_NAME).$(OBJ_EXT) : $(APP1_NAME).cxx $(COMP_TYPEFLAG) 184*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(@D)) 185*cdf0e10cSrcweir $(CC) $(CC_FLAGS) $(CC_INCLUDES) -I$(SAMPLE_INC_OUT) $(CC_DEFINES) $(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $< 186*cdf0e10cSrcweir 187*cdf0e10cSrcweir$(OUT_BIN)/_$(APP1_NAME)$(EXE_EXT) : $(SAMPLE_OBJ_OUT)/$(APP1_NAME).$(OBJ_EXT) 188*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(@D)) 189*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(SAMPLE_GEN_OUT)) 190*cdf0e10cSrcweirifeq "$(OS)" "WIN" 191*cdf0e10cSrcweir $(LINK) $(EXE_LINK_FLAGS) /OUT:$@ /MAP:$(SAMPLE_GEN_OUT)/$(basename $(@F)).map \ 192*cdf0e10cSrcweir $< $(CPPUHELPERLIB) $(CPPULIB) $(SALHELPERLIB) $(SALLIB) $(STLPORTLIB) 193*cdf0e10cSrcweirelse 194*cdf0e10cSrcweir $(LINK) $(EXE_LINK_FLAGS) $(LINK_LIBS) -o $@ $< \ 195*cdf0e10cSrcweir $(CPPUHELPERLIB) $(CPPULIB) $(SALHELPERLIB) $(SALLIB) $(STLPORTLIB) $(STDC++LIB) $(CPPUHELPERDYLIB) $(CPPUDYLIB) $(SALHELPERDYLIB) $(SALDYLIB) 196*cdf0e10cSrcweirifeq "$(OS)" "MACOSX" 197*cdf0e10cSrcweir $(INSTALL_NAME_URELIBS_BIN) $@ 198*cdf0e10cSrcweirendif 199*cdf0e10cSrcweirendif 200*cdf0e10cSrcweir 201*cdf0e10cSrcweir$(OUT_BIN)/$(APP1_NAME)$(EXE_EXT) : $(OUT_BIN)/_$(APP1_NAME)$(EXE_EXT) 202*cdf0e10cSrcweir $(COPY) $(subst /,$(PS),$(BIN_DIR)/unoapploader$(EXE_EXT)) $(subst /,$(PS),$@) 203*cdf0e10cSrcweir# touch the target to renew the date for correct dependencies. 204*cdf0e10cSrcweir# Note: no touch under windows! The unoapploader.exe is copied always. 205*cdf0e10cSrcweirifneq "$(OS)" "WIN" 206*cdf0e10cSrcweir touch $@ 207*cdf0e10cSrcweirendif 208*cdf0e10cSrcweir 209*cdf0e10cSrcweir$(SAMPLE_NAME) : $(COMP_REGISTERFLAG) $(APP1_BINARY) 210*cdf0e10cSrcweir @echo -------------------------------------------------------------------------------- 211*cdf0e10cSrcweir @echo Please use the following command to execute the example! 212*cdf0e10cSrcweir @echo - 213*cdf0e10cSrcweir @echo $(MAKE) $(APP1_NAME).run 214*cdf0e10cSrcweir @echo -------- 215*cdf0e10cSrcweir @echo The simple C++ component was installed if SDK_AUTO_DEPLOYMENT = YES. 216*cdf0e10cSrcweir @echo You can use this component inside your office installation, see the example 217*cdf0e10cSrcweir @echo description. You can also load the "$(QM)SimpleComponent.odt$(QM)" document containing 218*cdf0e10cSrcweir @echo a StarBasic macro which uses this component. 219*cdf0e10cSrcweir @echo - 220*cdf0e10cSrcweir @echo $(MAKE) SimpleComponent.odt.load 221*cdf0e10cSrcweir @echo -------------------------------------------------------------------------------- 222*cdf0e10cSrcweir 223*cdf0e10cSrcweir%.run: $(OUT_BIN)/%$(EXE_EXT) 224*cdf0e10cSrcweir $(subst /,$(PS),$(OUT_BIN))$(PS)$(basename $@) 225*cdf0e10cSrcweir# cd $(subst /,$(PS),$(OUT_BIN)) && $(basename $@) 226*cdf0e10cSrcweir 227*cdf0e10cSrcweirSimpleComponent.odt.load : $(COMP_REGISTERFLAG) 228*cdf0e10cSrcweir "$(OFFICE_PROGRAM_PATH)$(PS)soffice" $(basename $@) 229*cdf0e10cSrcweir 230*cdf0e10cSrcweir.PHONY: clean 231*cdf0e10cSrcweirclean : 232*cdf0e10cSrcweir -$(DELRECURSIVE) $(subst /,$(PS),$(SAMPLE_INC_OUT)) 233*cdf0e10cSrcweir -$(DELRECURSIVE) $(subst /,$(PS),$(SAMPLE_GEN_OUT)) 234*cdf0e10cSrcweir -$(DELRECURSIVE) $(subst /,$(PS),$(SAMPLE_SLO_OUT)) 235*cdf0e10cSrcweir -$(DELRECURSIVE) $(subst /,$(PS),$(SAMPLE_OBJ_OUT)) 236*cdf0e10cSrcweir -$(DEL) $(subst \\,\,$(subst /,$(PS),$(COMP_COMPONENTS))) 237*cdf0e10cSrcweir -$(DEL) $(subst \\,\,$(subst /,$(PS),$(OUT_BIN)/$(COMP_NAME)*)) 238*cdf0e10cSrcweir -$(DEL) $(subst \\,\,$(subst /,$(PS),$(OUT_BIN)/*$(APP1_NAME)*)) 239