framework: remove global profile, rather share one mlt_profile across a service netwo...
[melted] / src / modules / sox / Makefile
index 58f97f6..0de5c29 100644 (file)
@@ -1,33 +1,33 @@
 include ../../../config.mak
+include config.mak
 
-TARGET = ../libmltsox.so
+TARGET = ../libmltsox$(LIBSUF)
 
 OBJS = factory.o \
           filter_sox.o 
 
-CFLAGS = -O4 -pipe -ffast-math -fomit-frame-pointer -I../../ -Wall -g \
-       `libst-config --cflags`
+CFLAGS += -I../../
 
-LDFLAGS = `libst-config --libs` -lst
+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 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
 
 ifneq ($(wildcard .depend),)
 include .depend