]> git.sesse.net Git - mlt/blob - src/modules/sox/Makefile
Version modules and data directories, and melt
[mlt] / src / modules / sox / Makefile
1 CFLAGS += -I../..
2
3 LDFLAGS += -L../../framework -lmlt -lm
4
5 include ../../../config.mak
6
7 include config.mak
8
9 TARGET = ../libmltsox$(LIBSUF)
10
11 OBJS = factory.o \
12            filter_sox.o 
13
14 SRCS := $(OBJS:.o=.c)
15
16 all:    $(TARGET)
17
18 $(TARGET): $(OBJS)
19                 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
20
21 depend: $(SRCS)
22                 $(CC) -MM $(CFLAGS) $^ 1>.depend
23
24 distclean:      clean
25                 rm -f .depend
26
27 clean:  
28                 rm -f $(OBJS) $(TARGET)
29
30 install: all
31         install -m 755 $(TARGET) "$(DESTDIR)$(moduledir)"
32         install -d "$(DESTDIR)$(mltdatadir)/sox"
33         install -m 644 filter_sox.yml "$(DESTDIR)$(mltdatadir)/sox"
34         install -m 644 filter_sox_effect.yml "$(DESTDIR)$(mltdatadir)/sox"
35
36 uninstall:
37         rm "$(DESTDIR)$(moduledir)/libmltsox$(LIBSUF)" 2> /dev/null || true
38         rm -rf "$(DESTDIR)$(mltdatadir)/sox"
39
40 ifneq ($(wildcard .depend),)
41 include .depend
42 endif