# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. # # Makefile.am --- automake input file for gawk # # Copyright (C) 2000-2001 the Free Software Foundation, Inc. # # Automatic de-ANSI-fication if needed #AUTOMAKE_OPTIONS = ansi2knr #AUTOMAKE_OPTIONS = foreign # This undocumented variable insures that aclocal runs # correctly after changing configure.in SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ # host_os = @host_os@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = . ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : CC = @CC@ CFLAGS = @CFLAGS@ GREPPROG = @GREPPROG@ KILLALLPROG = @KILLALLPROG@ RCDPATH = @RCDPATH@ #PHPPATH = @PHPPATH@ HTTPDPATH = @HTTPDPATH@ MYSQLHEADERS = @MYSQLHEADERS@ MYSQLLIBS = @MYSQLLIBS@ PCREHEADERS = @PCREHEADERS@ PCRELIBS = @PCRELIBS@ PSPROG = @PSPROG@ SUNLIB = @SUNLIB@ ACLOCAL_AMFLAGS = -I m4 # This insures that make flags get passed down to child makes. AM_MAKEFLAGS = 'CFLAGS=$(CFLAGS)' 'LDFLAGS=$(LDFLAGS)' # Stuff to include in the dist that doesn't need it's own # Makefile.am files EXTRA_DIST = COPYING # what to make and install bin_PROGRAMS = sams samsredir samsdaemon # sources for both sams base_sources = demon.c define.h tools.c tools.h samsredir_sources = redirect.c define.h tools.c tools.h samsdaemon_sources = samsdaemon.c define.h tools.c tools.h sams_SOURCES = $(base_sources) samsredir_SOURCES = $(samsredir_sources) samsdaemon_SOURCES = $(samsdaemon_sources) # stuff for compiling gawk/pgawk DEFPATH = "\".:$(datadir)\"" DEFS = -DDEFPATH=$(DEFPATH) -DHAVE_CONFIG_H -DLOCALEDIR="\"$(datadir)/locale\"" INCLUDES = -I. $(MYSQLHEADERS) $(PCREHEADERS) LIBS = -I. $(MYSQLLIBS) $(PCRELIBS) $(SUNLIB) #-lm -lnsl # We want hard links for install-exec-hook, below LN = ln mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ sams_OBJECTS = demon.o tools.o samsredir_OBJECTS = redirect.o tools.o samsdaemon_OBJECTS = samsdaemon.o tools.o sams_LDADD = $(LDADD) samsredir_LDADD = $(LDADD) samsdaemon_LDADD = $(LDADD) sams_DEPENDENCIES = samsredir_DEPENDENCIES = samsdaemon_DEPENDENCIES = sams_LDFLAGS = samsredir_LDFLAGS = samsdaemon_LDFLAGS = COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = COPYING Makefile.am Makefile.in configure configure.in \ install-sh missing mkinstalldirs PACKAGE = @PACKAGE@ VERSION = @VERSION@ DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best DEP_FILES = .deps/demon.P .deps/tools.P SOURCES = $(sams_SOURCES) $(samsredir_SOURCES) $(samsdaemon_SOURCES) OBJECTS = $(sams_OBJECTS) $(samsredir_OBJECTS) $(samsdaemon_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) --gnu Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status config.status: $(srcdir)/configure.in $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) cd $(srcdir) && $(AUTOCONF) mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: ############################## install-binPROGRAMS: $(bin_PROGRAMS) -@if test ! -d $(prefix); then \ echo "creating $(prefix)"; \ mkdir $(prefix); \ fi -@if test ! -d $(bindir); then \ echo "creating $(bindir)"; \ mkdir $(bindir); \ fi -@if test ! -d /tmp/sams; then \ echo "creating /tmp/sams"; \ mkdir /tmp/sams; \ chmod 777 /tmp/sams; \ fi -@if test -f /etc/sams.conf; then \ echo "move old sams.conf to sams.conf.old"; \ mv /etc/sams.conf /etc/sams.conf.old; \ fi cp ./etc/sams.conf $(sysconfdir); cp ./sams $(bindir); cp ./samsredir $(bindir); cp ./samsdaemon $(bindir); cp ./etc/sams $(RCDPATH); cp ./mysql/recover_admin_passwd $(bindir); -@if test ! -d $(datadir); then \ echo "creating $(datadir)"; \ mkdir $(datadir); \ fi -@if test ! -d $(datadir)/sams; then \ echo "creating $(datadir)/sams"; \ mkdir $(datadir)/sams; \ fi -@if test ! -d $(datadir)/sams/src; then \ rm -f $(datadir)/sams/src; \ fi cp -R php/* $(datadir)/sams/; -@if test ! -d $(datadir)/sams/src/lffolder_4_z3_local.php; then \ rm -f $(datadir)/sams/src/lffolder_4_z3_local.php; \ fi -@if test ! -d $(datadir)/sams/src/lffolder_1_admin.php; then \ rm -f $(datadir)/sams/src/lffolder_1_admin.php; \ fi -@if test ! -d $(datadir)/sams/src/lffolder_6_users.php; then \ rm -f $(datadir)/sams/src/lffolder_6_users.php; \ fi -@if test ! -d $(datadir)/sams/src/adminbuttom_1_prop.php; then \ rm -f $(datadir)/sams/src/adminbuttom_1_prop.php; \ fi -@if test ! -d $(datadir)/sams/data; then \ echo "creating $(datadir)/sams/data"; \ mkdir $(datadir)/sams/data; \ fi chmod 777 $(datadir)/sams/data; chmod ugo+x $(datadir)/sams/bin/*; rm -f $(datadir)/sams/data/*; cp -R doc $(datadir)/sams/; cp ./mysql/sams_db.sql $(datadir)/sams/data; cp ./mysql/squid_db.sql $(datadir)/sams/data; cp ./update/upgrade_mysql_table.php $(datadir)/sams/data; -@if test ! -d $(HTTPDPATH)/sams; then \ echo "creating symlink to sams directory"; \ ln -s $(datadir)/sams $(HTTPDPATH)/sams; \ fi uninstall-binPROGRAMS: rm $(bindir)/sams; rm $(bindir)/samsredir; rm $(bindir)/samsdaemon; rm $(bindir)/recover_admin_passwd; rm -R -f $(datadir)/sams; rm $(HTTPDPATH)/sams; rm -f $(RCDPATH)/sams; rm -R -f tmp/sams; update-binPROGRAMS: cp ./sams $(bindir); cp ./samsredir $(bindir); cp ./samsdaemon $(bindir); cp ./etc/sams $(RCDPATH); cp ./mysql/recover_admin_passwd $(bindir); -@if test ! -d $(datadir)/sams; then \ echo "creating $(datadir)/sams"; \ mkdir $(datadir)/sams; \ fi -@if test ! -d $(datadir)/sams/src; then \ rm -f $(datadir)/sams/src; \ fi cp -R php/* $(datadir)/sams/; -@if test ! -d $(datadir)/sams/src/lffolder_4_z3_local.php; then \ rm -f $(datadir)/sams/src/lffolder_4_z3_local.php; \ fi -@if test ! -d $(datadir)/sams/src/lffolder_1_admin.php; then \ rm -f $(datadir)/sams/src/lffolder_1_admin.php; \ fi -@if test ! -d $(datadir)/sams/src/lffolder_6_users.php; then \ rm -f $(datadir)/sams/src/lffolder_6_users.php; \ fi -@if test ! -d $(datadir)/sams/src/adminbuttom_1_prop.php; then \ rm -f $(datadir)/sams/src/adminbuttom_1_prop.php; \ fi chmod 777 $(datadir)/sams/data; chmod ugo+x $(datadir)/sams/bin/*; rm -f $(datadir)/sams/data/*; cp ./update/upgrade_mysql_table.php $(datadir)/sams/data; cp -R doc $(datadir)/sams/; .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: sams: $(sams_OBJECTS) $(sams_DEPENDENCIES) @rm -f sams $(LINK) $(sams_LDFLAGS) $(sams_OBJECTS) $(sams_LDADD) $(LIBS) samsdaemon: $(samsdaemon_OBJECTS) $(samsdaemon_DEPENDENCIES) @rm -f samsdaemon $(LINK) $(samsdaemon_LDFLAGS) $(samsdaemon_OBJECTS) $(samsdaemon_LDADD) $(LIBS) samsredir: $(samsredir_OBJECTS) $(sams_DEPENDENCIES) @rm -f samsredir $(LINK) $(samsredir_LDFLAGS) $(samsredir_OBJECTS) $(samsredir_LDADD) $(LIBS) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist -rm -rf $(distdir) GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz mkdir $(distdir)/=build mkdir $(distdir)/=inst dc_install_base=`cd $(distdir)/=inst && pwd`; \ cd $(distdir)/=build \ && ../configure --srcdir=.. --prefix=$$dc_install_base \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) dist -rm -rf $(distdir) @banner="$(distdir).tar.gz is ready for distribution"; \ dashes=`echo "$$banner" | sed s/./=/g`; \ echo "$$dashes"; \ echo "$$banner"; \ echo "$$dashes" dist: distdir -chmod -R a+r $(distdir) GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) -rm -rf $(distdir) dist-all: distdir -chmod -R a+r $(distdir) GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) -rm -rf $(distdir) distdir: $(DISTFILES) -rm -rf $(distdir) mkdir $(distdir) -chmod 777 $(distdir) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) -include $(DEP_FILES) mostlyclean-depend: clean-depend: distclean-depend: -rm -rf .deps maintainer-clean-depend: %.o: %.c @echo '$(COMPILE) -c $<'; \ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.c @echo '$(LTCOMPILE) -c $<'; \ $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ < .deps/$(*F).pp > .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-binPROGRAMS install-exec: install-exec-am install-data-am: install-data: install-data-am update-am: update-binPROGRAMS update: update-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-binPROGRAMS uninstall: uninstall-am all-am: Makefile $(PROGRAMS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-tags mostlyclean-depend mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ distclean-depend distclean-generic clean-am distclean: distclean-am -rm -f config.status maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ maintainer-clean-depend maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am -rm -f config.status .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile tags mostlyclean-tags distclean-tags \ clean-tags maintainer-clean-tags distdir mostlyclean-depend \ distclean-depend clean-depend maintainer-clean-depend info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: