forked from RobinFassinaMoschiniForks/bootdoor
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (18 loc) · 672 Bytes
/
Makefile
File metadata and controls
22 lines (18 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CC_X64 := x86_64-w64-mingw32-gcc
CFLAGS := $(CFLAGS) -Os -fno-asynchronous-unwind-tables -nostdlib
CFLAGS := $(CFLAGS) -fno-ident -fpack-struct=8 -falign-functions=1
CFLAGS := $(CFLAGS) -s -ffunction-sections -falign-jumps=1 -w
CFLAGS := $(CFLAGS) -falign-labels=1 -fPIC -Wl,-TSectionLink.ld
LFLAGS := $(LFLAGS) -Wl,-s,--no-seh,--enable-stdcall-fixup
OUTX64 := bootdoor.x64.exe
BINX64 := bootdoor.x64.bin
all:
@ nasm -f win64 asm/x64/GetIp.asm -o GetIp.x64.o
@ $(CC_X64) *.c GetIp.x64.o -o $(OUTX64) $(CFLAGS) $(LFLAGS) -I.
@ python3 python3/extract.py -f $(OUTX64) -o $(BINX64)
@ rm -rf *.exe
@ rm -rf *.o
clean:
@ rm -rf *.o
@ rm -rf *.bin
@ rm -rf *.exe