summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/otps/Makefile.am
blob: 43c9ba0e6e6ab07a238fdcabe2ab4f789b15414c (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
##
INCLUDES = -I$(top_builddir)/.. -I$(top_srcdir) $(KPATHSEA_INCLUDES)
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@

bin_PROGRAMS = otp2ocp outocp

noinst_HEADERS = otp.h routines.h yystype.h

dist_bin_SCRIPTS = mkocp mkofm

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

otp2ocp_LDADD = $(LEXLIB) $(proglib) $(KPATHSEA_LIBS)

DISTCLEANFILES = otp-parser.output

outocp_SOURCES = \
	outocp.c

outocp_LDADD = $(proglib) $(KPATHSEA_LIBS)

## ######
## Not yet used

EXTRA_DIST = bugs.txt

## ######
## Eventually delete these files

EXTRA_DIST += \
	Makefile.in.orig