CC = gcc -Wall -Og -fno-stack-protector

all: vulnerable switch.s vulnerable.s 

%.o: %.s
	$(CC) -c $< 

switch.s: switch.c
	$(CC) -S switch.c 

vulnerable.s: vulnerable.c
	$(CC) -S vulnerable.c 

vulnerable: vulnerable.o switch.o
	$(CC) vulnerable.o switch.o -o $@

clean:
	rm -rf *.o *.s vulnerable
