1
# Makefile for http_load
3
# CONFIGURE: If you are using a SystemV-based operating system, such as
4
# Solaris, you will need to uncomment this definition.
5
#SYSV_LIBS = -lnsl -lsocket -lresolv
7
# CONFIGURE: If you want to compile in support for https, uncomment these
8
# definitions. You will need to have already built OpenSSL, available at
9
# http://www.openssl.org/ Make sure the SSL_TREE definition points to the
10
# tree with your OpenSSL installation - depending on how you installed it,
11
# it may be in /usr/local instead of /usr/local/ssl.
12
#SSL_TREE = /usr/local/ssl
14
#SSL_INC = -I$(SSL_TREE)/include
15
#SSL_LIBS = -L$(SSL_TREE)/lib -lssl -lcrypto
17
BINDIR = /usr/local/bin
18
MANDIR = /usr/local/man/man1
20
CFLAGS = -g -O3 $(SRANDOM_DEFS) $(SSL_DEFS) $(SSL_INC)
21
LDFLAGS = $(SSL_LIBS) $(SYSV_LIBS)
26
http_load: http_load.o timers.o
27
$(CC) $(CFLAGS) http_load.o timers.o $(LDFLAGS) -o http_load
29
http_load.o: http_load.c timers.h port.h
30
$(CC) $(CFLAGS) -c http_load.c
32
timers.o: timers.c timers.h
33
$(CC) $(CFLAGS) -c timers.c
36
rm -f $(BINDIR)/http_load
37
cp http_load $(BINDIR)
38
rm -f $(MANDIR)/http_load.1
39
cp http_load.1 $(MANDIR)
42
rm -f http_load *.o core core.* *.core
45
@name=`sed -n -e '/define VERSION /!d' -e 's,.*http_load ,http_load-,' -e 's,",,p' version.h` ; \
48
tar cf - `cat FILES` | ( cd $$name ; tar xfBp - ) ; \
49
chmod 644 $$name/Makefile ; \
50
tar cf $$name.tar $$name ; \