diff options
author | Matthew Wozniak <me@woz.blue> | 2024-10-25 23:24:45 -0400 |
---|---|---|
committer | Matthew Wozniak <me@woz.blue> | 2024-10-25 23:24:45 -0400 |
commit | 36b6d84ee4b520bdf43891ea86df03cf660cb464 (patch) | |
tree | 3aa78d9b1a3f04c0aeaaf86c8a60106115bf5c85 /Makefile | |
download | rt-36b6d84ee4b520bdf43891ea86df03cf660cb464.tar.gz rt-36b6d84ee4b520bdf43891ea86df03cf660cb464.zip |
create project
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
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
|