]> git.sesse.net Git - mlt/blob - src/modules/qimage/Makefile
Apply cosmetic cleanup part of ldflags_order patch from Alberto Villa.
[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
9 CFLAGS += -I../..
10 CXXFLAGS += $(CFLAGS) $(QTCXXFLAGS) -Wno-deprecated
11
12 LDFLAGS = -L../../framework -lmlt
13 LDFLAGS += $(QTLIBS)
14 LDFLAGS += -lstdc++
15
16 ifdef USE_KDE
17 LDFLAGS += -lkio
18 endif
19
20 SRCS := $(OBJS:.o=.c) $(CPPOBJS:.o=.cpp)
21
22 all:    $(TARGET)
23
24 $(TARGET): $(OBJS) $(CPPOBJS)
25                 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(CPPOBJS) $(LDFLAGS)
26
27 depend: $(SRCS)
28                 $(CC) -MM $(CFLAGS) $(QTCXXFLAGS) $^ 1>.depend
29
30 distclean:      clean
31                 rm -f .depend config.h config.mak
32
33 clean:  
34                 rm -f $(OBJS) $(TARGET) $(CPPOBJS)
35
36 install: all
37         install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
38
39 ifneq ($(wildcard .depend),)
40 include .depend
41 endif