aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
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