aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 94bf072653b70e6f48f7ff7d1fd2b2d82b2f2bd4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 -lmfuuid -lmfreadwrite -lstrmiids

OBJS = main.o api.o 3p/sst/x86.o 3p/ms/getopt.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