all: call

CC = gcc
LD = gcc
CFLAGS = -Wall -Wstrict-prototypes -O2 -I../lib
LDFLAGS = -L../lib
LIBS = -lax25

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

install: installbin installman

installbin: all
	install -m 755 -s -o bin -g bin call		/usr/bin

installconf:

installman:
	install -m 644    -o bin -g bin call.1		/usr/man/man1

clean:
	rm -f *.o *~ *.bak

distclean: clean
	rm -f call

call: call.o menu.o crc.o yapp.o dostime.o
	$(LD) $(LDFLAGS) -o call call.o yapp.o menu.o crc.o dostime.o $(LIBS) -lncurses

call.o:		call.h crc.h menu.h call.c
crc.o:		crc.c
dostime.o:	dostime.c
menu.o:		menu.h menu.c
yapp.o:		yapp.c
