blob: 3674e1caf229f2cb35350f98175042da726ad869 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
CC = clang
WARNINGS=-Wall -Wpedantic -Wextra -Wno-gnu-zero-variadic-macro-arguments \
-D_CRT_SECURE_NO_WARNINGS
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
all: rt.exe
rt.exe: $(OBJS)
$(CC) -fuse-ld=lld $(CFLAGS) $(LDFLAGS) $(OBJS) -o rt.exe
%.o: %.c
$(CC) -c $(WARNINGS) $(CFLAGS) $< -o $@
clean:
rm -f *.o 3p/sst/*.o *.exe *.pdb
rebuild: clean all
|