"Fossies" - the Fresh Open Source Software Archive

Member "pwgen-2.08/Makefile.in" (7 Aug 2017, 3908 Bytes) of package /linux/privat/pwgen-2.08.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.in": 2.07_vs_2.08.

    1 PWGEN_VERSION=2.08
    2 
    3 srcdir = @srcdir@
    4 top_srcdir = @top_srcdir@
    5 VPATH = @srcdir@
    6 datarootdir = @datarootdir@
    7 top_builddir = .
    8 my_dir = .
    9 prefix = @prefix@
   10 mandir = @mandir@
   11 INSTALL = @INSTALL@
   12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
   13 INSTALL_DATA = @INSTALL_DATA@
   14 
   15 WALL_OPTS = -Wall -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
   16 	-Wshadow -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align \
   17 	-pedantic
   18 CC = @CC@
   19 DEFS = @DEFS@
   20 CFLAGS = @CFLAGS@ $(WALL_OPTS)
   21 CPPFLAGS = @CPPFLAGS@
   22 ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) 
   23 LDFLAGS = @LDFLAGS@
   24 RM = @RM@
   25 MV = @MV@
   26 SED = @SED@
   27 PERL = @PERL@
   28 TAR = tar
   29 
   30 all:: pwgen
   31 
   32 .c.o:
   33 	$(CC) -c $(ALL_CFLAGS) $< -o $@
   34 
   35 OBJS=	pwgen.o \
   36 	pw_phonemes.o \
   37 	pw_rand.o \
   38 	randnum.o \
   39 	sha1.o \
   40 	sha1num.o
   41 
   42 SRCS=	$(srcdir)/pwgen.c \
   43 	$(srcdir)/pw_phonemes.c \
   44 	$(srcdir)/pw_rand.c \
   45 	$(srcdir)/randnum.c \
   46 	$(srcdir)/sha1.c \
   47 	$(srcdir)/sha1num.c
   48 
   49 
   50 pwgen: $(OBJS)
   51 	$(CC) $(LDFLAGS) -o pwgen $(OBJS)
   52 
   53 install: pwgen pwgen.1
   54 	mkdir -p $(DESTDIR)$(prefix)/bin $(DESTDIR)$(mandir)/man1
   55 	$(INSTALL_PROGRAM) pwgen $(DESTDIR)$(prefix)/bin/pwgen
   56 	$(INSTALL_DATA) $(srcdir)/pwgen.1 $(DESTDIR)$(mandir)/man1/pwgen.1
   57 
   58 clean:
   59 	$(RM) -f $(OBJS) pwgen *~
   60 
   61 distclean: clean
   62 	$(RM) -rf config.status config.log config.cache Makefile \
   63 		$(srcdir)/Makefile.in.old $(srcdir)/.exclude-file \
   64 		$(srcdir)/autom4te.cache
   65 
   66 #
   67 # Build source tar ball...
   68 #
   69 
   70 SRCROOT = pwgen-$(PWGEN_VERSION)
   71 
   72 $(srcdir)/.exclude-file:
   73 	a=$(SRCROOT); \
   74 	(cd $(srcdir) && find . \( -name \*~ -o -name \*.orig \
   75 		-o -name .git -o -name \*.rej \
   76 		-o -name TAGS -o -name \*.old -o -name \*.gmo \
   77 		-o -name config.log -o -name config.cache \
   78 		-o -name config.status -o -name Makefile \
   79 		-o -name build -o -name autom4te.cache \
   80 		-o -name changed-files -o -name .#\* \) \
   81 		-print) | sed -e "s/^./$$a/" > $(srcdir)/.exclude-file
   82 	echo "$(SRCROOT)/.exclude-file" >> $(srcdir)/.exclude-file
   83 		>> $(srcdir)/.exclude-file
   84 
   85 source_tar_file: $(srcdir)/.exclude-file
   86 	cd $(srcdir)/.. && a=$(SRCROOT); rm -f $$a ; ln -sf pwgen $$a ; \
   87 		$(TAR) -c -h -v -f - \
   88 			-X $$a/.exclude-file $$a | \
   89 		gzip -9 > pwgen-$(PWGEN_VERSION).tar.gz
   90 	rm -f $(srcdir)/.exclude-file $(srcdir)/../$(SRCROOT)
   91 #
   92 # Autoconf magic...
   93 #
   94 
   95 $(top_builddir)/config.status: $(top_srcdir)/configure
   96 	cd $(top_builddir); ./config.status --recheck
   97 
   98 Makefile: $(srcdir)/Makefile.in $(DEP_MAKEFILE) $(top_builddir)/config.status
   99 	cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
  100 
  101 $(top_srcdir)/configure: $(top_srcdir)/configure.ac
  102 	cd $(top_srcdir) && autoconf
  103 
  104 #
  105 # Make depend magic...
  106 #
  107 
  108 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
  109 	if test -n "$(SRCS)" ; then \
  110 		$(CC) -M $(ALL_CFLAGS) $(SRCS) | \
  111 			$(SED) -f $(top_srcdir)/depfix.sed \
  112 			    -e 's; $(srcdir)/; $$(srcdir)/;g' \
  113 			    -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
  114 			    -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
  115 			    -e 's; \./; ;g' \
  116 			    -e '/^ *\\$$/d' | \
  117 			$(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
  118 	else :; fi
  119 
  120 depend:: .depend
  121 	if test -n "$(SRCS)" ; then \
  122 		sed -e '/^# +++ Dependency line eater +++/,$$d' \
  123 			< $(srcdir)/Makefile.in | cat - .depend \
  124 			> $(srcdir)/Makefile.in.new; \
  125 	if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
  126 		$(RM) $(srcdir)/Makefile.in.new ; \
  127 	else \
  128 		$(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
  129 		$(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
  130 	fi ; else :; fi
  131 
  132 # +++ Dependency line eater +++
  133 # 
  134 # Makefile dependencies follow.  This must be the last section in
  135 # the Makefile.in file
  136 #
  137 pwgen.o: $(srcdir)/pwgen.c $(srcdir)/pwgen.h
  138 pw_phonemes.o: $(srcdir)/pw_phonemes.c $(srcdir)/pwgen.h
  139 pw_rand.o: $(srcdir)/pw_rand.c $(srcdir)/pwgen.h
  140 randnum.o: $(srcdir)/randnum.c $(srcdir)/pwgen.h
  141 sha1.o: $(srcdir)/sha1.c $(srcdir)/sha1.h
  142 sha1num.o: $(srcdir)/sha1num.c $(srcdir)/pwgen.h $(srcdir)/sha1.h