added linuxtage presentation
[anytun.git] / src / Sockets / Makefile.solaris9-sparc-64
blob82f5ddfb1f9ae9d28f7f08c05ac9cfd27b3517c6
1 include         Makefile.version
3 INCLUDE =       
5 # .h files installed to $(PREFIX)/include/Sockets
6 # static lib .a files installed to $(PREFIX)/lib
7 PREFIX =        /usr/local
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:
15 #CFLAGS +=      -O0
16 CFLAGS +=       -O2
19 # uncomment depending on your operating system
20 #CFLAGS +=      -DLINUX
21 #CFLAGS +=      -DMACOSX 
22 # solaris > 8
23 CFLAGS +=       -DSOLARIS
24 # solaris 8
25 #CFLAGS +=      -DSOLARIS8
26 # windows and/or cygwin
27 #CFLAGS +=      -D_WIN32
28 # 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:
38 #CFLAGS +=      -D_DEBUG
41 CPPFLAGS =      $(CFLAGS) 
43 LIBS =          -lSockets -lpthread -lssl -lcrypto
45 PROGS =         Sockets-config
47 all:            libSockets.a $(PROGS)
49 Sockets-config: Sockets-config.o
50                 $(CXX) -o $@ $^
52 libSockets.a:   $(OBJS)
53                 ar cru $@ $(OBJS)
54                 ranlib $@
56 stressclient:   stressclient.o libSockets.a
57                 g++ -o $@ $^ $(LIBS)
59 echoserver:     echoserver.o libSockets.a
60                 g++ -o $@ $^ $(LIBS)
62 clean:
63                 rm -f *.o *~ slask *.d $(PROGS) *.a */*~
65 .cpp.o:         
66                 @echo Compiling $<
67                 @$(CXX) $(CFLAGS) -c -o $@ $<
69 -include        *.d