Adapted makefile for new imagemagick versions

This commit is contained in:
louis 2013-02-07 14:25:09 +01:00
parent 14f677a767
commit 063094f442

View File

@ -43,10 +43,13 @@ SOFILE = libvdr-$(PLUGIN).so
### Includes and Defines (add further entries here): ### Includes and Defines (add further entries here):
INCLUDES += INCLUDES += $(shell pkg-config --cflags-only-I Magick++)
INCLUDES += -I/usr/include/ImageMagick
DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
DEFINES += -DMAGICKCORE_HDRI_ENABLE=0
DEFINES += -DMAGICKCORE_QUANTUM_DEPTH=16
LIBS += $(shell pkg-config --libs Magick++)
### The object files (add further files here): ### The object files (add further files here):
@ -98,7 +101,7 @@ install-i18n: $(I18Nmsgs)
### Targets: ### Targets:
$(SOFILE): $(OBJS) $(SOFILE): $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -lMagick++ -o $@ $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(LIBS) -o $@
install-lib: $(SOFILE) install-lib: $(SOFILE)
install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION) install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION)