]> git.sesse.net Git - mlt/blob - src/modules/vorbis/Makefile
Convert backtick to $(shell) in Makefiles.
[mlt] / src / modules / vorbis / Makefile
1 CFLAGS += -I../..
2
3 LDFLAGS += -L../../framework -lmlt
4
5 include ../../../config.mak
6
7 TARGET = ../libmltvorbis$(LIBSUF)
8
9 OBJS = factory.o \
10            producer_vorbis.o
11
12 CFLAGS += $(shell pkg-config --cflags vorbis)
13 CFLAGS += $(shell pkg-config --cflags vorbisfile)
14
15 LDFLAGS += $(shell pkg-config --libs vorbis)
16 LDFLAGS += $(shell pkg-config --libs vorbisfile)
17
18 SRCS := $(OBJS:.o=.c)
19
20 all:    $(TARGET)
21
22 $(TARGET): $(OBJS)
23                 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
24
25 depend: $(SRCS)
26                 $(CC) -MM $(CFLAGS) $^ 1>.depend
27
28 distclean:      clean
29                 rm -f .depend
30
31 clean:  
32                 rm -f $(OBJS) $(TARGET) 
33
34 install: all
35         install -m 755 $(TARGET) "$(DESTDIR)$(moduledir)"
36         install -d "$(DESTDIR)$(mltdatadir)/vorbis"
37         install -m 644 *.yml "$(DESTDIR)$(mltdatadir)/vorbis"
38
39 ifneq ($(wildcard .depend),)
40 include .depend
41 endif