summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-01-27 11:20:03 +0100
committerlouis <louis.braun@gmx.de>2013-01-27 11:20:03 +0100
commitc145a916766969c9e3fef7166d09b5d95fe29c02 (patch)
tree09b79163ba5626c8b41cae134019dd336e1a54f6 /Makefile
parentb5cbc3355719a0e115af7d07a8243467a8c9cd17 (diff)
downloadskin-nopacity-c145a916766969c9e3fef7166d09b5d95fe29c02.tar.gz
skin-nopacity-c145a916766969c9e3fef7166d09b5d95fe29c02.tar.bz2
Changed makefile to work also with newer ImageMagick versions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e01743e..26d3f6f 100644
--- a/Makefile
+++ b/Makefile
@@ -46,12 +46,14 @@ PACKAGE = vdr-$(ARCHIVE)
SOFILE = libvdr-$(PLUGIN).so
-### Includes and Defines (add further entries here):
+### Includes and Defines and Dependencies (add further entries here):
-INCLUDES += -I/usr/include/ImageMagick
+INCLUDES += $(shell pkg-config --cflags-only-I Magick++)
DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
+LIBS += $(shell pkg-config --libs Magick++)
+
### The object files (add further files here):
OBJS = $(PLUGIN).o
@@ -103,7 +105,7 @@ install-i18n: $(I18Nmsgs)
### Targets:
$(SOFILE): $(OBJS)
- $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -lMagick++ -o $@
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(LIBS) -o $@
install-lib: $(SOFILE)
install -D $^ $(LIBDIR)/$^.$(APIVERSION)