44ad0d6ca67aecf79456579ec3df9748c1df2276
[melted] / 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 SRCS := $(OBJS:.o=.c) $(CPPOBJS:.o=.cpp)
13
14 all: $(TARGET)
15
16 $(TARGET): $(OBJS) $(CPPOBJS)
17 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(CPPOBJS) $(LDFLAGS)
18
19 depend: $(SRCS)
20 $(CC) -MM $(CFLAGS) $(QTCXXFLAGS) $^ 1>.depend
21
22 distclean: clean
23 rm -f .depend config.h config.mak
24
25 clean:
26 rm -f $(OBJS) $(TARGET) $(CPPOBJS)
27
28 install: all
29 install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
30
31 ifneq ($(wildcard .depend),)
32 include .depend
33 endif