]> git.sesse.net Git - mlt/blob - src/modules/xml/Makefile
Add datadir and mandir options to configure.
[mlt] / src / modules / xml / Makefile
1 include ../../../config.mak
2
3 TARGET = ../libmltxml$(LIBSUF)
4
5 OBJS = factory.o \
6            consumer_xml.o \
7            producer_xml.o
8
9 CFLAGS += -I../..
10 CFLAGS += `pkg-config libxml-2.0 --cflags`
11
12 LDFLAGS += -L../../framework -lmlt
13 LDFLAGS += `pkg-config libxml-2.0 --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         install -d "$(DESTDIR)$(datadir)/mlt/xml"
34         install -m 644 mlt-xml.dtd "$(DESTDIR)$(datadir)/mlt/xml"
35
36 ifneq ($(wildcard .depend),)
37 include .depend
38 endif