Make sure the build scripts work again
[mplib] / src / texk / web2c / mpdir / Makefile.am
1
2 AUTOMAKE_OPTIONS = foreign
3
4 KPSEBUILDDIR = ../../../texk/kpathsea/.libs
5 KPSESRCDIR = ../../../../src/texk/kpathsea
6 KPSELIB=$(KPSEBUILDDIR)/libkpathsea.a
7 CFLAGS=-Wall -W -g -I. -I../.. -I$(KPSESRCDIR)/..
8
9 bin_PROGRAMS = mpost
10
11 mpost_SOURCES = mpost.c 
12 mpost_DEPENDENCIES = libmplib.a
13 mpost_LDADD = libmplib.a $(KPSELIB) -lm
14
15 noinst_LIBRARIES = libmplib.a
16 libmplib_a_SOURCES = avl.c mp.c psout.c mpxout.c
17
18 include_HEADERS = mplib.h
19
20 CTANGLE=ctangle
21
22 mp.c: psout.c mpxout.c
23
24 .w.c:
25         $(CTANGLE) $< $@
26
27 clean::
28         $(RM) mp.c psout.c mplib.h mppsout.h mpmp.h mpxout.c mpxout.h *.o libmplib.a mpost.c mpost
29
30 distclean:: clean
31         $(RM) Makefile config.h config.status config.log libtool