diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-07-22 20:37:58 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-07-22 20:37:58 +0200 |
commit | 146795d6862680b7cb5e57fc72e9e18e1d47d2d3 (patch) | |
tree | 16501a28a956c5c628617ac5a45819b523337fa0 /Makefile | |
parent | 747dd3237e3a1051978022d275132aca951734a4 (diff) | |
download | toolame-dab-146795d6862680b7cb5e57fc72e9e18e1d47d2d3.tar.gz toolame-dab-146795d6862680b7cb5e57fc72e9e18e1d47d2d3.tar.bz2 toolame-dab-146795d6862680b7cb5e57fc72e9e18e1d47d2d3.zip |
Add compile-time option for libvlc input
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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) |