rename psout.h to mplibps.h
[mplib] / src / texk / web2c / mpdir / Makefile.am
1 # Copyright 2008 Taco Hoekwater.
2 #
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.
7 #
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.
12 #
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/>.
15
16 AUTOMAKE_OPTIONS = foreign
17
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
23
24 noinst_LTLIBRARIES    = libmplib.la
25 libmplib_la_SOURCES   = avl.c $(CORE_MP_SOURCES)
26
27 bin_PROGRAMS          = mpost
28 mpost_SOURCES         = mpost.c mpxout.c
29 mpost_DEPENDENCIES    = libmplib.la
30 mpost_LDADD           = libmplib.la $(KPSELIB) -lm
31
32 pkglib_LTLIBRARIES    =
33 if WITH_LUA
34 pkglib_LTLIBRARIES    += mplib.la
35 endif
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
40
41 lmplib.c: mp.c
42
43 mp.c:     psout.c
44
45 mpost.c:  mpxout.c
46
47 .w.c:
48         $(CTANGLE) $< $@
49
50 clean::
51         $(RM) mp*.h $(CORE_MP_SOURCES) mpost.c mpxout.c
52         $(RM) .libs/* libmplib.a mpost *.lo *.la *.o 
53
54 distclean:: clean
55         $(RM) Makefile config.h config.status config.log libtool