mirror of
https://github.com/fortra/No-Consolation
synced 2026-06-06 15:44:28 +00:00
7994bdc24a
run a PE inline without creating a new thread
18 lines
604 B
Makefile
18 lines
604 B
Makefile
BOFNAME := NoConsolation
|
|
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
|
|
|
|
release:
|
|
$(CC_x64) -c source/entry.c -o dist/$(BOFNAME).x64.o $(OPTIONS)
|
|
$(STRIP_x64) --strip-unneeded dist/$(BOFNAME).x64.o
|
|
|
|
$(CC_x86) -c source/entry.c -o dist/$(BOFNAME).x86.o $(OPTIONS)
|
|
$(STRIP_x86) --strip-unneeded dist/$(BOFNAME).x86.o
|
|
|
|
debug:
|
|
$(CC_x64) -c source/entry.c -o dist/$(BOFNAME).x64.o $(OPTIONS) -DDEBUG
|
|
$(CC_x86) -c source/entry.c -o dist/$(BOFNAME).x86.o $(OPTIONS) -DDEBUG
|