X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Favformat%2FMakefile;h=aba87afffb7462ac2939eaf13de7c47c13e243ed;hb=a12d28fe778fe2c816b3a60229e2ac440648a884;hp=3d1e1cc06e4c71d842411be73a207590f7bcd587;hpb=c287a51b7a4c2cc437256c178a5eb2e7775d34fa;p=melted diff --git a/src/modules/avformat/Makefile b/src/modules/avformat/Makefile index 3d1e1cc..aba87af 100644 --- a/src/modules/avformat/Makefile +++ b/src/modules/avformat/Makefile @@ -1,33 +1,42 @@ include ../../../config.mak +include config.mak TARGET = ../libmltavformat.so OBJS = factory.o \ producer_avformat.o \ - consumer_avformat.o + consumer_avformat.o \ + filter_avcolour_space.o \ + filter_avdeinterlace.o \ + filter_avresample.o -CFLAGS = -O3 -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 +CFLAGS+=-I../.. -LDFLAGS = -lavformat -lavcodec +LDFLAGS+=-lavformat -lavcodec $(EXTRA_LIBS) +LDFLAGS+=-L../../framework -lmlt SRCS := $(OBJS:.o=.c) all: $(TARGET) $(TARGET): $(OBJS) + if [ $(LOCAL_FFMPEG) ] ; then $(MAKE) -C ffmpeg all ; fi $(CC) -shared -o $@ $(OBJS) $(LDFLAGS) depend: $(SRCS) + if [ $(LOCAL_FFMPEG) ] ; then $(MAKE) -C ffmpeg dep ; fi $(CC) -MM $(CFLAGS) $^ 1>.depend dist-clean: clean + if [ $(LOCAL_FFMPEG) ] ; then $(MAKE) -C ffmpeg dist-clean ; fi rm -f .depend clean: + if [ $(LOCAL_FFMPEG) ] ; then $(MAKE) -C ffmpeg clean ; fi rm -f $(OBJS) $(TARGET) install: all - install -m 755 $(TARGET) "$(prefix)/share/mlt/modules" + install -m 755 $(TARGET) "$(prefix)/share/mlt/modules" ifneq ($(wildcard .depend),) include .depend