+ DESTDIR patch from Anthony Green (green at redhat dot com) - many thanks :-)
[melted] / src / modules / core / Makefile
index 7bdf0a2..0c1b49a 100644 (file)
@@ -1,6 +1,6 @@
 include ../../../config.mak
 
-TARGET = ../libmltcore.so
+TARGET = ../libmltcore$(LIBSUF)
 
 OBJS = factory.o \
           producer_colour.o \
@@ -18,6 +18,7 @@ OBJS = factory.o \
           filter_region.o \
           filter_rescale.o \
           filter_resize.o \
+          filter_transition.o \
           filter_watermark.o \
           transition_composite.o \
           transition_luma.o \
@@ -36,7 +37,7 @@ SRCS := $(OBJS:.o=.c)
 all:   $(TARGET)
 
 $(TARGET): $(OBJS) $(ASM_OBJS)
-               $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS) $(LDFLAGS)
+               $(CC) $(SHFLAGS) -o $@ $(OBJS) $(ASM_OBJS) $(LDFLAGS)
 
 composite_line_yuv_mmx.o: composite_line_yuv_mmx.S
        $(CC) -o $@ -c composite_line_yuv_mmx.S
@@ -51,8 +52,8 @@ clean:
                rm -f $(OBJS) $(ASM_OBJS) $(TARGET) 
 
 install: all
-       install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
-       install -m 644 ../data_fx.properties "$(prefix)/share/mlt/modules"
+       install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+       install -m 644 ../data_fx.properties "$(DESTDIR)$(prefix)/share/mlt/modules"
 
 ifneq ($(wildcard .depend),)
 include .depend