diff options
author | Rudolf Polzer <divverent@xonotic.org> | 2012-08-23 12:32:13 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-23 13:13:53 +0200 |
commit | 2adc81f0a2459a565437009ff6f4ace1dca3d46c (patch) | |
tree | 4fb92807ad61980fac5230d670af374aaaa9d082 /TOOLS/vf_dlopen/Makefile | |
parent | 2e6450c7cc88f1e39034ac111e9b54a421bca661 (diff) | |
download | mpv-2adc81f0a2459a565437009ff6f4ace1dca3d46c.tar.bz2 mpv-2adc81f0a2459a565437009ff6f4ace1dca3d46c.tar.xz |
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/
Diffstat (limited to 'TOOLS/vf_dlopen/Makefile')
-rw-r--r-- | TOOLS/vf_dlopen/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
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) + |