diff options
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
|