CC = clang OBJS = main.o api.o 3p/sst/x86.o hook.o WARNINGS=-Wpedantic -Wno-gnu-zero-variadic-macro-arguments # clang is stupid! all: rt.exe rt.exe: $(OBJS) $(CC) -m32 -fuse-ld=lld $(LDFLAGS) $(OBJS) -o rt.exe %.o: %.c $(CC) -c -m32 -include stdbool.h -std=c23 $(WARNINGS) $(CFLAGS) $< -o $@ clean: rm -f *.o 3p/sst/*.o *.exe *.pdb