CC=gcc
CFLAGS = -MMD -O6 -g -mcpu=pentiumpro -fomit-frame-pointer -malign-double #-Wall
CFLAGS += -Icommon -Ipcl

# Uncomment following two lines to use portable libdnet and libpcap instead of
# Linux-specific internal implementation for L2 packet handling
#CFLAGS += -DUSE_DNET_PCAP
#LIBS=-ldnet -lpcap

OBJS_a = sha1.o common/eloop.o common/common.o common/md5.o common/rc4.o

SUBDIR = pcl

LIB_c = pcl/pcl.a

all: all_recurs wpa_attack

all_recurs:
	cd $(SUBDIR); $(MAKE); cd ..;

wpa_attack: $(OBJS_a) wpa_attack.c #$(LIB_c)
	$(CC) -o wpa_attack wpa_attack.c $(OBJS_a) $(LIB_c)

clean:
	rm -f core *~ *.o wpa_attack *.d; cd $(SUBDIR); $(MAKE) clean;
