trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject svn commit: r1201981 - in /trafficserver/traffic/trunk/tools/http_load: LICENSE Makefile
Date Tue, 15 Nov 2011 00:40:09 GMT
Author: bcall
Date: Tue Nov 15 00:40:08 2011
New Revision: 1201981

URL: http://svn.apache.org/viewvc?rev=1201981&view=rev
Log:
removed the license file and added a Makefile

Added:
    trafficserver/traffic/trunk/tools/http_load/Makefile
Removed:
    trafficserver/traffic/trunk/tools/http_load/LICENSE

Added: trafficserver/traffic/trunk/tools/http_load/Makefile
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/tools/http_load/Makefile?rev=1201981&view=auto
==============================================================================
--- trafficserver/traffic/trunk/tools/http_load/Makefile (added)
+++ trafficserver/traffic/trunk/tools/http_load/Makefile Tue Nov 15 00:40:08 2011
@@ -0,0 +1,52 @@
+# Makefile for http_load
+
+# CONFIGURE: If you are using a SystemV-based operating system, such as
+# Solaris, you will need to uncomment this definition.
+#SYSV_LIBS =	-lnsl -lsocket -lresolv
+
+# CONFIGURE: If you want to compile in support for https, uncomment these
+# definitions.  You will need to have already built OpenSSL, available at
+# http://www.openssl.org/  Make sure the SSL_TREE definition points to the
+# tree with your OpenSSL installation - depending on how you installed it,
+# it may be in /usr/local instead of /usr/local/ssl.
+#SSL_TREE =	/usr/local/ssl
+#SSL_DEFS =	-DUSE_SSL
+#SSL_INC =	-I$(SSL_TREE)/include
+#SSL_LIBS =	-L$(SSL_TREE)/lib -lssl -lcrypto
+
+BINDIR =	/usr/local/bin
+MANDIR =	/usr/local/man/man1
+CC =		gcc -Wall
+CFLAGS =	-g -O3 $(SRANDOM_DEFS) $(SSL_DEFS) $(SSL_INC)
+LDFLAGS =	$(SSL_LIBS) $(SYSV_LIBS)
+
+
+all:		http_load
+
+http_load:	http_load.o timers.o
+	$(CC) $(CFLAGS) http_load.o timers.o $(LDFLAGS) -o http_load
+
+http_load.o:	http_load.c timers.h port.h
+	$(CC) $(CFLAGS) -c http_load.c
+
+timers.o:	timers.c timers.h
+	$(CC) $(CFLAGS) -c timers.c
+
+install:	all
+	rm -f $(BINDIR)/http_load
+	cp http_load $(BINDIR)
+	rm -f $(MANDIR)/http_load.1
+	cp http_load.1 $(MANDIR)
+
+clean:
+	rm -f http_load *.o core core.* *.core
+
+tar:
+	@name=`sed -n -e '/define VERSION /!d' -e 's,.*http_load ,http_load-,' -e 's,",,p' version.h`
; \
+	  rm -rf $$name ; \
+	  mkdir $$name ; \
+	  tar cf - `cat FILES` | ( cd $$name ; tar xfBp - ) ; \
+	  chmod 644 $$name/Makefile ; \
+	  tar cf $$name.tar $$name ; \
+	  rm -rf $$name ; \
+	  gzip $$name.tar



Mime
View raw message