X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Favformat%2FMakefile;h=558438355fc6702936102e7fc513e867a3b9bd40;hb=7f00120cd5cc8a7194ca016f3a340b57cf5703f5;hp=8a670467edd5ef69a55b21c7dba8db9e161b8017;hpb=16c5c516008b9debec7765e34f4756f8063dee7e;p=melted diff --git a/src/modules/avformat/Makefile b/src/modules/avformat/Makefile index 8a67046..5584383 100644 --- a/src/modules/avformat/Makefile +++ b/src/modules/avformat/Makefile @@ -1,29 +1,41 @@ +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 = -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: rm -f $(OBJS) $(TARGET) +install: all + install -m 755 $(TARGET) "$(prefix)/share/mlt/modules" + ifneq ($(wildcard .depend),) include .depend endif