#
# Copyright 2000 by Roman Volkov (rv@kht.ru) & Oleg Zolotaryov (oleg@kht.ru)
#

TARGET  = tacclient

### Linux
# for newer g++ use -fpermissive
CPP     = g++
CPPFLAGS= -pthread -O2
OSLIBS  = -lpthread -lcrypt -lm

### Solaris
#CCC	= g++ -DSOLARIS7 -fpermissive
#SNMPINC = -I/export/home/app/ucd-snmp/include
#SNMPLIB = -L/export/home/app/ucd-snmp/lib
#CCFLAGS= -O2 $(SNMPINC) -I./src
#CPP	= $CCC

### FreeBSD
#CC	= g++ -DFBSD
#SNMPINC=
#SNMPLIB=
#OSLIBS = $(PERLLIB) -lsnmp -ldl -lcrypt -lm -lc_r
#CFLAGS = -O2 $(SNMPINC) -I./src
#CPP	= $CC

###########################################################
# End of customisable section of Makefile
###########################################################

SRCS =	\
	md5.cc \
	Config.cc \
	TacConf.cc \
	LogFile.cc \
	Packet.cc \
	TacClient.cc \
	Utils.cc \
	md5.cc \
	Client.cc \
	main.cc

OBJS = $(SRCS:.cc=.o)

all: $(TARGET)
#	@echo "Please edit the Makefile and then make tacpp"

$(TARGET): $(OBJS)
	$(CPP) -o $(TARGET) $(CFLAGS) $(OBJS) $(LIBS) $(OSLIBS)

distclean: clean

clean:
	-rm -f *.o *~ *.BAK *.bak $(TARGET)

#install:
#	cp tac_plus /usr/local/bin
#	cp tac_plus.1 /usr/man/manl/tac_plus.l

depend:
	makedepend $(CFLAGS) $(SRCS)

# DO NOT DELETE THIS LINE -- make depend depends on it.

