From 89bf45723c5d13530be4bf3319329d4885cdb022 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Fri, 8 Apr 2016 15:08:10 +0200 Subject: [PATCH] Makefile.am: bugfix: replaced makefile variable by m4-expanded symbol As automake processing prevents using makefile variables in prefixed automake constructs such as *la_SOURCES, platform-specific locations must be spelled out literally. This fixes issue #30, see https://github.com/obgm/libcoap/issues/30 --- Makefile.am | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index e7089eb5..6ba1ffb4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -44,9 +44,6 @@ libcoap_@LIBCOAP_API_VERSION@_la_CFLAGS = \ -fPIE \ $(AM_CFLAGS) -## Platform-specific sources are located in platform_src -platform_src = src/platform/@PLATFORM@ - ## Define the source file list for the "libcoap.la" target. ## Note that it is not necessary to list header files which are already listed ## elsewhere in a _HEADERS variable assignment. @@ -69,9 +66,9 @@ libcoap_@LIBCOAP_API_VERSION@_la_SOURCES = \ src/str.c \ src/subscribe.c \ src/uri.c \ - $(platform_src)/coap_io.c \ - $(platform_src)/prng.c \ - $(platform_src)/run.c + src/platform/@PLATFORM@/coap_io.c \ + src/platform/@PLATFORM@/prng.c \ + src/platform/@PLATFORM@/run.c ## Define the list of public header files and their install location. ## The list defined here will be used within the include/Makefile.am