]> git.meshlink.io Git - meshlink/commitdiff
Make autoconf builds work again.
authorGuus Sliepen <guus@meshlink.io>
Mon, 12 Dec 2022 19:17:44 +0000 (20:17 +0100)
committerGuus Sliepen <guus@meshlink.io>
Mon, 12 Dec 2022 19:17:44 +0000 (20:17 +0100)
src/Makefile.am
test/Makefile.am

index fad47bff3a4af3aebb74c288b2af48491fd46aee..8a7a28e130a7b1adf6cdb05cf2848e75714b4bf0 100644 (file)
@@ -32,7 +32,7 @@ utcp_SOURCES = \
 lib_LTLIBRARIES = libmeshlink.la
 EXTRA_PROGRAMS = utcp-test
 
-pkginclude_HEADERS = meshlink++.h meshlink.h
+pkginclude_HEADERS = ../include/meshlink++.h ../include/meshlink.h
 
 libmeshlink_la_LDFLAGS = -export-symbols $(srcdir)/meshlink.sym
 
@@ -55,7 +55,7 @@ libmeshlink_la_SOURCES = \
        list.c list.h \
        logger.c logger.h \
        mdns.c mdns.h \
-       meshlink.c meshlink.h meshlink.sym \
+       meshlink.c ../include/meshlink.h meshlink.sym \
        meshlink_internal.h \
        meshlink_queue.h \
        meta.c meta.h \
@@ -92,8 +92,8 @@ utcp_test_SOURCES = \
 
 EXTRA_libmeshlink_la_DEPENDENCIES = $(srcdir)/meshlink.sym
 
-libmeshlink_la_CFLAGS = $(PTHREAD_CFLAGS) -fPIC -iquote.
+libmeshlink_la_CFLAGS = $(PTHREAD_CFLAGS) -fPIC -iquote. -iquote$(top_srcdir)/include
 libmeshlink_la_LDFLAGS += $(PTHREAD_LIBS)
 
-utcp_test_CFLAGS = $(PTHREAD_CFLAGS) -iquote.
+utcp_test_CFLAGS = $(PTHREAD_CFLAGS) -fPIC -iquote. -iquote$(top_srcdir)/include
 utcp_test_LDFLAGS = $(PTHREAD_LIBS)
index 001291cc4d7c1b9bdf19f472dbd64875248c3004..d01762248abf140230518ce71edb3c7237c34139 100644 (file)
@@ -43,7 +43,7 @@ endif
 
 dist_check_SCRIPTS = $(TESTS)
 
-AM_CPPFLAGS = $(PTHREAD_CFLAGS) -I${top_srcdir}/src -iquote. -Wall
+AM_CPPFLAGS = $(PTHREAD_CFLAGS) -I${top_srcdir}/src -iquote. -I${top_srcdir}/include -Wall
 AM_LDFLAGS = $(PTHREAD_LIBS)
 
 check_PROGRAMS = \