Makefile.lite fixes
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 11 Dec 2016 09:17:49 +0000 (20:17 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 11 Dec 2016 09:17:52 +0000 (20:17 +1100)
Patch-from: Robert Kausch <robert.kausch@freac.org>

build/lib.mk
src/test_streams/Makefile.lite

index c97c845..8109af9 100644 (file)
@@ -66,7 +66,7 @@ else
     LINKD       = $(CC) -shared
 endif
 
-BASE_CFLAGS = -Wall -Wextra $(CONFIG_CFLAGS) -DVERSION=$(VERSION) $(DEFINES) $(INCLUDES)
+BASE_CFLAGS = -Wall -Wextra $(CONFIG_CFLAGS) -DVERSION=$(VERSION) -DPACKAGE_VERSION=$(VERSION) $(DEFINES) $(INCLUDES)
 
 ifeq ($(DEFAULT_BUILD),debug)
 CFLAGS   := -g -O0 -DDEBUG $(CFLAGS) $(BASE_CFLAGS) -Wmissing-prototypes -Wstrict-prototypes
index f7ca180..1e87c37 100644 (file)
@@ -30,9 +30,9 @@ PROGRAM_NAME = test_streams
 INCLUDES = -I./include -I$(topdir)/include
 
 ifeq ($(OS),Darwin)
-    EXPLICIT_LIBS = $(libdir)/libgrabbag.a -lm
+    EXPLICIT_LIBS = $(libdir)/libgrabbag.a $(libdir)/libreplaygain_analysis.a -lm
 else
-    LIBS = -lgrabbag -lm
+    LIBS = -lgrabbag -lreplaygain_analysis -lm
 endif
 
 SRCS_C = \