Apply cosmetic cleanup part of ldflags_order patch from Alberto Villa.
[melted] / src / modules / fezzik / Makefile
index 5576085..52b5129 100644 (file)
@@ -1,6 +1,6 @@
 include ../../../config.mak
 
-TARGET = ../libmltfezzik.so
+TARGET = ../libmltfezzik$(LIBSUF)
 
 OBJS = factory.o \
           producer_fezzik.o \
@@ -8,28 +8,28 @@ OBJS = factory.o \
 
 CFLAGS += -I../..
 
-LDFLAGS+=-L../../framework -lmlt
+LDFLAGS += -L../../framework -lmlt
 
 SRCS := $(OBJS:.o=.c)
 
 all:   $(TARGET)
 
 $(TARGET): $(OBJS)
-               $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
+               $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
 
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
                rm -f $(OBJS) $(TARGET) 
 
 install: all
-       install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
-       install -m 644 ../fezzik.dict "$(prefix)/share/mlt/modules"
-       install -m 644 ../fezzik.ini "$(prefix)/share/mlt/modules"
+       install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
+       install -m 644 ../fezzik.dict "$(DESTDIR)$(prefix)/share/mlt"
+       install -m 644 ../fezzik.ini "$(DESTDIR)$(prefix)/share/mlt"
 
 ifneq ($(wildcard .depend),)
 include .depend