summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/mplibdir/am/libmplib.am
blob: 57bd47dae53faf81c784bbd681bd7dc8799e9b76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
## texk/web2c/mplibdir/am/libmplib.am: Makefile fragment for libmplib.
##
## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.

## libmplib.a, used by MetaPost and luaTeX
##
EXTRA_LIBRARIES += libmplib.a

libmplib_a_CPPFLAGS = -I$(srcdir)/mplibdir
libmplib_a_CFLAGS = $(WARNING_CFLAGS)

## libmplib C sources
libmplib_a_SOURCES = mplibdir/avl.h mplibdir/avl.c
nodist_libmplib_a_SOURCES = $(memio_c_h) $(mp_c_h) $(psout_c_h) $(svgout_c_h) $(tfmin_c_h)
memio_c_h = memio.c mpmemio.h
mp_c_h =  mp.c mplib.h mpmp.h
psout_c_h = mppsout.h psout.c mplibps.h
svgout_c_h = mplibsvg.h mpsvgout.h svgout.c
tfmin_c_h = mptfmin.h tfmin.c

$(memio_c_h): memio-tangle
	@$(mp_ctangle_sh) memio
memio-tangle: ctangle$(EXEEXT) mplibdir/memio.w tangle-sh
	@$(mp_ctangle_sh) memio

$(mp_c_h): mp-tangle
	@$(mp_ctangle_sh) mp
mp-tangle: ctangle$(EXEEXT) mplibdir/mp.w tangle-sh
	@$(mp_ctangle_sh) mp

$(psout_c_h): psout-tangle
	@$(mp_ctangle_sh) psout
psout-tangle: ctangle$(EXEEXT) mplibdir/psout.w tangle-sh
	@$(mp_ctangle_sh) psout

$(svgout_c_h): svgout-tangle
	@$(mp_ctangle_sh) svgout
svgout-tangle: ctangle$(EXEEXT) mplibdir/svgout.w tangle-sh
	@$(mp_ctangle_sh) svgout

$(tfmin_c_h): tfmin-tangle
	@$(mp_ctangle_sh) tfmin
tfmin-tangle: ctangle$(EXEEXT) mplibdir/tfmin.w tangle-sh
	@$(mp_ctangle_sh) tfmin

## libmplib CWeb sources
libmplib_web = mplibdir/mp.w mplibdir/psout.w mplibdir/svgout.w
libmplib_web += mplibdir/memio.w mplibdir/tfmin.w

$(libmplib_a_OBJECTS): $(nodist_libmplib_a_SOURCES)

EXTRA_DIST += $(libmplib_web)

DISTCLEANFILES += $(nodist_libmplib_a_SOURCES) \
	memio-tangle mp-tangle psout-tangle svgout-tangle tfmin-tangle

## only used by luaTeX
EXTRA_DIST += mplibdir/lmplib.c