summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordyknon <dyknon@r5f.jp>2025-04-01 21:01:08 +0900
committerdyknon <dyknon@r5f.jp>2025-04-01 21:01:08 +0900
commit8439d0383adaee15bfd9a82a4d76db352690750e (patch)
tree0f8c838a9f3e7821c7f0012d3fa2858692373236 /Makefile
parent2020bdb38c516682f53af6e8dbdbb3337a74483a (diff)
preparing for a release.HEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1a3ff40
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+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
+
+all: ytdl-storyboard.so
+
+ytdl-storyboard.so: storyboard.c Makefile
+ gcc -o $@ $(CFLAGS) $(LDFLAGS) -shared $<