aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: b03699c6803a9fa5f50d22bbeaf17d0666b90b9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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