Commit 2a4ef4b0 authored by npzacs's avatar npzacs
Browse files

Reduce make recursion: merge src/examples/Makefile.am to src/Makefile.am

parent 6e1153b0
SUBDIRS=src src/examples
SUBDIRS=src
ACLOCAL_AMFLAGS=-I m4
......
......@@ -177,5 +177,5 @@ AC_SUBST(LT_VERSION_INFO)
dnl generate output files
AC_SUBST(SET_FEATURES)
AC_CONFIG_FILES([Makefile src/Makefile src/examples/Makefile src/libaacs.pc src/libaacs/aacs-version.h])
AC_CONFIG_FILES([Makefile src/Makefile src/libaacs.pc src/libaacs/aacs-version.h])
AC_OUTPUT
......@@ -67,3 +67,19 @@ clean-lex-yacc:
# do not distribute files that should be generated by lex/yacc locally
dist-hook:
(cd $(distdir) && rm -f $(BUILT_SOURCES))
#
# programs
#
noinst_PROGRAMS = parser_test
bin_PROGRAMS = aacs_info
parser_test_SOURCES = examples/parser_test.c \
file/keydbcfg-parser.y \
file/keydbcfg-lexer.l
parser_test_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_INCLUDES)
aacs_info_SOURCES = examples/aacs_info.c
aacs_info_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_INCLUDES)
aacs_info_LDADD = libaacs.la
SET_FEATURES = -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -D_REENTRANT
SET_INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/src/file
AM_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_INCLUDES)
AACS_LIB = $(top_builddir)/src/libaacs.la
noinst_PROGRAMS=parser_test
bin_PROGRAMS=aacs_info
parser_test_SOURCES=parser_test.c \
$(top_builddir)/src/keydbcfg-lexer.c \
$(top_builddir)/src/keydbcfg-parser.c
parser_test_LDADD = $(AACS_LIB)
aacs_info_SOURCES=aacs_info.c
aacs_info_LDADD = $(AACS_LIB)
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