Commit cb38aded authored by Daniel Salzman's avatar Daniel Salzman

zscanner: create own Makefile.am

parent 390aa0d0
......@@ -290,6 +290,7 @@ CFLAGS="$CFLAGS $CFLAG_VISIBILITY"
AC_CONFIG_FILES([Makefile
samples/Makefile
src/Makefile
src/zscanner/Makefile
src/tests/Makefile
doc/Makefile
man/Makefile
......
ACLOCAL_AMFLAGS = -I $(top_srcdir)/m4
SUBDIRS = . tests
SUBDIRS = . tests zscanner
sbin_PROGRAMS = knotc knotd kdig khost knsupdate
noinst_PROGRAMS = zscanner-tool
noinst_LTLIBRARIES = libknot.la libknotd.la libknots.la libzscanner.la
noinst_LTLIBRARIES = libknot.la libknotd.la libknots.la
# $(YACC) will generate header file
AM_CPPFLAGS = -I$(top_srcdir)/src/libknot -DSYSCONFDIR='"$(sysconfdir)"' -DSBINDIR='"$(sbindir)"'
......@@ -12,8 +11,6 @@ libknotd_la_YFLAGS = -pcf_ -d
libknotd_la_LFLAGS = # TODO: reentrant parser, prefix
EXTRA_DIST = \
zscanner/scanner.rl \
zscanner/scanner_body.rl \
zscanner/test/run_tests.sh \
zscanner/test/cases
......@@ -27,15 +24,6 @@ CLEANFILES = \
knot/conf/libknotd_la-cf-parse.c \
knot/conf/libknotd_la-cf-parse.h
if HAVE_RAGEL
BUILT_SOURCES += zscanner/scanner.c
CLEANFILES += zscanner/scanner.c
zscanner/scanner.c: zscanner/scanner.rl zscanner/scanner_body.rl
$(RAGEL) $(FSM_TYPE) -s -o $@ $(srcdir)/zscanner/scanner.rl
endif
knotc_SOURCES = \
knot/ctl/knotc_main.c
......@@ -286,31 +274,10 @@ libknotd_la_SOURCES = \
knot/zone/zone-load.c \
knot/server/server.h
zscanner_tool_SOURCES = \
zscanner/test/zscanner-tool.c \
zscanner/test/tests.h \
zscanner/test/tests.c \
zscanner/test/processing.h \
zscanner/test/processing.c
libzscanner_la_SOURCES = \
common/descriptor.h \
common/descriptor.c \
zscanner/error.h \
zscanner/error.c \
zscanner/file_loader.h \
zscanner/file_loader.c \
zscanner/scanner.h \
zscanner/scanner.c \
zscanner/scanner_functions.h \
zscanner/scanner_functions.c
libknotd_la_LIBADD = libknot.la libknots.la @LIBOBJS@
libknots_la_LIBADD = libzscanner.la @LIBOBJS@
libzscanner_la_LIBADD = @LIBOBJS@
libknots_la_LIBADD = zscanner/libzscanner.la @LIBOBJS@
knotd_LDADD = libknotd.la libknot.la libknots.la @LIBOBJS@
knotc_LDADD = libknotd.la libknot.la libknots.la @LIBOBJS@
kdig_LDADD = libknotd.la libknot.la libknots.la @LIBOBJS@
khost_LDADD = libknotd.la libknot.la libknots.la @LIBOBJS@
knsupdate_LDADD = libknotd.la libknot.la libknots.la libzscanner.la @LIBOBJS@
zscanner_tool_LDADD = libzscanner.la @LIBOBJS@
knsupdate_LDADD = libknotd.la libknot.la libknots.la zscanner/libzscanner.la @LIBOBJS@
ACLOCAL_AMFLAGS = -I $(top_srcdir)/m4
noinst_PROGRAMS = zscanner-tool
noinst_LTLIBRARIES = libzscanner.la
EXTRA_DIST = \
scanner.rl \
scanner_body.rl \
test/run_tests.sh \
test/cases
if HAVE_RAGEL
BUILT_SOURCES = scanner.c
CLEANFILES = scanner.c
scanner.c: scanner.rl scanner_body.rl
$(RAGEL) $(FSM_TYPE) -s -o $@ $(srcdir)/scanner.rl
endif
zscanner_tool_SOURCES = \
test/zscanner-tool.c \
test/tests.h \
test/tests.c \
test/processing.h \
test/processing.c
libzscanner_la_SOURCES = \
../common/descriptor.h \
../common/descriptor.c \
error.h \
error.c \
file_loader.h \
file_loader.c \
scanner.h \
scanner.c \
scanner_functions.h \
scanner_functions.c
libzscanner_la_LIBADD = @LIBOBJS@
zscanner_tool_LDADD = libzscanner.la @LIBOBJS@
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment