#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.18 2001/12/26 23:03:11 hno Exp $
+# $Id: Makefile.am,v 1.30 2002/09/15 06:40:56 robertc Exp $
#
# Uncomment and customize the following to suit your needs:
#
noinst_PROGRAMS = \
cf_gen
+sbin_PROGRAMS = \
+ squid
+
bin_PROGRAMS = \
- squid \
squidclient
libexec_PROGRAMS = \
@OPT_PINGER@ \
$(DNSSERVER) \
$(UNLINKD) \
- cachemgr
+ cachemgr$(CGIEXT)
cf_gen_SOURCES = cf_gen.c defines.h
nodist_cf_gen_HEADER = cf_gen_defines.h
cf_gen.$(OBJEXT): cf_gen_defines.h
squidclient_SOURCES = client.c
+cachemgr__CGIEXT__SOURCES = cachemgr.c
EXTRA_squid_SOURCES = \
delay_pools.c \
snmp_agent.c \
unlinkd.c \
ssl_support.c \
+ ssl_support.h \
win32.c
squid_SOURCES = \
cbdata.c \
client_db.c \
client_side.c \
+ client_side_reply.c \
+ client_side_request.c \
+ clientStream.c \
comm.c \
comm_select.c \
comm_poll.c \
+ comm_kqueue.c \
debug.c \
defines.h \
$(DELAY_POOL_SOURCE) \
errorpage.c \
ETag.c \
event.c \
+ external_acl.c \
fd.c \
filemap.c \
forward.c \
logfile.c \
main.c \
mem.c \
- MemPool.c \
MemBuf.c \
mime.c \
multicast.c \
@AUTH_OBJS@ \
@CRYPTLIB@ \
@REGEXLIB@ \
- @SQUID_AIO_LIB@ \
- @SQUID_PTHREAD_LIB@ \
@SNMPLIB@ \
@LIB_MALLOC@ \
@SSLLIB@ \
-lmiscutil \
@XTRA_LIBS@
+squid_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a
unlinkd_SOURCES =
unlinkd_LDADD = unlinkd-daemon.o
DEFAULT_ICON_DIR = $(datadir)/icons
DEFAULT_ERROR_DIR = $(datadir)/errors/@ERR_DEFAULT_LANGUAGE@
DEFAULT_MIB_PATH = $(datadir)/mib.txt
+DEFAULT_HOSTS = @OPT_DEFAULT_HOSTS@
DEFS = @DEFS@ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\"
s%@DEFAULT_ICON_DIR@%$(DEFAULT_ICON_DIR)%g;\
s%@DEFAULT_MIB_PATH@%$(DEFAULT_MIB_PATH)%g;\
s%@DEFAULT_ERROR_DIR@%$(DEFAULT_ERROR_DIR)%g;\
- s%@DEFAULT_PREFIX@%$(DEFAULT_PREFIX)%g;"\
+ s%@DEFAULT_PREFIX@%$(DEFAULT_PREFIX)%g;\
+ s%@DEFAULT_HOSTS@%$(DEFAULT_HOSTS)%g;"\
< $(srcdir)/cf.data.pre >$@
store_modules.c: store_modules.sh Makefile
@$(SHELL) $(srcdir)/auth_modules.sh $(AUTH_MODULES) >auth_modules.c
install-data-local: install-sysconfDATA install-dataDATA
- @if test -f $(DESTDIR)$(sysconfdir)/mime.conf ; then \
- echo "$@ will not overwrite existing $(DESTDIR)$(sysconfdir)/mime.conf" ; \
+ @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
+ echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
else \
- echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(sysconfdir)/mime.conf" ;\
- $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(sysconfdir)/mime.conf; \
+ echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
+ $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
fi
- @if test -f $(DESTDIR)$(sysconfdir)/squid.conf ; then \
- echo "$@ will not overwrite existing $(DESTDIR)$(sysconfdir)/squid.conf" ; \
+ @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
+ echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
else \
- echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(sysconfdir)/squid.conf"; \
- $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(sysconfdir)/squid.conf; \
+ echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
+ $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
fi
$(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX)
uninstall-local:
- @if test -f $(DESTDIR)$(sysconfdir)/mime.conf ; then \
- echo "rm -f $(DESTDIR)$(sysconfdir)/mime.conf"; \
- $(RM) -f $(DESTDIR)$(sysconfdir)/mime.conf; \
+ @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
+ echo "rm -f $(DESTDIR)$(DEFAULT_MIME_TABLE)"; \
+ $(RM) -f $(DESTDIR)$(DEFAULT_MIME_TABLE); \
fi
- @if test -f $(DESTDIR)$(sysconfdir)/squid.conf ; then \
- echo "rm -f $(DESTDIR)$(sysconfdir)/squid.conf"; \
- $(RM) -f $(DESTDIR)$(sysconfdir)/squid.conf; \
+ @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
+ echo "rm -f $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
+ $(RM) -f $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
fi
DISTCLEANFILES = cf_gen_defines.h cf.data cf_parser.h squid.conf.default \