X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsox%2FMakefile;h=7b6c2ab8c0f65b62056558a97bfc2d35692c6a8a;hb=fb4c972912353a229e357356c8883eba3b9c37d0;hp=e156567c719114afd7e3dae8730fe9d855fe9793;hpb=8cf0f77981284b7549c811b67283eb73d0c520d6;p=melted diff --git a/src/modules/sox/Makefile b/src/modules/sox/Makefile index e156567..7b6c2ab 100644 --- a/src/modules/sox/Makefile +++ b/src/modules/sox/Makefile @@ -1,34 +1,32 @@ include ../../../config.mak -TARGET = ../libmltsox.so +TARGET = ../libmltsox$(LIBSUF) OBJS = factory.o \ filter_sox.o -CFLAGS += -I../../ -I/usr/include/sox - -LDFLAGS += -lst -lpopt -lvorbis -logg -lvorbisfile -lvorbisenc - -LDFLAGS+=-L../../framework -lmlt -lmp3lame +CFLAGS += `libst-config --cflags` -I../../ +LDFLAGS += -lst `libst-config --libs` +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