1 include Makefile.version
5 # .h files installed to $(PREFIX)/include/Sockets
6 # static lib .a files installed to $(PREFIX)/lib
9 CXX = /opt/SUNWspro/bin/CC
11 CFLAGS = -g $(INCLUDE) -MD -D_VERSION='"$(VERSION)"'
12 CFLAGS += -features=rtti -mt
14 # turn off optimization if compiling with gcc 2.9.x:
19 # uncomment depending on your operating system
26 # windows and/or cygwin
29 #CFLAGS += -D__CYGWIN__
32 # uncomment these three lines if the library should be in its own namespace
33 #CFLAGS += -DSOCKETS_NAMESPACE=sockets
34 #CFLAGS += -DSOCKETS_NAMESPACE_STR='"sockets"'
37 # Enable insane amounts of debug output to stdout/stderr:
43 LIBS = -lSockets -lpthread -lssl -lcrypto
45 PROGS = Sockets-config
47 all: libSockets.a $(PROGS)
49 Sockets-config: Sockets-config.o
56 stressclient: stressclient.o libSockets.a
59 echoserver: echoserver.o libSockets.a
63 rm -f *.o *~ slask *.d $(PROGS) *.a */*~
67 @$(CXX) $(CFLAGS) -c -o $@ $<