2 # Author : Vladimir Klyachin (OCN)
5 top_srcdir=@top_srcdir@
8 VPATH=.:@srcdir@:@srcdir@/resources
16 # .po files to transform in .qm
20 LIB = libSalomeStyle.la
22 LIB_SRC= SalomeStyle.cxx
30 CPPFLAGS+=$(QT_INCLUDES)
32 LDFLAGS+=$(QT_MT_LIBS)
35 # create $(top_builddir)/src/Session/styles directory and copy libSalomeStyle.so there
36 LIB_PLUGINDIR = $(top_builddir)/src/Session/styles
37 LIB_PLUGINLIB = $(patsubst %.la, $(LIB_PLUGINDIR)/%.so, $(filter %.la, $(LIB)))
39 lib: $(LIB) $(LIB_PLUGINDIR) $(LIB_PLUGINLIB)
44 $(LIB_PLUGINLIB): $(LIB_PLUGINDIR)/%.so: .libs/%.so
46 ln -sf $(CURDIR)/$< $@ || true
48 # do the same in install step
49 INSTALL_PLUGINDIR = $(bindir)/styles
50 INSTALL_COPYLIB = $(patsubst %.la, $(INSTALL_PLUGINDIR)/%.so, $(filter %.la, $(LIB)))
52 install: $(INSTALL_PLUGINDIR) $(INSTALL_COPYLIB)
58 (cd $(bindir)/styles; ln -sf $(patsubst %.la, ../../../lib/salome/%.so, $(filter %.la, $(LIB))) $@) || true