ading a make rule to a .la (or another) file

Vincent Torri <[email protected]>
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <CAMq1ado8spS4Rr1_OMsJojPZTrb=jBKJe695nGOaVKusUGDoEg@mail.gmail.com>
Hello

Here is a description of my problem:

I have the following files :

etui/
  Makefile.am (which includes src/modules/pdf/Makefile.mk)
  src/
    modules/
      pdf/
        Makefile.mk
        etui_module_pdf.c
        mupdf-1.10a/
          Makefile
          other mupdf files

I my Makefile.mk, I already have :

------------------

etui_modules_pdf_LTLIBRARIES = src/modules/pdf/module.la

src_modules_pdf_module_la_SOURCES = \
src/modules/pdf/etui_module_pdf.c \
src/modules/pdf/etui_module_pdf.h

src_modules_pdf_module_la_LIBADD = \
src/lib/libetui.la \
-L$(abs_srcdir)/src/modules/pdf/mupdf-1.10a/build/release -lmupdf \
-L$(abs_srcdir)/src/modules/pdf/mupdf-1.10a/build/release -lmupdfthird \
@ETUI_LIBS@

------------------

But etui_module_pdf.c needs to build mupdf shared library and link
against it, that is, just run 'make' in mupdf-1.10a/

So, in my Makefile.mk, I  would like to do something like:

src/modules/pdf/src_modules_pdf_module_la-etui_module_pdf.lo: buildmupdf

buildmupdf:
    cd src/modules/pdf/mupdf-1.10a && make

but 'make' is never called before the link (or compilation) of my
module. I have tried to use .la, or .o for the file, without any luck

Does someone know what I should add to build mupdf *before* the link
of my module ?

thank you

Vincent Torri

_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.