From 146795d6862680b7cb5e57fc72e9e18e1d47d2d3 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 22 Jul 2015 20:37:58 +0200 Subject: Add compile-time option for libvlc input --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 575e60a..cdaaebd 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +# Set this to 0 to disable compiling the libvlc input +ENABLE_INPUT_VLC=1 CC = gcc @@ -75,8 +77,16 @@ PG = -g -fomit-frame-pointer # Optimize flag. OPTIM = -O2 +ifeq (${ENABLE_INPUT_VLC},1) + VLC_CFLAGS=-DVLC_INPUT + VLC_LDFLAGS=-lvlc +else + VLC_CFLAGS= + VLC_LDFLAGS= +endif + # These flags are pretty much mandatory -REQUIRED = -DINLINE= ${GIT_VER} +REQUIRED = -DINLINE= ${GIT_VER} ${VLC_CFLAGS} #pick your architecture ARCH = -march=native @@ -102,7 +112,7 @@ CC_SWITCHES = $(OPTIM) $(REQUIRED) $(ARCH) $(PG) $(TWEAKS) $(WARNINGS) $(NEW_02L PGM = toolame -LIBS = -lm -lzmq -ljack -lpthread -lvlc +LIBS = -lm -lzmq -ljack -lpthread ${VLC_LDFLAGS} #nick burch's OS/2 fix gagravarr@SoftHome.net UNAME = $(shell uname) -- cgit v1.2.3