# 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

# 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_INCDIR and SSL_LIBDIR
# definitions point to your OpenSSL installation.
#SSL_INCDIR =	/usr/local/include
#SSL_LIBDIR =	/usr/local/lib
#SSL_DEFS =	-DUSE_SSL
#SSL_INC =	-I$(SSL_INCDIR)
#SSL_LIBS =	-L$(SSL_LIBDIR) -lssl -lcrypto -lRSAglue -lrsaref

BINDIR =	/usr/local/bin
MANDIR =	/usr/local/man/man1
CC =		gcc
#CFLAGS =	-O $(SSL_DEFS) $(SSL_INC)
CFLAGS =	-g $(SSL_DEFS) $(SSL_INC)
#LDFLAGS =	-s $(SSL_LIBS) $(SYSV_LIBS)
LDFLAGS =	-g $(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
	$(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
