summaryrefslogtreecommitdiffstats
path: root/TOOLS/vf_dlopen/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/vf_dlopen/Makefile')
-rw-r--r--TOOLS/vf_dlopen/Makefile24
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)
+