19 lines
294 B
Makefile
19 lines
294 B
Makefile
|
#
|
||
|
# bapp.c makefile
|
||
|
#
|
||
|
|
||
|
CC = gcc
|
||
|
CFLAGS = -g
|
||
|
|
||
|
vulnerable_bapp: bapp.c
|
||
|
$(CC) $(CFLAGS) -fno-stack-protector -z execstack bapp.c -o vulnerable_bapp
|
||
|
|
||
|
protected_bapp: bapp.c
|
||
|
$(CC) $(CFLAGS) -fstack-protector -z noexecstack bapp.c -o protected_bapp
|
||
|
|
||
|
clean:
|
||
|
rm vulnerable_bapp protected_bapp
|
||
|
|
||
|
|
||
|
|