# 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.
# --- boiler-plate stuff ---
#
SHELL = /bin/sh
CC = @CC@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
configdir = @myconfdir@
top_builddir = .
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL@ -s -m 755
INSTALL_DATA = @INSTALL@ -m 444
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
CC = @CC@
PACKAGE = @PACKAGE@
VERSION = @VERSION@
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
DEFS = @DEFS@ -DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(VERSION)\" -I. -I$(srcdir)
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS_TRY = @LIBS@ @READLINE_LIBRARIES@
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(CC) -O $(LDFLAGS) -o $@
TAR = tar
GZIP = --best
.SUFFIXES: # Delete the default suffixes
.SUFFIXES: .c .o .h # Define our suffix list
#
# --- Files -------
#
PROGRAMS = hsftp
SOURCES = hsftp.c \
piper.c
DIST_COMMON = readme license hsftp.1 acconfig.h configure.in configure \
install-sh mkinstalldirs hsftp.lsm config.h.in makefile.in \
hsftp.spec stamp-h.in
bin_PROGRAMS = $(PROGRAMS)
DISTFILES = $(DIST_COMMON) $(SOURCES)
all: all-recursive all-am
#----------------------------------------------------------
#
# rules for automatic updating of configuration information
# after changing the configuration files
#
#----------------------------------------------------------
$(srcdir)/makefile.in:
makefile: $(srcdir)/makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
cd $(top_builddir) \
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
config.status: $(srcdir)/configure
$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && autoconf
#autoheader might not change config.h.in, so touch a stamp file.
${srcdir}/config.h.in: stamp-h.in
${srcdir}/stamp-h.in: configure.in acconfig.h
cd ${srcdir} && autoheader
echo timestamp > ${srcdir}/stamp-h.in
config.h: stamp-h
stamp-h: config.h.in config.status
./config.status
#----------------------------------------------------------
#
# CLEAN rules
#
#----------------------------------------------------------
CONFIG_CLEAN_FILES =
CLEANFILES =
clean: clean-recursive clean-am
distclean: distclean-recursive distclean-am distclean-depend
-rm -f config.status
-rm -f *.dat
clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \
clean-generic
distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \
distclean-depend distclean-generic clean-am
clean-binPROGRAMS:
distclean-binPROGRAMS:
-test -z "$(PROGRAMS)" || rm -f $(PROGRAMS)
clean-compile:
-rm -f *.o *.oo core *.core
distclean-compile:
-rm -f *.o *.oo core *.core
clean-generic:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
-rm -f Makefile $(DISTCLEANFILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
clean-depend:
distclean-depend:
-rm -rf .deps
clean-tags:
distclean-tags:
-rm -f TAGS ID
#----------------------------------------------------------
#
# INSTALLATION/UNINSTALL rules
#
#----------------------------------------------------------
install: install-recursive install-exec-am
@:
install-exec: install-exec-recursive install-exec-am
@$(NORMAL_INSTALL)
install-data: install-data-recursive
install-exec-am: install-binPROGRAMS install-nobinDATA
install-nobinDATA:
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(mandir)/man1
@if test -f $(srcdir)/hsftp.1 ; then \
echo " $(INSTALL_DATA) $(srcdir)/hsftp.1 $(mandir)/man1/hsftp.1"; \
$(INSTALL_DATA) $(srcdir)/hsftp.1 $(mandir)/man1/hsftp.1; \
fi
install-strip:
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
installdirs: installdirs-recursive
uninstall: uninstall-recursive uninstall-am
uninstall-am: uninstall-binPROGRAMS uninstall-nobinDATA
uninstall-nobinDATA:
@$(NORMAL_UNINSTALL)
@echo " rm -f $(mandir)/man1/hsftp.1"; \
rm -f $(mandir)/man1/hsftp.1
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(bindir)
@list='$(bin_PROGRAMS)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
$(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
else :; fi; \
done
uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
@list='$(bin_PROGRAMS)'; for p in $$list; do \
echo " rm -f $(bindir)/`echo $$p|sed '$(transform)'`"; \
rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
done
#----------------------------------------------------------
#
# COMPILE rules
#
#----------------------------------------------------------
all-am: makefile $(PROGRAMS)
piper.o: $(srcdir)/piper.c
$(COMPILE) -o piper.o -c $(srcdir)/piper.c
hsftp.o: $(srcdir)/hsftp.c
$(COMPILE) -o hsftp.o -c $(srcdir)/hsftp.c
hsftp: hsftp.o piper.o
@-rm -f hsftp
@echo "$(LINK) piper.o hsftp.o $(LIBS_TRY)"; \
$(LINK) piper.o hsftp.o $(LIBS_TRY)
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
@SET_MAKE@
all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive \
check-recursive installcheck-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
list='$(SUBDIRS)'; for subdir in $$list; do \
target=`echo $@ | sed s/-recursive//`; \
echo "Making $$target in $$subdir"; \
(cd $$subdir && $(MAKE) $$target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
clean-recursive distclean-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
rev="$$subdir $$rev"; \
done; \
for subdir in $$rev; do \
target=`echo $@ | sed s/-recursive//`; \
echo "Making $$target in $$subdir"; \
(cd $$subdir && $(MAKE) $$target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
#----------------------------------------------------------
#
# DISTRIBUTION rules
#
#----------------------------------------------------------
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.
#
# 1) make distribution tarfile
# 2) unpack the tarfile into distdir
# 3) create build and install directories
# 4) do the build in the build dir, with sources from distdir
# 5) check (there are no subdirs, thus does nothing)
# 6) install
# 7) installcheck (equal to check, does nothing)
#
distcheck: dist
-rm -rf $(distdir)
GZIP=$(GZIP) $(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) \
&& $(MAKE) check \
&& $(MAKE) install \
&& $(MAKE) installcheck
-rm -rf $(distdir)
@echo "========================"; \
echo "$(distdir).tar.gz is ready for distribution"; \
echo "========================"
#
# create a tarfile for the distibution
#
dist: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
#
# same as dist
#
dist-all: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
#
# create distribution directory and copy files into it
#
distdir: $(DISTFILES)
-rm -rf $(distdir)
mkdir $(distdir)
-chmod 777 $(distdir)
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -f $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
fi; \
done
check: all-am
$(MAKE) check-recursive
installcheck: installcheck-recursive
.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile install-data-recursive \
uninstall-data-recursive install-exec-recursive \
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
all-recursive check-recursive installcheck-recursive info-recursive \
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir \
mostlyclean-depend distclean-depend clean-depend \
maintainer-clean-depend info dvi installcheck all-am install-exec-am \
uninstall-am install-exec install-data install uninstall 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:
syntax highlighted by Code2HTML, v. 0.9.1