diff options
author | Matthew Wozniak <me@woz.blue> | 2024-11-01 13:47:31 -0400 |
---|---|---|
committer | Matthew Wozniak <me@woz.blue> | 2024-11-01 13:48:09 -0400 |
commit | a2f7e37d8adf2047e1f3b0ea1227ac9d51514783 (patch) | |
tree | 2942ee2a12abe02e27f119552221c6a06ac87273 /Makefile | |
parent | fb95177298bb92098b61f09b9f66c1fce32f2f02 (diff) | |
download | rt-a2f7e37d8adf2047e1f3b0ea1227ac9d51514783.tar.gz rt-a2f7e37d8adf2047e1f3b0ea1227ac9d51514783.zip |
play demo using the demoplayer object
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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
|