summaryrefslogtreecommitdiff
path: root/tools/d2c/conv/Makefile.am
blob: a22d5f7d1c35f80fa1bea7d60dfad0a3373cc05c (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

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 conv_

AM_LFLAGS = -P conv_ -o lex.yy.c --header-file=tokens.h			\
			-Dyyget_lineno=conv_get_lineno 						\
			-Dyy_scan_string=conv__scan_string					\
			-Dyy_delete_buffer=conv__delete_buffer

AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS)


noinst_LTLIBRARIES  = libd2cconv.la

.NOTPARALLEL: $(noinst_LTLIBRARIES)

libd2cconv_la_SOURCES =					\
	decl.h								\
	manager.h manager.c					\
	tokens.l							\
	grammar.y

# _GNU_SOURCE : asprintf
libd2cconv_la_CFLAGS = -D_GNU_SOURCE


# Automake fait les choses à moitié
CLEANFILES = grammar.h grammar.c grammar.output tokens.c tokens.h

# Pareil : de tous les fichiers générés, seule la sortie de Flex saute pour les distributions !
EXTRA_DIST = tokens.h