summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/otps/Makefile.am
blob: 4fbb75903e2ce749ac6d216f1d82efb25a7ce6e0 (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
## Makefile.am for the TeX Live subdirectory texk/web2c/otps/
##
## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
##
INCLUDES = -I$(top_builddir)/.. -I$(top_srcdir) $(KPATHSEA_INCLUDES)
AM_CFLAGS = $(WARNING_CFLAGS)
AM_YFLAGS = -d -v

proglib = ../lib/lib.a

# Automake automatically uses $(proglib)=../lib/lib.a as dependency.
# This does not work for the configure substitution  $(KPATHSEA_LIBS),
# thus we let $(proglib) artificially depend on $(KPATHSEA_LIBS).

# Rebuild $(proglib)
$(proglib): $(KPATHSEA_DEPEND) ${top_srcdir}/lib/*.c
	cd ../lib && $(MAKE) $(AM_MAKEFLAGS)

## Rebuild libkpathsea
@KPATHSEA_RULE@

otps_programs = otp2ocp outocp
otps_scripts = mkocp mkofm

noinst_HEADERS = otp.h routines.h yystype.h

if OTANGLE
bin_PROGRAMS = $(otps_programs)
bin_SCRIPTS = $(otps_scripts)
endif OTANGLE
EXTRA_PROGRAMS = $(otps_programs)

EXTRA_DIST = $(otps_scripts)

otp2ocp_SOURCES = \
	otp-parser.y \
	otp-lexer.l \
	otp2ocp.c \
	routines.c

DISTCLEANFILES = otp-parser.output

outocp_SOURCES = \
	outocp.c

LDADD = $(proglib) $(KPATHSEA_LIBS)

## Not used
##
EXTRA_DIST += bugs.txt