diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-01-30 17:23:16 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-01-30 17:23:16 (GMT) |
commit | 792b330c1bbe573a591687d25e14d4cd1eccd3c6 (patch) | |
tree | 9a3e0955205c0221ea5db03b1f3a4d56846efed2 /tools/d2c/format/Makefile.am | |
parent | c922b6b9c841a97dd948755658cff07b2c6762ff (diff) |
Introduced a format switch to distinguish different kinds of definitions.
Diffstat (limited to 'tools/d2c/format/Makefile.am')
-rw-r--r-- | tools/d2c/format/Makefile.am | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/d2c/format/Makefile.am b/tools/d2c/format/Makefile.am new file mode 100644 index 0000000..7afd98d --- /dev/null +++ b/tools/d2c/format/Makefile.am @@ -0,0 +1,31 @@ + +BUILT_SOURCES = grammar.h + + +# On évite d'utiliser les variables personnalisées de type *_la_[YL]FLAGS +# afin de conserver des noms de fichiers simples, ie sans le nom de la +# bibliothèque de sortie en préfixe. + +AM_YFLAGS = -v -d -p format_ + +AM_LFLAGS = -P format_ -o lex.yy.c --header-file=tokens.h \ + -Dyylval=format_lval -Dyyget_lineno=format_get_lineno \ + -Dyy_scan_string=format__scan_string \ + -Dyy_delete_buffer=format__delete_buffer + +AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) + + +noinst_LTLIBRARIES = libd2cformat.la + +.NOTPARALLEL: $(noinst_LTLIBRARIES) + +libd2cformat_la_SOURCES = \ + decl.h \ + manager.h manager.c \ + tokens.l \ + grammar.y + + +# Automake fait les choses à moitié +CLEANFILES = grammar.h grammar.c grammar.output tokens.c tokens.h |