#   Makefile for arp_spoofing
#   2001. 6.30
#   Created by Noh kwang min

CC          =   gcc
CFLAGS      =   -O2 -Wall -g
#DEFINES 	+= `libnet-config --defines` -D__DEBUG
DEFINES 	+= `libnet-config --defines`
OBJ1        =   main.o arp_find.o arp_cache_lookup.o make_switching_list.o arp_send.o ethers.o
LIBS1        =   -lpcap -lnet
PROGS = arp_spoof

.c.o:
	$(CC) $(CFLAGS) $(DEFINES) -c $< -o $@

all: ${PROGS}

arp_spoof: $(OBJ1)
	$(CC) -o $@ $(OBJ1) $(DEFINES) $(LIBS1)

clean:
	rm -f core arp_spoof *.o

new:
	${MAKE} clean; ${MAKE}

distclean: clean
	rm -f Makefile

# EOF
