Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (43 sloc) 1.6 KB
# 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
# 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_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
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)
rm -f http_load *.o core core.* *.core
@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