1VERSION =	2.0.2
2
3INCLUDE =	-I/usr/local/include/Sockets
4#CFLAGS =	-Wall -g -O2 $(INCLUDE) -MD `Sockets-config`
5
6CPPFLAGS +=	$(CFLAGS)
7
8LIBS =		$(LDFLAGS) -lSockets \
9		-lssl -lcrypto  -pthread
10
11PROGS =		minder
12all:		$(PROGS)
13
14MINDER =	minder.o config.o \
15		MyTcpSocket.o MyHandler.o \
16		RedirWwwSocket.o TestSocket.o
17minder:		$(MINDER)
18		$(CXX) -o $@ $(MINDER) $(LIBS)
19
20clean:
21		rm -f *.o *~ *.d slask $(PROGS)
22
23install:	all
24		install --strip $(PROGS) /usr/local/bin
25
26-include	*.d
27
28tar:		clean
29		tar czf minder-$(VERSION).tar.gz \
30			minder.* \
31			config.* \
32			MyTcpSocket.* \
33			MyHandler.* \
34			RedirWwwSocket.* \
35			TestSocket.* Makefile gpl.txt
36		/usr/local/bin/tarfix.sh minder-$(VERSION)
37		cp minder-$(VERSION).tar.gz /usr/local/apache/www.alhem.net/htdocs/project/minder/
38		cp minder-$(VERSION).zip /usr/local/apache/www.alhem.net/htdocs/project/minder/
39		./mkdot.sh
40		/usr/bin/doxygen doxygen.cfg
41