aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Matthew Wozniak <me@woz.blue> 2024-11-03 00:16:00 -0400
committerGravatar Matthew Wozniak <me@woz.blue> 2024-11-03 00:16:00 -0400
commitd00096fe2ea3dd64cff9878879c077f23a783e4a (patch)
tree38da364a01d63d8796dc5c38b20ff73539ac1c82 /Makefile
parenta2f7e37d8adf2047e1f3b0ea1227ac9d51514783 (diff)
downloadrt-d00096fe2ea3dd64cff9878879c077f23a783e4a.tar.gz
rt-d00096fe2ea3dd64cff9878879c077f23a783e4a.zip
find videomode
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 61e4b7d..db5c765 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,15 @@
CC = clang
OBJS = main.o api.o 3p/sst/x86.o hook.o
-WARNINGS=-Wpedantic -Wextra -Wno-gnu-zero-variadic-macro-arguments \
+WARNINGS=-Wall -Wpedantic -Wextra -Wno-gnu-zero-variadic-macro-arguments \
-D_CRT_SECURE_NO_WARNINGS
+CFLAGS:=$(CFLAGS) -m32 -flto -I3p -std=c23
all: rt.exe
rt.exe: $(OBJS)
- $(CC) -m32 -fuse-ld=lld $(CFLAGS) $(LDFLAGS) $(OBJS) -o rt.exe
+ $(CC) -fuse-ld=lld $(CFLAGS) $(LDFLAGS) $(OBJS) -o rt.exe
%.o: %.c
- $(CC) -c -m32 -include stdbool.h -I3p -std=c23 $(WARNINGS) $(CFLAGS) $< -o $@
+ $(CC) -c $(WARNINGS) $(CFLAGS) $< -o $@
clean:
rm -f *.o 3p/sst/*.o *.exe *.pdb