blob: 61e4b7da14780a0465a3161d0f468d3745135d08 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
CC = clang
OBJS = main.o api.o 3p/sst/x86.o hook.o
WARNINGS=-Wpedantic -Wextra -Wno-gnu-zero-variadic-macro-arguments \
-D_CRT_SECURE_NO_WARNINGS
all: rt.exe
rt.exe: $(OBJS)
$(CC) -m32 -fuse-ld=lld $(CFLAGS) $(LDFLAGS) $(OBJS) -o rt.exe
%.o: %.c
$(CC) -c -m32 -include stdbool.h -I3p -std=c23 $(WARNINGS) $(CFLAGS) $< -o $@
clean:
rm -f *.o 3p/sst/*.o *.exe *.pdb
rebuild: clean all
|