~ubuntu-branches/ubuntu/wily/trafficserver/wily

1.1.8 by Arno Töll
Import upstream version 3.2.0
1
# Makefile for http_load
2
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
6
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
13
#SSL_DEFS =	-DUSE_SSL
14
#SSL_INC =	-I$(SSL_TREE)/include
15
#SSL_LIBS =	-L$(SSL_TREE)/lib -lssl -lcrypto
16
17
BINDIR =	/usr/local/bin
18
MANDIR =	/usr/local/man/man1
19
CC =		gcc -Wall
20
CFLAGS =	-g -O3 $(SRANDOM_DEFS) $(SSL_DEFS) $(SSL_INC)
21
LDFLAGS =	$(SSL_LIBS) $(SYSV_LIBS)
22
23
24
all:		http_load
25
26
http_load:	http_load.o timers.o
27
	$(CC) $(CFLAGS) http_load.o timers.o $(LDFLAGS) -o http_load
28
29
http_load.o:	http_load.c timers.h port.h
30
	$(CC) $(CFLAGS) -c http_load.c
31
32
timers.o:	timers.c timers.h
33
	$(CC) $(CFLAGS) -c timers.c
34
35
install:	all
36
	rm -f $(BINDIR)/http_load
37
	cp http_load $(BINDIR)
38
	rm -f $(MANDIR)/http_load.1
39
	cp http_load.1 $(MANDIR)
40
41
clean:
42
	rm -f http_load *.o core core.* *.core
43
44
tar:
45
	@name=`sed -n -e '/define VERSION /!d' -e 's,.*http_load ,http_load-,' -e 's,",,p' version.h` ; \
46
	  rm -rf $$name ; \
47
	  mkdir $$name ; \
48
	  tar cf - `cat FILES` | ( cd $$name ; tar xfBp - ) ; \
49
	  chmod 644 $$name/Makefile ; \
50
	  tar cf $$name.tar $$name ; \
51
	  rm -rf $$name ; \
52
	  gzip $$name.tar