X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsox%2FMakefile;h=a02e0ec5f59be75194f65b6e730b0adfd224210c;hb=125e716b9306d8743294e996522abe3b6f00fab4;hp=343a785dde348d36cf4ada29c73d2b4d9f0e961a;hpb=f5ac801122a42d683fe66cabfff0fd694df6f43d;p=melted diff --git a/src/modules/sox/Makefile b/src/modules/sox/Makefile index 343a785..a02e0ec 100644 --- a/src/modules/sox/Makefile +++ b/src/modules/sox/Makefile @@ -1,32 +1,33 @@ include ../../../config.mak +include config.mak -TARGET = ../libmltsox.so +TARGET = ../libmltsox$(LIBSUF) OBJS = factory.o \ filter_sox.o -CFLAGS += -I../../ -I/usr/include/sox +CFLAGS += -I../../ -LDFLAGS += -lst -lpopt -lvorbis -logg -lvorbisfile -lvorbisenc +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)$(libdir)/mlt" ifneq ($(wildcard .depend),) include .depend