blob: ae528570a3bb2fcafb97303cb1cd5338fd4b1fc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
LIBPKGS=libcjson libavutil libavformat libavcodec libswscale
CFLAGS=$(shell pkg-config --cflags mpv) \
$(shell pkg-config --cflags $(LIBPKGS)) \
-pthread \
-fPIC -Wall -Wno-unused-variable -Wno-parentheses -Wno-unused-function
LDFLAGS=$(shell pkg-config --libs $(LIBPKGS)) \
-pthread
test: all
mpv ytdl://ABH1Vft36aY ytdl://H9uwaNw4DRY
all: ytdl-storyboard.so
ytdl-storyboard.so: storyboard.c Makefile
gcc -o $@ $(CFLAGS) $(LDFLAGS) -shared $<
|