1 # Copyright 2008 Taco Hoekwater.
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 2 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 AUTOMAKE_OPTIONS = foreign
18 KPSEBUILDDIR = ../../../texk/kpathsea/.libs
19 KPSESRCDIR = ../../../../src/texk/kpathsea
20 KPSELIB=$(KPSEBUILDDIR)/libkpathsea.a
21 AM_CFLAGS=-I. -I../.. -I$(KPSESRCDIR)/.. -I$(KPSESRCDIR)
22 CORE_MP_SOURCES=mp.c psout.c tfmin.c memio.c
24 noinst_LTLIBRARIES = libmplib.la
25 libmplib_la_SOURCES = avl.c $(CORE_MP_SOURCES)
28 mpost_SOURCES = mpost.c mpxout.c
29 mpost_DEPENDENCIES = libmplib.la
30 mpost_LDADD = libmplib.la $(KPSELIB) -lm
34 pkglib_LTLIBRARIES += mplib.la
36 mplib_la_SOURCES = lmplib.c
37 mplib_la_DEPENDENCIES = libmplib.la
38 mplib_la_LIBADD = libmplib.la
39 mplib_la_LDFLAGS = -module -avoid-version
51 $(RM) mp*.h $(CORE_MP_SOURCES) mpost.c mpxout.c
52 $(RM) .libs/* libmplib.a mpost *.lo *.la *.o
55 $(RM) Makefile config.h config.status config.log libtool