diff options
author | Matthew Wozniak <me@woz.blue> | 2024-10-27 23:28:51 -0400 |
---|---|---|
committer | Matthew Wozniak <me@woz.blue> | 2024-10-27 23:28:51 -0400 |
commit | fb95177298bb92098b61f09b9f66c1fce32f2f02 (patch) | |
tree | c73b45c91f145dca7d055a1cde1f4efaa6db8da6 /Makefile | |
parent | 36b6d84ee4b520bdf43891ea86df03cf660cb464 (diff) | |
download | rt-fb95177298bb92098b61f09b9f66c1fce32f2f02.tar.gz rt-fb95177298bb92098b61f09b9f66c1fce32f2f02.zip |
add hooking and IVEngineServer interface
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -1,15 +1,13 @@ CC = clang
-CFLAGS = -g -O2 -target i686-windows-msvc -include stdbool.h
-LDFLAGS = -g -fuse-ld=lld -O2 -m32
-OBJS = main.o
+OBJS = main.o api.o 3p/sst/x86.o hook.o
+WARNINGS=-Wpedantic -Wno-gnu-zero-variadic-macro-arguments # clang is stupid!
all: rt.exe
-
rt.exe: $(OBJS)
- $(CC) $(LDFLAGS) $(OBJS) -o rt.exe
+ $(CC) -m32 -fuse-ld=lld $(LDFLAGS) $(OBJS) -o rt.exe
%.o: %.c
- $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
+ $(CC) -c -m32 -include stdbool.h -std=c23 $(WARNINGS) $(CFLAGS) $< -o $@
clean:
- rm -f *.o *.exe *.pdb
+ rm -f *.o 3p/sst/*.o *.exe *.pdb
|