Makefile.am 946 Bytes
Newer Older
1
ACLOCAL_AMFLAGS = -I $(top_srcdir)/m4
2 3 4
AM_CPPFLAGS = \
	-include $(top_builddir)/src/config.h \
	-I$(top_srcdir)/src
5

6
lib_LTLIBRARIES = libzscanner.la
7

8 9 10
zscanner_ladir = $(includedir)/zscanner
nobase_zscanner_la_HEADERS =		\
	error.h				\
11 12
	scanner.h			\
	version.h
13

14 15 16
# pkg-config
pkgconfig_DATA = libzscanner.pc

17 18
EXTRA_DIST =				\
	scanner.rl			\
19 20
	scanner_body.rl			\
	scanner.c.g2			\
21
	scanner.c.t0
22

23 24
BUILT_SOURCES = scanner.c
CLEANFILES = scanner.c
25

26
if FAST_PARSER
27
scanner.c: scanner.c.g2
28
	cp $(srcdir)/$@.g2 $@
29 30
	@echo "NOTE: Compilation of scanner.c can take several minutes!"
else
31
scanner.c: scanner.c.t0
32
	cp $(srcdir)/$@.t0 $@
33 34 35 36
endif

libzscanner_la_SOURCES =		\
	error.c				\
37
	functions.h			\
38
	functions.c			\
39
	$(nobase_zscanner_la_HEADERS)
40

41 42 43
nodist_libzscanner_la_SOURCES =		\
	scanner.c

44
libzscanner_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY)
45
libzscanner_la_LDFLAGS =		\
46
	$(libzscanner_VERSION_INFO)
47 48

include $(srcdir)/tests/Makefile.inc