SHELL=/bin/sh VPATH = @srcdir@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = . prefix = @prefix@ bindir = @bindir@ mandir = @mandir@ #DEFS += -DTIME_SYSCALLS #DEFS += -DDONT_POLL SUBDIRS = lib gen stat CC = @CC@ RANLIB = @RANLIB@ MKDIR = $(top_srcdir)/mkinstalldirs INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ INCLUDES = -I$(top_builddir) -I$(top_srcdir) -I$(top_srcdir)/lib DEFS = @DEFS@ CPPFLAGS = @CPPFLAGS@ CFLAGS = @CFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) LINK = $(CC) $(LDFLAGS) -o $@ @SET_MAKE@ .c.o: $(COMPILE) $< HTTPERF_OBJS = httperf.o object.o call.o conn.o sess.o core.o event.o \ http.o timer.o TTEST_OBJS = ttest.o timer.o all: all-recursive httperf idleconn httperf: $(HTTPERF_OBJS) gen/libgen.a stat/libstat.a lib/libutil.a $(LINK) $(HTTPERF_OBJS) \ gen/libgen.a stat/libstat.a lib/libutil.a $(LIBS) idleconn: idleconn.o $(LINK) idleconn.o $(LIBS) install: install-recursive httperf $(MKDIR) $(bindir) $(mandir)/man1 $(INSTALL_PROGRAM) httperf $(bindir)/httperf $(INSTALL_DATA) $(srcdir)/httperf.man $(mandir)/man1/httperf.1 ttest: ttest.o timer.o clean: clean-recursive rm -f $(HTTPERF_OBJS) $(TTEST_OBJS) idleconn.o httperf idleconn ttest distclean: distclean-recursive rm -f *~ all-recursive install-recursive clean-recursive distclean-recursive \ depend-recursive: @for subdir in $(SUBDIRS); do \ target=`echo $@ | sed s/-recursive//`; \ echo making $$target in $$subdir; \ (cd $$subdir && $(MAKE) $$target) \ || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$$fail" .PHONY: all install clean distclean depend \ all-recursive install-recursive clean-recursive distclean-recursive \ depend-recursive