summaryrefslogtreecommitdiff
path: root/src/Sockets/Makefile.solaris9-sparc-64
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-04-12 11:38:42 +0000
committerOthmar Gsenger <otti@anytun.org>2008-04-12 11:38:42 +0000
commitfffd213c8cba2135afda493d797c41c10354770e (patch)
treebb5eea1b12871d8c3fed0e687d83be3e504d11b2 /src/Sockets/Makefile.solaris9-sparc-64
parentsvn cleanup (diff)
big svn cleanup
Diffstat (limited to 'src/Sockets/Makefile.solaris9-sparc-64')
-rw-r--r--src/Sockets/Makefile.solaris9-sparc-6470
1 files changed, 70 insertions, 0 deletions
diff --git a/src/Sockets/Makefile.solaris9-sparc-64 b/src/Sockets/Makefile.solaris9-sparc-64
new file mode 100644
index 0000000..82f5ddf
--- /dev/null
+++ b/src/Sockets/Makefile.solaris9-sparc-64
@@ -0,0 +1,70 @@
+include Makefile.version
+
+INCLUDE =
+
+# .h files installed to $(PREFIX)/include/Sockets
+# static lib .a files installed to $(PREFIX)/lib
+PREFIX = /usr/local
+
+CXX = /opt/SUNWspro/bin/CC
+
+CFLAGS = -g $(INCLUDE) -MD -D_VERSION='"$(VERSION)"'
+CFLAGS += -features=rtti -mt
+
+# turn off optimization if compiling with gcc 2.9.x:
+#CFLAGS += -O0
+CFLAGS += -O2
+
+
+# uncomment depending on your operating system
+#CFLAGS += -DLINUX
+#CFLAGS += -DMACOSX
+# solaris > 8
+CFLAGS += -DSOLARIS
+# solaris 8
+#CFLAGS += -DSOLARIS8
+# windows and/or cygwin
+#CFLAGS += -D_WIN32
+# cygwin
+#CFLAGS += -D__CYGWIN__
+
+
+# uncomment these three lines if the library should be in its own namespace
+#CFLAGS += -DSOCKETS_NAMESPACE=sockets
+#CFLAGS += -DSOCKETS_NAMESPACE_STR='"sockets"'
+
+
+# Enable insane amounts of debug output to stdout/stderr:
+#CFLAGS += -D_DEBUG
+
+
+CPPFLAGS = $(CFLAGS)
+
+LIBS = -lSockets -lpthread -lssl -lcrypto
+
+PROGS = Sockets-config
+
+all: libSockets.a $(PROGS)
+
+Sockets-config: Sockets-config.o
+ $(CXX) -o $@ $^
+
+libSockets.a: $(OBJS)
+ ar cru $@ $(OBJS)
+ ranlib $@
+
+stressclient: stressclient.o libSockets.a
+ g++ -o $@ $^ $(LIBS)
+
+echoserver: echoserver.o libSockets.a
+ g++ -o $@ $^ $(LIBS)
+
+clean:
+ rm -f *.o *~ slask *.d $(PROGS) *.a */*~
+
+.cpp.o:
+ @echo Compiling $<
+ @$(CXX) $(CFLAGS) -c -o $@ $<
+
+-include *.d
+