diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-11-20 08:00:17 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-11-20 08:00:17 -0800 |
commit | 2c679f9bd0abcd8412b9162c74a58ba1eace3ed5 (patch) | |
tree | ccafb9c2cc0af51de350a9a1f1325d300e8929c4 /parser.h | |
parent | 50cbab589eb6e5b841dd2e916a1026f477b7be15 (diff) | |
download | txr-2c679f9bd0abcd8412b9162c74a58ba1eace3ed5.tar.gz txr-2c679f9bd0abcd8412b9162c74a58ba1eace3ed5.tar.bz2 txr-2c679f9bd0abcd8412b9162c74a58ba1eace3ed5.zip |
Conform to standard Makefile conventions.
TXR's build should use the values of standard make variables:
use the existing $(CC), $(CFLAGS), $(YACC), $(LDFLAGS) and
such.
* Makefile (TXR_CFLAGS): New variable. Initialized with the
value of $(CFLAGS) and then customized. Used everywhere
in place of CFLAGS.
(CFLAGS): Now used only as the initial value of TXR_CFLAGS; no
longer clobbered with the := assignment. Thus if a
distribution of free software builds everything with certain
CFLAGS, we incorporate those CFLAGS that it wants us to use.
(TXR_LDFLAGS): New variable, initialized from $(LDFLAGS).
Used in place of LDFLAGS.
(LDFLAGS): Use only, do not modify.
(NM): Replaced with TXR_NM.
(YACC): Replaced with TXR_YACC.
* configure (ccname): Default to $(CC) rather than gcc.
(lex): Default name portion $(LEX) rather than flex; keep
the optional prefixes.
(gen_config_make): Generate TXR_CC, TXR_LEX, TXR_YACC and
TXR_NM variables, rather than clobbering the standard ones
CC, LEX and YACC.
Also, in the rule that finds yacc, we now try '$(YACC)'
first.
Diffstat (limited to 'parser.h')
0 files changed, 0 insertions, 0 deletions