#Makefile for IPZoner.
#This is for you lazy people.
#IPZoner 2.2 [10/29/97] (C) 1997 Drago [Drago@Drago.com].

#Uncomment the following line if you want to use TCP instead of UDP.
#TCP    =-DUSE_TCP

#Uncomment the following lines if you want to use ncurses/curses.
#CURSES =-DUSE_CURSES
#NCURSES_LIB=-lncurses

#Misc
DEFS=-Wall
OUTPUT=IPZoner
COMPILER=gcc


#if defined(USE_CURSES && NCURSES_LIB)
LIBS=$(NCURSES_LIB)
#endif

TOTALVAR=$(TCP) $(CURSES) $(DEFS)

IPZoner	: IPZoner.o
	$(COMPILER) $(TOTALVAR) -o $(OUTPUT) $(OUTPUT).o $(LIBS); ./email_author; ./IPZoner

IPZoner.o : IPZoner.c
	$(COMPILER) $(TOTALVAR) -c $(OUTPUT).c

clean:
	rm -f $(OUTPUT) $(OUTPUT).o
