1 # This Makefile is designed to be simple and readable. It does not
2 # aim at portability. It requires GNU Make.
8 # We need to find the headers and libs for readline (and possibly intl).
9 # You probably need to customize this for your own environment.
10 CPPFLAGS
= -I
/opt
/local
/include
11 LDFLAGS
= -L
/opt
/local
/lib
13 # Find the translation catalogue for Bison's generated messagess.
14 BISON_LOCALEDIR
= $(shell $(BISON
) $(BISON_FLAGS
) --print-localedir
)
15 CPPFLAGS
+= -DENABLE_NLS
-DBISON_LOCALEDIR
='"$(BISON_LOCALEDIR)"'
17 LIBS
= -lreadline
-lm
# In some environments, -lintl is needed.
21 %.c
%.h
%.xml
%.gv
: %.y
22 $(BISON
) $(BISONFLAGS
) --header
--xml
--graph
=$*.gv
-o
$*.c
$<
25 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -o
$@
$^
$(LDFLAGS
) $(LIBS
)
28 @echo
"Type bistromathic expressions. Quit with ctrl-d."
33 $(XSLTPROC
) $(XSLTPROCFLAGS
) -o
$@
$$($(BISON
) --print-datadir
)/xslt
/xml2xhtml.xsl
$<
37 parse.
[ch
] parse.output parse.xml parse.html parse.gv