summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2005-10-22 09:52:40 +0000
committerAndreas Brachold <vdr07@deltab.de>2005-10-22 09:52:40 +0000
commit6c998839275531e0424160adf221be80b8eabe76 (patch)
treef011413b3ff087abbdc58cf02284f58b31740a8b /Makefile
parentdb70850309c25cc0781b9bf1a164e11d94a02418 (diff)
downloadvdr-plugin-image-6c998839275531e0424160adf221be80b8eabe76.tar.gz
vdr-plugin-image-6c998839275531e0424160adf221be80b8eabe76.tar.bz2
* add FFMDIR to liboutput/Makefile, for build again ffmpeg directory
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3df7418..b7b7ee8 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ DVBDIR = ../../../../DVB
VDRDIR = ../../..
LIBDIR = ../../lib
TMPDIR = /tmp
-FFMDIR = ../../../../ffmpeg
+#FFMDIR = ../../../../ffmpeg
### Allow user defined options to overwrite defaults:
@@ -41,11 +41,26 @@ PACKAGE = vdr-$(ARCHIVE)
### Includes and Defines (add further entries here):
-INCLUDES += -I$(VDRDIR)/include -I$(DVBDIR)/include -I. -I$(FFMDIR)
+INCLUDES += -I$(VDRDIR)/include -I$(DVBDIR)/include -I.
+ifdef FFMDIR
+INCLUDES += -I$(FFMDIR)/libavcodec -I$(FFMDIR)/libavutil
+endif
+
DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
DEFINES += -D_GNU_SOURCE
LIBS += liboutput/liboutput.a libimage/libimage.a -L$(FFMDIR)/libavcodec -lavcodec -lz
+ifdef FFMDIR
+DEFINES += -DFFMDIR
+endif
+
+ifdef FFMDIR
+LIBS += -L$(FFMDIR)/libavcodec
+endif
+
+LIBS += -lavcodec -lz
+
+
### The object files (add further files here):
OBJS = ${PLUGIN}.o