22 lines
		
	
	
		
			504 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			504 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
#
 | 
						|
# alpha makefile
 | 
						|
#
 | 
						|
# type 'make fixme' to build the vulnerable version of the program without GDB support
 | 
						|
# type 'make vulnerable' to build the vulnerable version of the program
 | 
						|
# type 'make fortified' to build the fortified version of the program
 | 
						|
#
 | 
						|
 | 
						|
CC = gcc
 | 
						|
CFLAGS = -g 
 | 
						|
 | 
						|
fixme:       fixme.c
 | 
						|
	$(CC) fixme.c -o fixme
 | 
						|
 | 
						|
vulnerable:  fixme.c
 | 
						|
	$(CC) $(CFLAGS) fixme.c -o vulnerable
 | 
						|
 | 
						|
fortified:   fixme.c
 | 
						|
	$(CC) $(CFLAGS) -D_FORTIFY_SOURCE=1 -O1 fixme.c -o fortified
 | 
						|
 | 
						|
clean:
 | 
						|
	rm vulnerable fortified fixme
 |