 --- EDIT Makefile AND REMOVE _THIS_ LINE !!! ---

# Please verify these:

# The C Compiler's name:  (usually 'cc' or 'gcc')
CC	= gcc

# C Compiler Flags. Remove -g -O2 for non-gcc compilers:
CFLAGS	= -g -O2 -Wall

# CURSES library name. Use '-lcurses' for non-linux systems:
LDFLAGS	= -lncurses

# This is requires for most LINUX systems:
CFLAGS += -D__USE_BSD_SIGNAL

# Uncomment this line for LINUX with glibc v2.x:
#CFLAGS += -DGNU_LIBC -D_GNU_SOURCE

# Uncomment this line for RS/6000 AIX and systems with osockaddr defined:
#CFLAGS += -DAIX_OSOCKADDR

# Maybe requires:
#CFLAGS += -DMSG_EOR  # -DBAD_LINUX_HACK

# --- End of configuration. ---


.SUFFIXES: .c .i .s .o .1 .man

.PHONY: all clean

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

TALK = talk.o ctl.o ctl_transact.o display.o get_addrs.o get_names.o init_disp.o invite.o io.o look_up.o msgs.o

all: talk

talk: $(TALK)
	$(CC) $(LDFLAGS) -o talk $(TALK)
	strip talk

clean:
	rm -f *.o *.s *.i talk talk.log
