summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/otps/Makefile.in.orig
blob: ee81a2d2a9cd053e0987df2aa54a99d15d05d737 (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
# @configure_input@
# Makefile for otps.

# These get expanded from the parent directory, not this one.
kpse_include ../make/common.mk
kpse_include ../make/programs.mk
kpse_include ../make/paths.mk
kpse_include kpathsea.mk

LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
YACC = @YACC@

proglib = ../lib/lib.a
programs = otp2ocp outocp
scripts = mkocp mkofm

otp2ocp_objects = otp2ocp.o routines.o y_tab.o $(LEX_OUTPUT_ROOT).o
all: $(programs)
otp2ocp: $(otp2ocp_objects)
	$(kpathsea_link) $(otp2ocp_objects) $(LEXLIB) $(LOADLIBES) 

otp2ocp.o: otp2ocp.c y_tab.h
y_tab.c y_tab.h: otp.y
	$(YACC) -d -v $(srcdir)/otp.y
	-test -f y.tab.c && mv -f y.tab.c y_tab.c
	-test -f y.tab.h && mv -f y.tab.h y_tab.h
$(LEX_OUTPUT_ROOT).o: otp.h
$(LEX_OUTPUT_ROOT).c: otp.l
	$(LEX) $(srcdir)/otp.l

outocp: outocp.o
	$(kpathsea_link) outocp.o $(LOADLIBES)

$(programs): $(proglib) $(kpathsea)

install-programs: $(programs)
	$(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir) 
	for p in $(programs); do $(INSTALL_LIBTOOL_PROG) $$p $(bindir); done
	for p in $(scripts); do $(INSTALL_SCRIPT) $(srcdir)/$$p $(scriptdir); done

Makefile: Makefile.in ../config.status
	cd .. && $(SHELL) config.status

kpse_include ../make/tkpathsea.mk
kpse_include ../make/clean.mk

clean::
	rm -f y_tab.c y_tab.h y.out* yacc.* $(LEX_OUTPUT_ROOT).c

kpse_include ../make/rdepend.mk
kpse_include otps/depend.mk