-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (18 loc) · 718 Bytes
/
Makefile
File metadata and controls
23 lines (18 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
BOFNAME := SignalKey
COMINCLUDE :=
LIBINCLUDE := -l shlwapi -l crypt32 -l iostream
CC_x64 := x86_64-w64-mingw32-gcc
CC_x86 := i686-w64-mingw32-gcc
CC := x86_64-w64-mingw32-clang
all:
$(CC_x64) -o $(BOFNAME).x64.o $(COMINCLUDE) -Os -c bof.c -DBOF
$(CC_x86) -o $(BOFNAME).x86.o $(COMINCLUDE) -Os -c bof.c -DBOF
test:
$(CC_x64) bof.c -g $(COMINCLUDE) $(LIBINCLUDE) -o $(BOFNAME).x64.exe
$(CC_x86) bof.c -g $(COMINCLUDE) $(LIBINCLUDE) -o $(BOFNAME).x86.exe
scanbuild:
$(CC) bof.c -o $(BOFNAME).scanbuild.exe $(COMINCLUDE) $(LIBINCLUDE)
check:
cppcheck --enable=all --suppress=missingIncludeSystem --suppress=unusedFunction $(COMINCLUDE) --platform=win64 bof.c
clean:
rm $(BOFNAME).*.exe