From 56a973025b60a4a4c6bb8b3bddb96969b8bb7b95 Mon Sep 17 00:00:00 2001 From: "kevin.larke" Date: Sun, 19 Apr 2020 13:53:07 -0400 Subject: [PATCH] Makefile.am : Updates for RPi. --- Makefile.am | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 73bac29..151ab39 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,7 +14,7 @@ include_HEADERS = # -Wno-multichar - turns off multi-character constant warnings from cmAudioFile.c -WS_DIR = /home/kevin/sdk/libwebsockets/build/out +WS_DIR = $(HOME)/sdk/libwebsockets/build/out AM_CPPFLAGS = -D _GNU_SOURCE -I.. -I$(srcdir)/src/libcw -I$(WS_DIR)/include @@ -35,9 +35,12 @@ endif if OS_LINUX if OS_64 - AM_LDFLAGS += -L/usr/lib64 -L$(WS_DIR)/lib -Wl,-Bstatic -lasound -Wl,-Bdynamic + AM_LDFLAGS += -L/usr/lib64 AM_CFLAGS += -m64 -endif +endif + + AM_LDFLAGS += -L$(WS_DIR)/lib -Wl,-Bstatic -lasound -Wl,-Bdynamic + endif include src/libcw/Makefile.am