CC = clang CFLAGS = -g -O2 -target i686-windows-msvc -include stdbool.h LDFLAGS = -g -fuse-ld=lld -O2 -m32 OBJS = main.o all: rt.exe rt.exe: $(OBJS) $(CC) $(LDFLAGS) $(OBJS) -o rt.exe %.o: %.c $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ clean: rm -f *.o *.exe *.pdb