From 36b6d84ee4b520bdf43891ea86df03cf660cb464 Mon Sep 17 00:00:00 2001 From: Matthew Wozniak Date: Fri, 25 Oct 2024 23:24:45 -0400 Subject: create project --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91fdac8 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +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 -- cgit v1.2.3-54-g00ecf