diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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) |