From 2adc81f0a2459a565437009ff6f4ace1dca3d46c Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 23 Aug 2012 12:32:13 +0200 Subject: vf_dlopen: add a generic filter to load external filters Usage: -vf dlopen=filename.so:args... Examples of such filters are provided in TOOLS/vf_dlopen/ --- TOOLS/vf_dlopen/Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 TOOLS/vf_dlopen/Makefile (limited to 'TOOLS/vf_dlopen/Makefile') diff --git a/TOOLS/vf_dlopen/Makefile b/TOOLS/vf_dlopen/Makefile new file mode 100644 index 0000000000..2fa4e740c2 --- /dev/null +++ b/TOOLS/vf_dlopen/Makefile @@ -0,0 +1,24 @@ +FILTERS = showqscale telecine tile +COMMON = filterutils.o + +OBJECTS = $(patsubst %,%.o,$(FILTERS)) $(COMMON) +HEADERS = $(wildcard *.h) +OUT = $(patsubst %,%.so,$(FILTERS)) + +CFLAGS ?= -Wall -Wextra -O3 -march=native -mtune=native + +CPPFLAGS += -I../../libmpcodecs +CFLAGS += -fPIC +LDFLAGS += -shared -fPIC + +all: $(OUT) + +clean: + $(RM) $(OBJECTS) $(OUT) + +%.so: %.o $(COMMON) + $(CC) $(LDFLAGS) $(LIBS) -o $@ $(COMMON) $< + +# FIXME replace this by real dependency tracking +%.o: %.c $(HEADERS) + -- cgit v1.2.3