X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Favformat%2FMakefile;h=d5096fa44f473f0185e1b6520445fca816b4978e;hb=d4457eefde2e74e4dd5d927f37a89ed52e4b4cf9;hp=66e57f83839bd343bd6a7bddca5ea1888523af13;hpb=a0a988c50fce047427b445d5e21d7354862e8e23;p=melted diff --git a/src/modules/avformat/Makefile b/src/modules/avformat/Makefile index 66e57f8..d5096fa 100644 --- a/src/modules/avformat/Makefile +++ b/src/modules/avformat/Makefile @@ -1,32 +1,39 @@ include ../../../config.mak +include config.mak TARGET = ../libmltavformat.so OBJS = factory.o \ - producer_avformat.o + producer_avformat.o \ + consumer_avformat.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) 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: 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