]> git.sesse.net Git - mlt/blob - src/modules/qt/Makefile
Refactor QApplication creation and fix lifetime of its args.
[mlt] / src / modules / qt / Makefile
1 CFLAGS := -I../.. $(CFLAGS)
2
3 LDFLAGS += -L../../framework -lmlt -lpthread -lm -L../../mlt++ -lmlt++
4
5 include ../../../config.mak
6 include config.mak
7
8 TARGET = ../libmltqt$(LIBSUF)
9
10 OBJS = factory.o producer_qimage.o producer_kdenlivetitle.o
11 CPPOBJS = common.o \
12         qimage_wrapper.o \
13         kdenlivetitle_wrapper.o \
14         consumer_qglsl.o \
15         producer_qtext.o
16
17 ifdef GPL3
18         CPPOBJS += transition_vqm.o
19         CFLAGS += -DGPL3
20 endif
21
22 ifneq ($(targetos), Darwin)
23 ifneq ($(targetos), MinGW)
24     LDFLAGS += -lX11
25 endif
26 endif
27
28 CXXFLAGS := $(QTCXXFLAGS) $(CXXFLAGS) $(CFLAGS) $(EXIFCXXFLAGS) $(KDECXXFLAGS) -Wno-deprecated
29
30 LDFLAGS += $(QTLIBS) $(EXIFLIBS) $(KDELIBS)
31
32 SRCS := $(OBJS:.o=.c) $(CPPOBJS:.o=.cpp)
33
34 all:    $(TARGET)
35
36 $(TARGET): $(OBJS) $(CPPOBJS)
37                 $(CXX) $(SHFLAGS) -o $@ $(OBJS) $(CPPOBJS) $(LDFLAGS)
38
39 depend: $(SRCS)
40                 $(CXX) -MM $(CXXFLAGS) $^ 1>.depend
41
42 distclean:      clean
43                 rm -f .depend config.h config.mak
44
45 clean:  
46                 rm -f $(OBJS) $(TARGET) $(CPPOBJS)
47
48 install: all
49         install -m 755 $(TARGET) "$(DESTDIR)$(moduledir)"
50         install -d "$(DESTDIR)$(mltdatadir)/qt"
51         install -m 644 *.yml "$(DESTDIR)$(mltdatadir)/qt"
52
53 ifneq ($(wildcard .depend),)
54 include .depend
55 endif