]> git.sesse.net Git - mlt/blobdiff - src/modules/xml/Makefile
Move burningtv into plusgpl module.
[mlt] / src / modules / xml / Makefile
index 2ab4ed84ddb7d3443c31d82053b7cd66b3b53d84..6bdf19ee5dd51caeab294aeb6c2eb305684a0113 100644 (file)
@@ -1,16 +1,18 @@
+CFLAGS += -I../..
+
+LDFLAGS += -L../../framework -lmlt -lpthread
+
 include ../../../config.mak
 
-TARGET = ../libmltwestley$(LIBSUF)
+TARGET = ../libmltxml$(LIBSUF)
 
 OBJS = factory.o \
-          consumer_westley.o \
-          producer_westley.o
+          consumer_xml.o \
+          producer_xml.o
 
-CFLAGS += -I../..
-CFLAGS += `xml2-config --cflags`
+CFLAGS += $(shell pkg-config libxml-2.0 --cflags)
 
-LDFLAGS += -L../../framework -lmlt
-LDFLAGS += `xml2-config --libs`
+LDFLAGS += $(shell pkg-config libxml-2.0 --libs)
 
 SRCS := $(OBJS:.o=.c)
 
@@ -29,8 +31,10 @@ clean:
                rm -f $(OBJS) $(TARGET) 
 
 install: all
-       install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
-       install -m 644 westley.dtd "$(DESTDIR)$(prefix)/share/mlt"
+       install -m 755 $(TARGET) "$(DESTDIR)$(moduledir)"
+       install -d "$(DESTDIR)$(mltdatadir)/xml"
+       install -m 644 mlt-xml.dtd "$(DESTDIR)$(mltdatadir)/xml"
+       install -m 644 *.yml "$(DESTDIR)$(mltdatadir)/xml"
 
 ifneq ($(wildcard .depend),)
 include .depend