]> git.sesse.net Git - mlt/blob - src/modules/swfdec/Makefile
add configure options and fixes for cross-compiling
[mlt] / src / modules / swfdec / Makefile
1 CFLAGS += -I../..
2
3 LDFLAGS += -L../../framework -lmlt -lm
4
5 include ../../../config.mak
6 include config.mak
7
8 TARGET = ../libmltswfdec$(LIBSUF)
9
10 OBJS = producer_swfdec.o
11
12 ifeq ($(targetos), MinGW)
13 LDFLAGS += -Wl,enable-auto-import -lz
14 endif
15
16 SRCS := $(OBJS:.o=.c)
17
18 all:    $(TARGET)
19
20 $(TARGET): $(OBJS)
21                 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
22
23 depend: $(SRCS)
24                 $(CC) -MM $(CFLAGS) $^ 1>.depend
25
26 distclean:      clean
27                 rm -f .depend
28
29 clean:  
30                 rm -f $(OBJS) $(TARGET)
31
32 install: all
33         install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
34         install -d "$(DESTDIR)$(datadir)/mlt/swfdec"
35         install -m 644 *.yml "$(DESTDIR)$(datadir)/mlt/swfdec"
36
37 ifneq ($(wildcard .depend),)
38 include .depend
39 endif