[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ading a make rule to a .la (or another) file
From: |
Vincent Torri |
Subject: |
ading a make rule to a .la (or another) file |
Date: |
Fri, 17 Mar 2017 19:56:36 +0100 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ading a make rule to a .la (or another) file,
Vincent Torri <=