# Generated automatically from Makefile.in by configure.
# Makefile.in for sqmgrlog

CC 		= gcc
LANGUAGE 	= English
SQUID_DIR	= -DSQUID_DIR=\"/usr/local/squid\"
PREFIX   	= /usr/local/bin
IPREFIX   	= -DPREFIX=\"/usr/local/bin\"
CFLAGS 		= -g -O2
LDFLAGS 	= -g
DEFS            =  -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_DIRENT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_NETDB_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STRFTIME=1 -DHAVE_STRSTR=1  
SRCDIR 		= .
INSTALL 	= cp

INSTALL_PROGRAM = $(INSTALL)

SRCS = util.c log.c report.c topuser.c email.c sort.c html.c \
       totger.c index.c getconf.c usage.c decomp.c ip2name.c \
       useragent.c exclude.c abuse.c convlog.c totday.c repday.c \
       indexonly.c splitlog.c
OBJS = util.o log.o report.o topuser.o email.o sort.o html.o \
       totger.o index.o getconf.o usage.o decomp.o ip2name.o \
       useragent.o exclude.o abuse.o convlog.o totday.o repday.o \
       indexonly.o splitlog.o

DISTFILES = $(SRCS)

all: sqmgrlog

.c.o:
	$(CC) -c -I. $(CPPFLAGS) $(DEFS) $(CFLAGS) $(IPREFIX) $(SQUID_DIR) -D$(LANGUAGE) $<

sqmgrlog: $(OBJS)
	$(CC) $(LDFLAGS) $(OBJS) $(LIBCRYPT) -o $@

install: all
	-@if test ! -d $(PREFIX); then \
		echo "mkdir $(PREFIX)"; \
		mkdir $(PREFIX); \
	fi
	$(INSTALL_PROGRAM) sqmgrlog $(PREFIX)/sqmgrlog
	chmod 755 $(PREFIX)/sqmgrlog
	@if test ! -f $(PREFIX)/sqmgrlog.conf; then \
		echo "cp $(PREFIX)/sqmgrlog.conf"; \
		cp sqmgrlog.conf $(PREFIX)/sqmgrlog.conf; \
		chmod 755 $(PREFIX)/sqmgrlog.conf; \
	else \
		cp sqmgrlog.conf $(PREFIX)/sqmgrlog.conf.orig; \
	fi

uninstall:
	rm -f $(PREFIX)/sqmgrlog

TAGS: $(SRCS)
	etags $(SRCS)

clean:
	rm -f sqmgrlog *.o core

mostlyclean: clean

distclean: clean
	rm -f Makefile config.status config.cache config.log

realclean: distclean
	rm -f TAGS

