#!gmake -k


CC = cc 

# If you use a gateway rather than connecting directly to the
# server, you may wish to use -DGATEWAY which surpresses 
# echo negotiations.  

# You may want to change -g (include debug information) into
# -O for optimize.  If you do this, also run strip on the 
# igc file:  'strip igc'.  This will make the executable
# even smaller.

# on SGI you may want to define the following
WOFF = -woff 1201,1196,1498

CFLAGS = -xansi -fullwarn -g  $(DEFINES) $(WOFF)

LIBS = 	-lcurses -ltermlib

# link line for PTX.  System V systems need something like this:
#LIBS = -lcurses -ltermlib -lsocket -linet -lnsl 

# Linux 
#LIBS = -lncurses -ltermcap

# Under RS/6000 AIX 3.1, remove the -ltermlib 

PROGRAM = igc

OBJ = socket.o igc.o parse.o ascii.o board.o

SRC = socket.c igc.c parse.c ascii.c board.c

HDRS =	numbers.h igc.h


$(PROGRAM): $(OBJ)
	$(CC) $(OBJ) $(LIBS) -o $(PROGRAM)

doc: igc.6
	nroff -man igc.6 > igc.doc

$(OBJ): $(HDRS)

clean:
	rm -f *.o

Clean:
	rm -f *.o igc igc.doc

tgs:
	/igd/a4/software/vim/bin/ctags *.c *.h

