mirror of
https://github.com/KingOfTheNOPs/CDP-Enable-BOF
synced 2026-06-29 08:59:28 +00:00
17 lines
420 B
Makefile
17 lines
420 B
Makefile
CC=x86_64-w64-mingw32-gcc
|
|
OBJCOPY=x86_64-w64-mingw32-objcopy
|
|
CFLAGS=-O2 -c -Wall -Wextra -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-exceptions -fno-stack-protector
|
|
INCLUDES=-I .
|
|
OUT=cdp_enable_bof.o
|
|
|
|
.PHONY: all clean
|
|
|
|
all: $(OUT)
|
|
|
|
$(OUT): cdp_enable_bof.c
|
|
$(CC) $(CFLAGS) -o $@ $< $(INCLUDES)
|
|
$(OBJCOPY) --remove-section .pdata --remove-section .xdata --remove-section .eh_frame $@
|
|
|
|
clean:
|
|
rm -f $(OUT)
|