#
# Makefile	Makefile for the tacp2rad daemon.
#

CFLAGS	= -Wall -g
LDFLAGS	=
LIBS	=

OBJS	= tacplus.o radclient.o radbuffer.o md5.o

tacp2radd: $(OBJS)
	$(CC) $(OBJS) $(LDFLAGS) -o tacp2radd $(LIBS)

install:
	install -o root -m 755 -s tacp2radd /usr/local/sbin
	install -o root -m 755 rc.tacp2radd /etc/init.d/tacp2radd
	-test -f/etc/tacp2rad.conf && install -o root -m 644 tacp2rad.conf /etc
	-test -f/etc/tacp2rad.map  && install -o root -m 644 tacp2rad.map  /etc

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