]> git.sesse.net Git - mlt/blob - src/modules/qimage/Makefile
move binary modules to libdir - affects MLT_REPOSITORY
[mlt] / src / modules / qimage / Makefile
1 include ../../../config.mak
2 include config.mak
3
4 TARGET=../libmltqimage$(LIBSUF)
5
6 OBJS=factory.o producer_qimage.o
7 CPPOBJS=qimage_wrapper.o
8 CFLAGS+=-I../../
9 LDFLAGS=-L../../framework $(QTLIBS) -lmlt -lstdc++
10 CXXFLAGS+=$(CFLAGS) $(QTCXXFLAGS) -Wno-deprecated
11
12 ifdef USE_KDE
13 LDFLAGS+= -lkio
14 endif
15
16 SRCS := $(OBJS:.o=.c) $(CPPOBJS:.o=.cpp)
17
18 all:    $(TARGET)
19
20 $(TARGET): $(OBJS) $(CPPOBJS)
21                 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(CPPOBJS) $(LDFLAGS)
22
23 depend: $(SRCS)
24                 $(CC) -MM $(CFLAGS) $(QTCXXFLAGS) $^ 1>.depend
25
26 distclean:      clean
27                 rm -f .depend config.h config.mak
28
29 clean:  
30                 rm -f $(OBJS) $(TARGET) $(CPPOBJS)
31
32 install: all
33         install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
34
35 ifneq ($(wildcard .depend),)
36 include .depend
37 endif