CC=cc
CFLAGS_NOOPT=-Wall -Wno-parentheses
CFLAGS=$(CFLAGS_NOOPT) -O
LDFLAGS=
PGMS=atmtcp aread awrite clip br bw sonetdiag atmdiag atmdump #atmsigd try
MANS=clip.8 atmdiag.8 atmdump.8 atmtcp.8
INSTBIN=/usr/local/bin
INSTMAN=/usr/local/man/man8

all:		$(PGMS)

ttcp.atm:	ttcp.c
		gcc -w -O2 -o ttcp.atm ttcp.c

atmdiag:	atmdiag.c
		$(CC) -o atmdiag $(CFLAGS_NOOPT) atmdiag.c

#atmip:		atmip.o atmlib.o

install:
		for n in $(PGMS); do \
		  install -c -m 0755 $$n $(INSTBIN) || exit; done
		for n in $(MANS); do \
		  install -c -m 0644 $$n $(INSTMAN) || exit; done

clean:
		rm -f *.o core

spotless:	clean
		rm -f $(PGMS) ttcp.atm
