Files
2025-11-23 09:44:54 -05:00

16 lines
445 B
Makefile

#Makefile
CCX64 = x86_64-w64-mingw32-gcc
LDX64 = x86_64-w64-mingw32-ld
CFLAGS = -w -Os -s -m64 -masm=intel -fno-builtin -fno-jump-tables
TEMP_PATH = Bin/temp
draugr:
@ nasm -f win64 Src/Stub.s -o $(TEMP_PATH)/Stub.o
@ $(CCX64) -c Src/Bof.c $(CFLAGS) -o $(TEMP_PATH)/Bof.o
@ $(CCX64) -c Src/Draugr.c $(CFLAGS) -o $(TEMP_PATH)/Draugr.o
@ $(LDX64) --allow-multiple-definition -r $(TEMP_PATH)/*.o -o Bin/runpe.o
@ echo "[*] BOF Ready "