7 PLATFORM
= linux-x86-32
10 # .h files installed to $(PREFIX)/include/Sockets
11 # static lib .a files installed to $(PREFIX)/lib
17 include Makefile.version
20 include Makefile.Defines.
$(PLATFORM
)
22 # uncomment these lines if the library should be in its own namespace
23 CFLAGS
+= -DSOCKETS_NAMESPACE
=sockets
24 CFLAGS
+= -DSOCKETS_NAMESPACE_STR
='"sockets"'
26 # Enable insane amounts of debug output to stdout/stderr:
28 #CFLAGS += -DIPPROTO_IPV6
33 PROGS
= Sockets-config
35 all: libSockets.a
$(PROGS
)
41 Sockets-config
: Sockets-config.o
45 rm -f
*.o
*~ slask
*.d
$(PROGS
) *.a
*/*~
50 # everything which follows is www.alhem.net/Sockets website maintenance stuff, please ignore
51 HTDOCS
= /usr
/local
/apache
/www.alhem.net
/htdocs
54 diff
-b
-B
-C
3 /usr
/src
/Sockets-
$(DIFF_VERSION
) . | \
55 /usr
/local
/bin
/d2html
> \
56 $(HTDOCS
)/Sockets
/latest_diff.html
59 @mkdir
-p
$(PREFIX
)/lib
60 cp libSockets.a
$(PREFIX
)/lib
61 @mkdir
-p
$(PREFIX
)/include/Sockets
62 cp
-a
*.h
$(PREFIX
)/include/Sockets
63 @
rm -f
$(PREFIX
)/include/Sockets
/SSLSocket.
*
64 @
rm -f
$(PREFIX
)/include/Sockets
/HttpsGetSocket.
*
65 @
rm -f
$(PREFIX
)/include/Sockets
/HttpsSocket.
*
66 @
rm -f
$(PREFIX
)/include/Sockets
/EventSocket.
*
67 @
rm -f
$(PREFIX
)/include/Sockets
/PoolSocket.
*
68 @
rm -f
$(PREFIX
)/include/Sockets
/SocketThread.
*
69 @
rm -f
$(PREFIX
)/include/Sockets
/CircularBuffer.
*
70 @
rm -f
$(PREFIX
)/include/Sockets
/*Crypt.h
71 @
rm -f
$(PREFIX
)/include/Sockets
/CTcpSocket.h
72 @
rm -f
$(PREFIX
)/include/Sockets
/Min
*Socket.h
73 @
rm -f
$(PREFIX
)/include/Sockets
/Min
*Handler.h
74 @
rm -f
$(PREFIX
)/include/Sockets
/Uid.h
75 @mkdir
-p
$(PREFIX
)/bin
76 install Sockets-config
$(PREFIX
)/bin
78 # no binary files, zip will translate lf to cr lf
79 FILES
= *.h
*.
cpp Makefile Makefile.
* Project
/*.ds
* \
80 README.macosx gpl.txt mkdot.sh \
81 Project.net
/Sockets
/*.vcproj Project.net
/Sockets
/*.sln \
82 Project.net
/Test
/*.vcproj \
83 DevCpp
/*.dev tests
/Makefile tests
/*.
cpp \
87 rm -f MinderSocket_T.h
90 rm -f sockets_test.
cpp
91 rm -f ListenSocketBase.
*
92 rm -f CircularBuffer.
*
93 rm -f ICrypt.
* NullCrypt.
* CTcpSocket.
*
94 rm -f Min
*Socket.
* Min
*Handler.
*
96 tar czf Sockets-
$(VERSION
).
tar.gz
$(FILES
)
97 /usr
/local
/bin
/tarfix.sh Sockets-
$(VERSION
)
98 cp Sockets-
$(VERSION
).
tar.gz
$(HTDOCS
)/Sockets
99 cp Sockets-
$(VERSION
).zip
$(HTDOCS
)/Sockets
100 cp tests
/sockets_test.
cpp /usr
/local
/apache
/www.alhem.net
/htdocs
/Sockets
/
101 # $(MAKE) -C ../SocketsLite tar
104 rm -f MinderSocket_T.h
107 rm -f sockets_test.
cpp
108 rm -f ListenSocketBase.
*
109 rm -f CircularBuffer.
*
110 rm -f ICrypt.
* NullCrypt.
* CTcpSocket.
*
111 rm -f Min
*Socket.
* Min
*Handler.
*
113 tar czf Sockets-
$(VERSION
).
tar.gz
$(FILES
)
114 /usr
/local
/bin
/tarfix.sh Sockets-
$(VERSION
)
115 cp Sockets-
$(VERSION
).
tar.gz
$(HTDOCS
)/Sockets-tmp
116 cp Sockets-
$(VERSION
).zip
$(HTDOCS
)/Sockets-tmp
117 cp tests
/sockets_test.
cpp /usr
/local
/apache
/www.alhem.net
/htdocs
/Sockets-tmp
118 $(MAKE
) -C ..
/SocketsLite tmptar
122 rm -f MinderSocket_T.h
125 rm -f sockets_test.
cpp
126 rm -f ListenSocketBase.
*
127 rm -f CircularBuffer.
*
128 rm -f ICrypt.
* NullCrypt.
* CTcpSocket.
*
129 rm -f Min
*Socket.
* Min
*Handler.
*
133 rm -rf
/usr
/local
/apache
/www.alhem.net
/htdocs
/Sockets
/html
135 .
/packdocs.sh Sockets-
$(VERSION
)-doxygendocs
137 # $(MAKE) -C ../SocketsLite docs
140 rm -f MinderSocket_T.h
143 rm -f sockets_test.
cpp
144 rm -f ListenSocketBase.
*
145 rm -f CircularBuffer.
*
146 rm -f ICrypt.
* NullCrypt.
* CTcpSocket.
*
147 rm -f Min
*Socket.
* Min
*Handler.
*
151 rm -rf
/usr
/local
/apache
/www.alhem.net
/htdocs
/Sockets-tmp
/html
152 doxygen doxygen-tmp.cfg
154 $(MAKE
) -C ..
/SocketsLite tmpdocs