forked from S4ntiagoP/freeBokuLoader
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (16 loc) · 674 Bytes
/
Copy pathMakefile
File metadata and controls
20 lines (16 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
BOFNAME := freeMetsrvLoader
CC_x64 := x86_64-w64-mingw32-gcc
CC_x86 := i686-w64-mingw32-gcc
STRIP_x64 := x86_64-w64-mingw32-strip
STRIP_x86 := i686-w64-mingw32-strip
OPTIONS := -masm=intel -Wall -I include
freeMetsrvLoader: clean
$(CC_x64) -c source/entry.c -o dist/$(BOFNAME).x64.o $(OPTIONS) -DBOF
$(STRIP_x64) --strip-unneeded dist/$(BOFNAME).x64.o
$(CC_x86) -c source/entry.c -o dist/$(BOFNAME).x86.o $(OPTIONS) -DBOF
$(STRIP_x86) --strip-unneeded dist/$(BOFNAME).x86.o
debug: clean
$(CC_x64) -c source/entry.c -o dist/$(BOFNAME).x64.o $(OPTIONS) -DBOF -DDEBUG
$(CC_x86) -c source/entry.c -o dist/$(BOFNAME).x86.o $(OPTIONS) -DBOF -DDEBUG
clean:
rm -f dist/*