aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Matthew Wozniak <me@woz.blue> 2024-11-01 13:47:31 -0400
committerGravatar Matthew Wozniak <me@woz.blue> 2024-11-01 13:48:09 -0400
commita2f7e37d8adf2047e1f3b0ea1227ac9d51514783 (patch)
tree2942ee2a12abe02e27f119552221c6a06ac87273 /Makefile
parentfb95177298bb92098b61f09b9f66c1fce32f2f02 (diff)
downloadrt-a2f7e37d8adf2047e1f3b0ea1227ac9d51514783.tar.gz
rt-a2f7e37d8adf2047e1f3b0ea1227ac9d51514783.zip
play demo using the demoplayer object
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b03699c..61e4b7d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,16 @@
CC = clang
OBJS = main.o api.o 3p/sst/x86.o hook.o
-WARNINGS=-Wpedantic -Wno-gnu-zero-variadic-macro-arguments # clang is stupid!
+WARNINGS=-Wpedantic -Wextra -Wno-gnu-zero-variadic-macro-arguments \
+ -D_CRT_SECURE_NO_WARNINGS
all: rt.exe
rt.exe: $(OBJS)
- $(CC) -m32 -fuse-ld=lld $(LDFLAGS) $(OBJS) -o rt.exe
+ $(CC) -m32 -fuse-ld=lld $(CFLAGS) $(LDFLAGS) $(OBJS) -o rt.exe
%.o: %.c
- $(CC) -c -m32 -include stdbool.h -std=c23 $(WARNINGS) $(CFLAGS) $< -o $@
+ $(CC) -c -m32 -include stdbool.h -I3p -std=c23 $(WARNINGS) $(CFLAGS) $< -o $@
clean:
rm -f *.o 3p/sst/*.o *.exe *.pdb
+
+rebuild: clean all