aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Matthew Wozniak <me@woz.blue> 2024-11-18 20:48:48 -0500
committerGravatar Matthew Wozniak <me@woz.blue> 2024-11-18 20:48:48 -0500
commit0f942c806786bdf1fa608d5cf32fdf8a418236b0 (patch)
treeb41b6c281bd5e29090bb1336e3aa1e925ad75a2d /Makefile
parent983d0be5920f43b281154a167693ceaad86d8da4 (diff)
downloadrt-0f942c806786bdf1fa608d5cf32fdf8a418236b0.tar.gz
rt-0f942c806786bdf1fa608d5cf32fdf8a418236b0.zip
switch to using FFmpeg for encoding, add audio
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c5ccb5f..3674e1c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,17 @@
CC = clang
WARNINGS=-Wall -Wpedantic -Wextra -Wno-gnu-zero-variadic-macro-arguments \
-D_CRT_SECURE_NO_WARNINGS
-override CFLAGS+=-m32 -flto -I3p -std=c23
-override LDFLAGS+=-lmf -lmfplat -lole32 -lmfuuid -lmfreadwrite -lstrmiids
+
+ifeq ($(OS), Windows_NT)
+ override CFLAGS+=-I"$(VCPKG_ROOT)/installed/x86-windows-static/include"
+ override LDFLAGS+=-L"$(VCPKG_ROOT)/installed/x86-windows-static/lib"
+endif
+
+override CFLAGS+=-m32 -I3p -std=c23
+override LDFLAGS+=-lavcodec -lavformat -lavutil -lswscale -llibmfx \
+ -llibx264 -lswresample -laom -lSvtAv1Enc -lwsock32 -lws2_32 -lbcrypt \
+ -lsecur32 -lx265-static -lmfuuid -lstrmiids -luser32
+
OBJS = main.o api.o 3p/sst/x86.o hook.o render.o