Commit 36b60fc1 authored by Kenton Varda's avatar Kenton Varda

Fix various autotools problems.

parent a29e7e5d
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = foreign
AM_CXXFLAGS = -I$(srcdir)/src
......@@ -9,7 +11,8 @@ EXTRA_DIST = \
INSTALL.txt \
COPYING.txt \
CONTRIBUTORS.txt \
CHANGES.txt
CHANGES.txt \
$(capnpc_inputs)
CLEANFILES = $(capnpc_outputs) test_capnpc_middleman
......@@ -33,6 +36,9 @@ MAINTAINERCLEANFILES = \
m4/lt~obsolete.m4 \
m4/ltoptions.m4
maintainer-clean-local:
-rm -rf build-aux
nobase_include_HEADERS = \
src/capnproto/macros.h \
src/capnproto/type-safety.h \
......@@ -76,14 +82,18 @@ capnpc_outputs = \
src/capnproto/test.capnp.c++ \
src/capnproto/test.capnp.h
BUILT_SOURCES = $(capnpc_outputs)
test_capnpc_middleman:# $(capnpc_inputs)
$(CAPNPC) $^
# This should depend on $(capnpc_inputs), but then make mysteriously complains
# about a cyclic dependency. I don't know where it is coming from. I rummaged
# around in the generated Makefile a bit but couldn't figure it out. I give
# up. Automake is terrible.
test_capnpc_middleman:
$(CAPNPC) $(capnpc_inputs)
touch test_capnpc_middleman
$(capnpc_outputs): test_capnpc_middleman
BUILT_SOURCES = $(capnpc_outputs)
check_PROGRAMS = capnproto-test
capnproto_test_LDADD = -lgtest -lgtest_main libcapnproto.a
capnproto_test_SOURCES = \
......
......@@ -29,7 +29,7 @@ AX_CXX_COMPILE_STDCXX_11
ACX_PTHREAD
LIBS="$PTHREAD_LIBS $LIBS"
CXXFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
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