From e149e8833666aadacd8d12ef48170dcf4c18f4a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Fri, 11 Jul 2008 13:25:00 +0000 Subject: [PATCH] INTEGRATION: CWS jsc21 (1.5.152); FILE MERGED 2008/06/27 08:49:53 jsc 1.5.152.3: #i90032# adapt link flags and linking for MacOS 2008/06/20 11:43:50 jsc 1.5.152.2: #i88797# adapted 2008/05/21 14:57:30 jsc 1.5.152.1: #i88797# adapted to new structure --- .../ProfUNO/SimpleBootstrap_cpp/Makefile | 31 +++++-------------- 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/odk/examples/DevelopersGuide/ProfUNO/SimpleBootstrap_cpp/Makefile b/odk/examples/DevelopersGuide/ProfUNO/SimpleBootstrap_cpp/Makefile index fc515753853f..89a356146208 100644 --- a/odk/examples/DevelopersGuide/ProfUNO/SimpleBootstrap_cpp/Makefile +++ b/odk/examples/DevelopersGuide/ProfUNO/SimpleBootstrap_cpp/Makefile @@ -2,9 +2,9 @@ # # $RCSfile: Makefile,v $ # -# $Revision: 1.5 $ +# $Revision: 1.6 $ # -# last change: $Author: vg $ $Date: 2006-03-15 09:29:18 $ +# last change: $Author: rt $ $Date: 2008-07-11 14:25:00 $ # # The Contents of this file are made available subject to the terms of # the BSD license. @@ -54,23 +54,10 @@ OUT_APP_INC = $(OUT_INC)/$(APP_NAME) OUT_APP_GEN = $(OUT_MISC)/$(APP_NAME) OUT_APP_OBJ=$(OUT_OBJ)/$(APP_NAME) -APP_TYPEFLAG = $(OUT_MISC)/cpp_$(APP_NAME)_types.flag - CXXFILES = SimpleBootstrap_cpp.cxx OBJFILES = $(patsubst %.cxx,$(OUT_SLO_COMP)/%.$(OBJ_EXT),$(CXXFILES)) -TYPES = \ - com.sun.star.lang.XMultiServiceFactory \ - com.sun.star.lang.XComponent \ - com.sun.star.bridge.XUnoUrlResolver \ - com.sun.star.frame.XComponentLoader \ - com.sun.star.lang.XMultiComponentFactory \ - com.sun.star.container.XHierarchicalNameAccess \ - com.sun.star.registry.XSimpleRegistry - -TYPESLIST = $(foreach t,$(TYPES),-T$(t)) - # Targets .PHONY: ALL ALL : \ @@ -78,13 +65,7 @@ ALL : \ include $(SETTINGS)/stdtarget.mk -$(APP_TYPEFLAG) : - -$(MKDIR) $(subst /,$(PS),$(@D)) - -$(DEL) $(subst \\,\,$(subst /,$(PS),$(APP_TYPEFLAG))) - $(CPPUMAKER) -Gc -BUCR -O$(OUT_APP_INC) $(TYPESLIST) $(OFFICE_TYPE_LIBRARY) - echo flagged > $@ - -$(OUT_APP_OBJ)/%.$(OBJ_EXT) : %.cxx $(APP_TYPEFLAG) +$(OUT_APP_OBJ)/%.$(OBJ_EXT) : %.cxx $(SDKTYPEFLAG) -$(MKDIR) $(subst /,$(PS),$(@D)) $(CC) $(CC_FLAGS) $(CC_INCLUDES) -I$(OUT_APP_INC) $(CC_DEFINES) $(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $< @@ -96,7 +77,10 @@ ifeq "$(OS)" "WIN" $< $(CPPUHELPERLIB) $(CPPULIB) $(SALHELPERLIB) $(SALLIB) $(STLPORTLIB) else $(LINK) $(EXE_LINK_FLAGS) $(LINK_LIBS) -o $@ $< \ - $(CPPUHELPERLIB) $(CPPULIB) $(SALHELPERLIB) $(SALLIB) $(STLPORTLIB) $(STDC++LIB) + $(CPPUHELPERLIB) $(CPPULIB) $(SALHELPERLIB) $(SALLIB) $(STLPORTLIB) $(STDC++LIB) $(CPPUHELPERDYLIB) $(CPPUDYLIB) $(SALHELPERDYLIB) $(SALDYLIB) +ifeq "$(OS)" "MACOSX" + $(INSTALL_NAME_URELIBS_BIN) $@ +endif endif $(OUT_BIN)/$(APP_NAME)$(EXE_EXT) : $(OUT_BIN)/_$(APP_NAME)$(EXE_EXT) @@ -120,5 +104,4 @@ clean : -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_APP_INC)) -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_APP_GEN)) -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_APP_OBJ)) - -$(DEL) $(subst \\,\,$(subst /,$(PS),$(APP_TYPEFLAG))) -$(DEL) $(subst \\,\,$(subst /,$(PS),$(OUT_BIN)/*SimpleBootstrap*))