From ebb964948d78f0cb0ac3b06b151be317a264a4c9 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 22 Sep 2006 11:29:56 +0000 Subject: [PATCH] Modify Makefiles to have SALOME style link both in Session (full salome) and SUITApp (light salome) subfolders --- src/Makefile.in | 4 ++-- src/SUITApp/Makefile.in | 12 ++++++++++++ src/Session/Makefile.in | 12 ++++++++++++ src/Style/Makefile.in | 19 +++++++++++++------ 4 files changed, 39 insertions(+), 8 deletions(-) diff --git a/src/Makefile.in b/src/Makefile.in index 0bd6d185f..f55c420e7 100755 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -32,7 +32,7 @@ VPATH=.:@srcdir@ @COMMENCE@ -SUBDIRS = Qtx DDS QDS SUIT STD CAF CAM SUITApp LogWindow ObjBrowser Prs +SUBDIRS = Qtx Style DDS QDS SUIT STD CAF CAM SUITApp LogWindow ObjBrowser Prs ifneq ($(DISABLE_SALOMEOBJECT),yes) SUBDIRS += OBJECT @@ -66,7 +66,7 @@ endif ifneq ($(DISABLE_SUPERVGRAPHVIEWER),yes) SUBDIRS += SUPERVGraph endif -SUBDIRS += LightApp Style ResExporter +SUBDIRS += LightApp ResExporter ifneq ($(GUI_DISABLE_CORBA),yes) SUBDIRS += RegistryDisplay TOOLSGUI \ diff --git a/src/SUITApp/Makefile.in b/src/SUITApp/Makefile.in index 17601209e..4166f2312 100644 --- a/src/SUITApp/Makefile.in +++ b/src/SUITApp/Makefile.in @@ -57,6 +57,18 @@ endif LIBS+= -lsuit -lqtx LIBSFORBIN+= -lsuit -lqtx +PLUGINDIR = $(top_builddir)/bin/salome/styles +MYPLUGINDIR = styles + +$(MYPLUGINDIR): $(PLUGINDIR) + -$(RM) $@ + ln -sf $< $@ + +$(PLUGINDIR): + mkdir -p $@ + +bin: $(MYPLUGINDIR) + @CONCLUDE@ diff --git a/src/Session/Makefile.in b/src/Session/Makefile.in index a02da3494..6910337d0 100755 --- a/src/Session/Makefile.in +++ b/src/Session/Makefile.in @@ -65,5 +65,17 @@ LDFLAGS += $(QT_MT_LIBS) $(KERNEL_LDFLAGS) -lSalomeNS -lsuit -lSalomeLifeCycleCO LDFLAGSFORBIN= $(LDFLAGS) $(OMNIORB_LIBS) $(HDF5_LIBS) -lqtx -lSalomeContainer -lSalomeResourcesManager -lTOOLSDS -lSalomeHDFPersist -lSalomeDSImpl -lSalomeGenericObj -lRegistry -lSalomeNotification -lSALOMEBasics +PLUGINDIR = $(top_builddir)/bin/salome/styles +MYPLUGINDIR = styles + +$(MYPLUGINDIR): $(PLUGINDIR) + -$(RM) $@ + ln -sf $< $@ + +$(PLUGINDIR): + mkdir -p $@ + +bin: $(MYPLUGINDIR) + @CONCLUDE@ diff --git a/src/Style/Makefile.in b/src/Style/Makefile.in index 6de6bc78d..445b89d3a 100644 --- a/src/Style/Makefile.in +++ b/src/Style/Makefile.in @@ -50,16 +50,23 @@ CPPFLAGS+=$(QT_INCLUDES) LDFLAGS+=$(QT_MT_LIBS) LIBS+= -# create $(top_builddir)/src/Session/styles directory and copy libSalomeStyle.so there -LIB_PLUGINDIR = $(top_builddir)/src/Session/styles -LIB_PLUGINLIB = $(patsubst %.la, $(LIB_PLUGINDIR)/%.so, $(filter %.la, $(LIB))) +# create $(top_builddir)/bin/salome/styles directory and +# make link to the libSalomeStyle.so there +PLUGINDIR = $(top_builddir)/bin/salome/styles +PLUGIN_LIB_LA = $(patsubst %.la, $(PLUGINDIR)/%.so, $(filter %.la, $(LIB))) +PLUGIN_LIB_SO = $(patsubst %.so, $(PLUGINDIR)/%.so, $(filter %.so, $(LIB))) -lib: $(LIB) $(LIB_PLUGINDIR) $(LIB_PLUGINLIB) +lib: $(LIB) $(PLUGINDIR) $(PLUGIN_LIB_LA) $(PLUGIN_LIB_SO) -$(LIB_PLUGINDIR): +$(PLUGINDIR): mkdir -p $@ -$(LIB_PLUGINLIB): $(LIB_PLUGINDIR)/%.so: .libs/%.so +$(PLUGIN_LIB_LA): $(PLUGINDIR)/%.so: %.la + -$(RM) $@ + ln -sf $(patsubst %.la, %.so, $(CURDIR)/.libs/$<) $@ || true + ln -sf $(patsubst %.la, %.so, $(CURDIR)/.libs/$<).0 $@.0 || true + +$(PLUGIN_LIB_SO): $(PLUGINDIR)/%.so: %.so -$(RM) $@ ln -sf $(CURDIR)/$< $@ || true -- 2.39.2