1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381
|
# 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:
|