# $Name: release2_0-16 $
# $Id: Makefile,v 1.7 2002/06/12 20:30:37 ttsai Exp $

CC		= gcc
CPP		= g++
OBJDUMP		= objdump
CCFLAGS		= -Wall
LDFLAGS		= 
EXECS		= t1 t3 t4 t5 t6 t1w t3w t4w canary-exploit \
		    exploit-non-exec-stack

all	::	$(EXECS)

%	:	%.c
		$(CC) -o $@ $(CCFLAGS) $(LDFLAGS) $<

%.dis	:	%
		$(OBJDUMP) --disassemble $< > $@

clean	::
		rm -f core *.bak *% *~ *.o a.out *.dis ${EXECS}
		rm -f ${EXECS}

purge	::	clean
		rm -f $(EXECS)

