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