sox/Makefile: helpful note for Ubuntu (and Debian?)
[melted] / src / modules / sox / Makefile
1 include ../../../config.mak
2 include config.mak
3
4 TARGET = ../libmltsox$(LIBSUF)
5
6 OBJS = factory.o \
7 filter_sox.o
8
9 CFLAGS += -I../../
10
11 LDFLAGS += -L../../framework -lmlt
12 # NOTE: Ubuntu may require -lsamplerate -lsndfile as well
13 # since they are not in libst-config --libs
14
15 SRCS := $(OBJS:.o=.c)
16
17 all: $(TARGET)
18
19 $(TARGET): $(OBJS)
20 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
21
22 depend: $(SRCS)
23 $(CC) -MM $(CFLAGS) $^ 1>.depend
24
25 distclean: clean
26 rm -f .depend
27
28 clean:
29 rm -f $(OBJS) $(TARGET)
30
31 install: all
32 install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
33
34 ifneq ($(wildcard .depend),)
35 include .depend
36 endif