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