From f4bf73b4d25bae8d91779306c4753311b8d92194 Mon Sep 17 00:00:00 2001 From: Kartik Ohri Date: Fri, 14 Feb 2020 18:52:35 +0530 Subject: [PATCH] Add option to choose plugin version. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ed83c52..da8406f 100644 --- a/Makefile +++ b/Makefile @@ -41,9 +41,11 @@ clean: mostlyclean: clean SOURCES = listenbrainz.c -$(SOURCES:%.c=%.o): %: listenbrainz.c +SOURCES_DIR = vlc-3.0 -liblistenbrainz_plugin.so: $(SOURCES:%.c=%.o) +$(SOURCES:%.c=$(SOURCES_DIR)/%.o): %: listenbrainz.c + +liblistenbrainz_plugin.so: $(SOURCES:%.c=$(SOURCES_DIR)/%.o) $(CC) $(LDFLAGS) -shared -o $@ $^ $(LIBS) .PHONY: all install install-strip uninstall clean mostlyclean \ No newline at end of file