# Makefile.in generated automatically by automake 1.1l from Makefile.am

# Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.


SHELL = /bin/sh

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

pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@

top_builddir = ..

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@
YACC = @YACC@
RANLIB = @RANLIB@
GENCAT = @GENCAT@
PERL = @PERL@
GMSGFMT = @GMSGFMT@
CC = @CC@

AUTOMAKE_OPTIONS = ansi2knr

EXTRAdir = $(bindir)
EXTRA_PROGRAMS = chroot nice stty uname uptime
EXTRA_SCRIPTS = nohup

bin_SCRIPTS = false groups true @OPTIONAL_BIN_ZCRIPTS@

bin_PROGRAMS = basename date dirname echo env expr factor \
  hostname id logname pathchk printenv printf pwd seq sleep su tee test \
  tty users who whoami yes @OPTIONAL_BIN_PROGS@

datadir = $(prefix)/@DATADIRNAME@
localedir = $(datadir)/locale

noinst_HEADERS = system.h
EXTRA_DIST = ansi2knr.1 ansi2knr.c \
  groups.sh nohup.sh false.sh true.sh who-users.c
DISTCLEANFILES = $(SCRIPTS)
MOSTLYCLEANFILES = who.c users.c uptime.c

INCLUDES = -I.. -I$(srcdir) -I$(top_srcdir)/lib -I../intl
# This _really_ shouldn't be here, but where else can I put them?
DEFS = -DLOCALEDIR=\"$(localedir)\" -DSYSLOG_FAILURE -DSYSLOG_SUCCESS \
       -DSYSLOG_NON_ROOT @DEFS@
LDADD = @INTLLIBS@ ../lib/libsu.a

factor_LDADD = $(LDADD) @SQRT_LIBM@
factor_DEPENDENCIES = $(LDADD)

printf_LDADD = $(LDADD) @POW_LIBM@
printf_DEPENDENCIES = $(LDADD)

seq_LDADD = $(LDADD) @SEQ_LIBM@
seq_DEPENDENCIES = $(LDADD)

uptime_LDADD = $(LDADD) @GETLOADAVG_LIBS@
uptime_DEPENDENCIES = $(LDADD)

SUFFIXES = .sh

BUILT_SOURCES = who.c users.c uptime.c

installed_su = $(bindir)/`echo su|sed '$(transform)'`
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES = 
PROGRAMS =  $(bin_PROGRAMS)

CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
o = @U@o
ANSI2KNR = @ANSI2KNR@
chroot_SOURCES = chroot.c
chroot_OBJECTS =  chroot.$o
chroot_LDADD = $(LDADD)
chroot_DEPENDENCIES =  ../lib/libsu.a
chroot_LDFLAGS = 
nice_SOURCES = nice.c
nice_OBJECTS =  nice.$o
nice_LDADD = $(LDADD)
nice_DEPENDENCIES =  ../lib/libsu.a
nice_LDFLAGS = 
stty_SOURCES = stty.c
stty_OBJECTS =  stty.$o
stty_LDADD = $(LDADD)
stty_DEPENDENCIES =  ../lib/libsu.a
stty_LDFLAGS = 
uname_SOURCES = uname.c
uname_OBJECTS =  uname.$o
uname_LDADD = $(LDADD)
uname_DEPENDENCIES =  ../lib/libsu.a
uname_LDFLAGS = 
uptime_SOURCES = uptime.c
uptime_OBJECTS =  uptime.$o
uptime_LDFLAGS = 
basename_SOURCES = basename.c
basename_OBJECTS =  basename.$o
basename_LDADD = $(LDADD)
basename_DEPENDENCIES =  ../lib/libsu.a
basename_LDFLAGS = 
date_SOURCES = date.c
date_OBJECTS =  date.$o
date_LDADD = $(LDADD)
date_DEPENDENCIES =  ../lib/libsu.a
date_LDFLAGS = 
dirname_SOURCES = dirname.c
dirname_OBJECTS =  dirname.$o
dirname_LDADD = $(LDADD)
dirname_DEPENDENCIES =  ../lib/libsu.a
dirname_LDFLAGS = 
echo_SOURCES = echo.c
echo_OBJECTS =  echo.$o
echo_LDADD = $(LDADD)
echo_DEPENDENCIES =  ../lib/libsu.a
echo_LDFLAGS = 
env_SOURCES = env.c
env_OBJECTS =  env.$o
env_LDADD = $(LDADD)
env_DEPENDENCIES =  ../lib/libsu.a
env_LDFLAGS = 
expr_SOURCES = expr.c
expr_OBJECTS =  expr.$o
expr_LDADD = $(LDADD)
expr_DEPENDENCIES =  ../lib/libsu.a
expr_LDFLAGS = 
factor_SOURCES = factor.c
factor_OBJECTS =  factor.$o
factor_LDFLAGS = 
hostname_SOURCES = hostname.c
hostname_OBJECTS =  hostname.$o
hostname_LDADD = $(LDADD)
hostname_DEPENDENCIES =  ../lib/libsu.a
hostname_LDFLAGS = 
id_SOURCES = id.c
id_OBJECTS =  id.$o
id_LDADD = $(LDADD)
id_DEPENDENCIES =  ../lib/libsu.a
id_LDFLAGS = 
logname_SOURCES = logname.c
logname_OBJECTS =  logname.$o
logname_LDADD = $(LDADD)
logname_DEPENDENCIES =  ../lib/libsu.a
logname_LDFLAGS = 
pathchk_SOURCES = pathchk.c
pathchk_OBJECTS =  pathchk.$o
pathchk_LDADD = $(LDADD)
pathchk_DEPENDENCIES =  ../lib/libsu.a
pathchk_LDFLAGS = 
printenv_SOURCES = printenv.c
printenv_OBJECTS =  printenv.$o
printenv_LDADD = $(LDADD)
printenv_DEPENDENCIES =  ../lib/libsu.a
printenv_LDFLAGS = 
printf_SOURCES = printf.c
printf_OBJECTS =  printf.$o
printf_LDFLAGS = 
pwd_SOURCES = pwd.c
pwd_OBJECTS =  pwd.$o
pwd_LDADD = $(LDADD)
pwd_DEPENDENCIES =  ../lib/libsu.a
pwd_LDFLAGS = 
seq_SOURCES = seq.c
seq_OBJECTS =  seq.$o
seq_LDFLAGS = 
sleep_SOURCES = sleep.c
sleep_OBJECTS =  sleep.$o
sleep_LDADD = $(LDADD)
sleep_DEPENDENCIES =  ../lib/libsu.a
sleep_LDFLAGS = 
su_SOURCES = su.c
su_OBJECTS =  su.$o
su_LDADD = $(LDADD)
su_DEPENDENCIES =  ../lib/libsu.a
su_LDFLAGS = 
tee_SOURCES = tee.c
tee_OBJECTS =  tee.$o
tee_LDADD = $(LDADD)
tee_DEPENDENCIES =  ../lib/libsu.a
tee_LDFLAGS = 
test_SOURCES = test.c
test_OBJECTS =  test.$o
test_LDADD = $(LDADD)
test_DEPENDENCIES =  ../lib/libsu.a
test_LDFLAGS = 
tty_SOURCES = tty.c
tty_OBJECTS =  tty.$o
tty_LDADD = $(LDADD)
tty_DEPENDENCIES =  ../lib/libsu.a
tty_LDFLAGS = 
users_SOURCES = users.c
users_OBJECTS =  users.$o
users_LDADD = $(LDADD)
users_DEPENDENCIES =  ../lib/libsu.a
users_LDFLAGS = 
who_SOURCES = who.c
who_OBJECTS =  who.$o
who_LDADD = $(LDADD)
who_DEPENDENCIES =  ../lib/libsu.a
who_LDFLAGS = 
whoami_SOURCES = whoami.c
whoami_OBJECTS =  whoami.$o
whoami_LDADD = $(LDADD)
whoami_DEPENDENCIES =  ../lib/libsu.a
whoami_LDFLAGS = 
yes_SOURCES = yes.c
yes_OBJECTS =  yes.$o
yes_LDADD = $(LDADD)
yes_DEPENDENCIES =  ../lib/libsu.a
yes_LDFLAGS = 
SCRIPTS =  $(bin_SCRIPTS)

CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(CC) $(LDFLAGS) -o $@
HEADERS =  $(noinst_HEADERS)

DIST_COMMON =  Makefile.am Makefile.in ansi2knr.1 ansi2knr.c


PACKAGE = @PACKAGE@
VERSION = @VERSION@

DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) \
	$(TEXINFOS) $(MANS) $(EXTRA_DIST)

TAR = tar
SOURCES = chroot.c nice.c stty.c uname.c uptime.c basename.c date.c dirname.c echo.c env.c expr.c factor.c hostname.c id.c logname.c pathchk.c printenv.c printf.c pwd.c seq.c sleep.c su.c tee.c test.c tty.c users.c who.c whoami.c yes.c
OBJECTS = chroot.$o nice.$o stty.$o uname.$o uptime.$o basename.$o date.$o dirname.$o echo.$o env.$o expr.$o factor.$o hostname.$o id.$o logname.$o pathchk.$o printenv.$o printf.$o pwd.$o seq.$o sleep.$o su.$o tee.$o test.$o tty.$o users.$o who.$o whoami.$o yes.$o

default: all

.SUFFIXES:
.SUFFIXES: .c .o ._c ._o .sh
$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL) 
	cd $(top_srcdir) && automake --gnits src/Makefile

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
	cd $(top_builddir) \
	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status


mostlyclean-binPROGRAMS:

clean-binPROGRAMS:
	test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)

distclean-binPROGRAMS:

maintainer-clean-binPROGRAMS:

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:
	list="$(bin_PROGRAMS)"; for p in $$list; do \
	  rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
	done

.c.o:
	$(COMPILE) -c $<

mostlyclean-compile:
	rm -f *.o core

clean-compile:

distclean-compile:
	rm -f *.tab.c

maintainer-clean-compile:

ansi2knr: ansi2knr.o
	$(LINK) ansi2knr.o $(LIBS)

ansi2knr.o: $(CONFIG_HEADER)

mostlyclean-krextra:

clean-krextra:

distclean-krextra:
	rm -f ansi2knr

maintainer-clean-krextra:

.c._c:
	$(ANSI2KNR) $< > $*.tmp && mv $*.tmp $@

._c._o:
	@echo "$(COMPILE) -c $<"
	@rm -f _$*.c
	@ln $< _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c

._c.l_o:
	@echo "$(LIBTOOL) --mode=compile $(COMPILE) -c $<"
	@rm -f _$*.c
	@ln $< _$*.c && $(LIBTOOL) --mode=compile $(COMPILE) -c _$*.c && mv _$*.lo $@ && rm _$*.c

.c._o:
	$(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
	@echo "$(COMPILE) -c $*._c"
	@rm -f _$*.c
	@ln $*._c _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c

.c.l_o:
	$(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
	@echo "$(LIBTOOL) --mode=compile $(COMPILE) -c $*._c"
	@rm -f _$*.c
	@ln $*._c _$*.c && $(LIBTOOL) --mode=compile $(COMPILE) -c _$*.c && mv _$*.lo $@ && rm _$*.c

mostlyclean-kr:
	rm -f *._o *.l_o *._c _*.c _*.o

clean-kr:

distclean-kr:
	rm -f ansi2knr

maintainer-clean-kr:
$(chroot_OBJECTS): ../config.h

chroot: $(chroot_OBJECTS) $(chroot_DEPENDENCIES)
	$(LINK) $(chroot_LDFLAGS) $(chroot_OBJECTS) $(chroot_LDADD) $(LIBS)
$(nice_OBJECTS): ../config.h

nice: $(nice_OBJECTS) $(nice_DEPENDENCIES)
	$(LINK) $(nice_LDFLAGS) $(nice_OBJECTS) $(nice_LDADD) $(LIBS)
$(stty_OBJECTS): ../config.h

stty: $(stty_OBJECTS) $(stty_DEPENDENCIES)
	$(LINK) $(stty_LDFLAGS) $(stty_OBJECTS) $(stty_LDADD) $(LIBS)
$(uname_OBJECTS): ../config.h

uname: $(uname_OBJECTS) $(uname_DEPENDENCIES)
	$(LINK) $(uname_LDFLAGS) $(uname_OBJECTS) $(uname_LDADD) $(LIBS)
$(uptime_OBJECTS): ../config.h

uptime: $(uptime_OBJECTS) $(uptime_DEPENDENCIES)
	$(LINK) $(uptime_LDFLAGS) $(uptime_OBJECTS) $(uptime_LDADD) $(LIBS)
$(basename_OBJECTS): ../config.h

basename: $(basename_OBJECTS) $(basename_DEPENDENCIES)
	$(LINK) $(basename_LDFLAGS) $(basename_OBJECTS) $(basename_LDADD) $(LIBS)
$(date_OBJECTS): ../config.h

date: $(date_OBJECTS) $(date_DEPENDENCIES)
	$(LINK) $(date_LDFLAGS) $(date_OBJECTS) $(date_LDADD) $(LIBS)
$(dirname_OBJECTS): ../config.h

dirname: $(dirname_OBJECTS) $(dirname_DEPENDENCIES)
	$(LINK) $(dirname_LDFLAGS) $(dirname_OBJECTS) $(dirname_LDADD) $(LIBS)
$(echo_OBJECTS): ../config.h

echo: $(echo_OBJECTS) $(echo_DEPENDENCIES)
	$(LINK) $(echo_LDFLAGS) $(echo_OBJECTS) $(echo_LDADD) $(LIBS)
$(env_OBJECTS): ../config.h

env: $(env_OBJECTS) $(env_DEPENDENCIES)
	$(LINK) $(env_LDFLAGS) $(env_OBJECTS) $(env_LDADD) $(LIBS)
$(expr_OBJECTS): ../config.h

expr: $(expr_OBJECTS) $(expr_DEPENDENCIES)
	$(LINK) $(expr_LDFLAGS) $(expr_OBJECTS) $(expr_LDADD) $(LIBS)
$(factor_OBJECTS): ../config.h

factor: $(factor_OBJECTS) $(factor_DEPENDENCIES)
	$(LINK) $(factor_LDFLAGS) $(factor_OBJECTS) $(factor_LDADD) $(LIBS)
$(hostname_OBJECTS): ../config.h

hostname: $(hostname_OBJECTS) $(hostname_DEPENDENCIES)
	$(LINK) $(hostname_LDFLAGS) $(hostname_OBJECTS) $(hostname_LDADD) $(LIBS)
$(id_OBJECTS): ../config.h

id: $(id_OBJECTS) $(id_DEPENDENCIES)
	$(LINK) $(id_LDFLAGS) $(id_OBJECTS) $(id_LDADD) $(LIBS)
$(logname_OBJECTS): ../config.h

logname: $(logname_OBJECTS) $(logname_DEPENDENCIES)
	$(LINK) $(logname_LDFLAGS) $(logname_OBJECTS) $(logname_LDADD) $(LIBS)
$(pathchk_OBJECTS): ../config.h

pathchk: $(pathchk_OBJECTS) $(pathchk_DEPENDENCIES)
	$(LINK) $(pathchk_LDFLAGS) $(pathchk_OBJECTS) $(pathchk_LDADD) $(LIBS)
$(printenv_OBJECTS): ../config.h

printenv: $(printenv_OBJECTS) $(printenv_DEPENDENCIES)
	$(LINK) $(printenv_LDFLAGS) $(printenv_OBJECTS) $(printenv_LDADD) $(LIBS)
$(printf_OBJECTS): ../config.h

printf: $(printf_OBJECTS) $(printf_DEPENDENCIES)
	$(LINK) $(printf_LDFLAGS) $(printf_OBJECTS) $(printf_LDADD) $(LIBS)
$(pwd_OBJECTS): ../config.h

pwd: $(pwd_OBJECTS) $(pwd_DEPENDENCIES)
	$(LINK) $(pwd_LDFLAGS) $(pwd_OBJECTS) $(pwd_LDADD) $(LIBS)
$(seq_OBJECTS): ../config.h

seq: $(seq_OBJECTS) $(seq_DEPENDENCIES)
	$(LINK) $(seq_LDFLAGS) $(seq_OBJECTS) $(seq_LDADD) $(LIBS)
$(sleep_OBJECTS): ../config.h

sleep: $(sleep_OBJECTS) $(sleep_DEPENDENCIES)
	$(LINK) $(sleep_LDFLAGS) $(sleep_OBJECTS) $(sleep_LDADD) $(LIBS)
$(su_OBJECTS): ../config.h

su: $(su_OBJECTS) $(su_DEPENDENCIES)
	$(LINK) $(su_LDFLAGS) $(su_OBJECTS) $(su_LDADD) $(LIBS)
$(tee_OBJECTS): ../config.h

tee: $(tee_OBJECTS) $(tee_DEPENDENCIES)
	$(LINK) $(tee_LDFLAGS) $(tee_OBJECTS) $(tee_LDADD) $(LIBS)
$(test_OBJECTS): ../config.h

test: $(test_OBJECTS) $(test_DEPENDENCIES)
	$(LINK) $(test_LDFLAGS) $(test_OBJECTS) $(test_LDADD) $(LIBS)
$(tty_OBJECTS): ../config.h

tty: $(tty_OBJECTS) $(tty_DEPENDENCIES)
	$(LINK) $(tty_LDFLAGS) $(tty_OBJECTS) $(tty_LDADD) $(LIBS)
$(users_OBJECTS): ../config.h

users: $(users_OBJECTS) $(users_DEPENDENCIES)
	$(LINK) $(users_LDFLAGS) $(users_OBJECTS) $(users_LDADD) $(LIBS)
$(who_OBJECTS): ../config.h

who: $(who_OBJECTS) $(who_DEPENDENCIES)
	$(LINK) $(who_LDFLAGS) $(who_OBJECTS) $(who_LDADD) $(LIBS)
$(whoami_OBJECTS): ../config.h

whoami: $(whoami_OBJECTS) $(whoami_DEPENDENCIES)
	$(LINK) $(whoami_LDFLAGS) $(whoami_OBJECTS) $(whoami_LDADD) $(LIBS)
$(yes_OBJECTS): ../config.h

yes: $(yes_OBJECTS) $(yes_DEPENDENCIES)
	$(LINK) $(yes_LDFLAGS) $(yes_OBJECTS) $(yes_LDADD) $(LIBS)

install-binSCRIPTS: $(bin_SCRIPTS)
	$(NORMAL_INSTALL)
	$(mkinstalldirs) $(bindir)
	@list="$(bin_SCRIPTS)"; for p in $$list; do \
	  if test -f $$p; then \
	    echo "$(INSTALL_SCRIPT) $$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
	    $(INSTALL_SCRIPT) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
	  else if test -f $(srcdir)/$$p; then \
	    echo "$(INSTALL_SCRIPT) $(srcdir)/$$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
	    $(INSTALL_SCRIPT) $(srcdir)/$$p $(bindir)/`echo $$p|sed '$(transform)'`; \
	  else :; fi; fi; \
	done

uninstall-binSCRIPTS:
	list="$(bin_SCRIPTS)"; for p in $$list; do \
	  rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
	done
whoami._o su._o seq._o env._o pwd._o id._o who._o chroot._o yes._o \
users._o printf._o uptime._o stty._o printenv._o uname._o sleep._o \
basename._o tee._o date._o hostname._o factor._o expr._o echo._o \
nice._o test._o dirname._o tty._o pathchk._o logname._o : $(ANSI2KNR)

tags: TAGS

ID: $(HEADERS) $(SOURCES)
	here=`pwd` && cd $(srcdir) && mkid -f$$here/ID $(SOURCES) $(HEADERS)

TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES)
	tags=; \
	here=`pwd`; \
	list="$(SUBDIRS)"; for subdir in $$list; do \
	  test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
	done; \
	test -z "$(ETAGS_ARGS)$(SOURCES)$(HEADERS)$$tags" \
	  || cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $(SOURCES) $(HEADERS) -o $$here/TAGS

mostlyclean-tags:

clean-tags:

distclean-tags:
	rm -f TAGS ID

maintainer-clean-tags:

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)

subdir = src
distdir: $(DISTFILES)
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  test -f $(distdir)/$$file \
	  || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	  || cp -p $$d/$$file $(distdir)/$$file; \
	done
basename.$o basename.l$o: basename.c ../config.h system.h \
	../lib/long-options.h ../lib/error.h
chroot.$o chroot.l$o: chroot.c ../config.h system.h \
	../lib/long-options.h ../lib/error.h
date.$o date.l$o: date.c ../config.h ../lib/getopt.h system.h \
	../lib/getline.h ../lib/error.h ../lib/getdate.h
dirname.$o dirname.l$o: dirname.c ../config.h system.h \
	../lib/long-options.h ../lib/error.h
echo.$o echo.l$o: echo.c ../config.h system.h ../lib/long-options.h
env.$o env.l$o: env.c ../config.h ../lib/getopt.h system.h \
	../lib/error.h
expr.$o expr.l$o: expr.c ../config.h ../lib/regex.h system.h \
	../lib/long-options.h ../lib/error.h
factor.$o factor.l$o: factor.c ../config.h system.h \
	../lib/long-options.h ../lib/error.h ../lib/xstrtoul.h \
	../lib/xstrtol.h ../lib/readtokens.h
hostname.$o hostname.l$o: hostname.c ../config.h system.h \
	../lib/long-options.h ../lib/error.h
id.$o id.l$o: id.c ../config.h ../lib/getopt.h system.h ../lib/error.h
logname.$o logname.l$o: logname.c ../config.h ../lib/getopt.h system.h
nice.$o nice.l$o: nice.c ../config.h ../lib/getopt.h system.h \
	../lib/long-options.h ../lib/error.h
pathchk.$o pathchk.l$o: pathchk.c ../config.h ../lib/getopt.h system.h \
	../lib/error.h
printenv.$o printenv.l$o: printenv.c ../config.h ../lib/getopt.h \
	system.h ../lib/error.h
printf.$o printf.l$o: printf.c ../config.h ../lib/getopt.h system.h \
	../lib/long-options.h ../lib/error.h
pwd.$o pwd.l$o: pwd.c ../config.h system.h ../lib/long-options.h \
	../lib/error.h
seq.$o seq.l$o: seq.c ../config.h ../lib/getopt.h system.h \
	../lib/error.h ../lib/xstrtod.h
sleep.$o sleep.l$o: sleep.c ../config.h ../lib/getopt.h system.h \
	../lib/error.h
stty.$o stty.l$o: stty.c ../config.h ../lib/getopt.h system.h \
	../lib/long-options.h ../lib/error.h ../lib/xstrtol.h
su.$o su.l$o: su.c ../config.h ../lib/getopt.h system.h ../lib/error.h
tee.$o tee.l$o: tee.c ../config.h ../lib/getopt.h system.h \
	../lib/error.h
test.$o test.l$o: test.c ../config.h system.h ../lib/group-member.h \
	../lib/error.h ../lib/long-options.h
tty.$o tty.l$o: tty.c ../config.h ../lib/getopt.h system.h \
	../lib/error.h
uname.$o uname.l$o: uname.c ../config.h ../lib/getopt.h system.h \
	../lib/error.h
uptime.$o uptime.l$o: uptime.c ../config.h ../lib/getopt.h system.h \
	../lib/error.h
users.$o users.l$o: users.c ../config.h ../lib/getopt.h system.h \
	../lib/error.h
who.$o who.l$o: who.c ../config.h ../lib/getopt.h system.h \
	../lib/error.h
whoami.$o whoami.l$o: whoami.c ../config.h ../lib/getopt.h system.h
yes.$o yes.l$o: yes.c ../config.h ../lib/getopt.h system.h \
	../lib/long-options.h

info:
dvi:
check: all
	$(MAKE)
installcheck:
install-exec: install-binPROGRAMS install-binSCRIPTS install-exec-local
	$(NORMAL_INSTALL)

install-data: 
	$(NORMAL_INSTALL)

install: install-exec install-data all
	@:

uninstall: uninstall-binPROGRAMS uninstall-binSCRIPTS

all: $(ANSI2KNR) $(PROGRAMS) $(SCRIPTS) $(BUILT_SOURCES) $(HEADERS) Makefile

install-strip:
	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
installdirs:
	$(mkinstalldirs)  $(bindir) $(bindir)


mostlyclean-generic:
	test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)

clean-generic:
	test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	rm -f Makefile $(DISTCLEANFILES)
	rm -f config.cache config.log stamp-h
	test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
	test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
mostlyclean:  mostlyclean-binPROGRAMS mostlyclean-compile \
		mostlyclean-krextra mostlyclean-kr mostlyclean-tags \
		mostlyclean-generic

clean:  clean-binPROGRAMS clean-compile clean-krextra clean-kr \
		clean-tags clean-generic mostlyclean

distclean:  distclean-binPROGRAMS distclean-compile distclean-krextra \
		distclean-kr distclean-tags distclean-generic clean
	rm -f config.status

maintainer-clean:  maintainer-clean-binPROGRAMS maintainer-clean-compile \
		maintainer-clean-krextra maintainer-clean-kr \
		maintainer-clean-tags maintainer-clean-generic \
		distclean
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."

.PHONY: default mostlyclean-binPROGRAMS distclean-binPROGRAMS \
clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile mostlyclean-krextra distclean-krextra \
clean-krextra maintainer-clean-krextra mostlyclean-kr distclean-kr \
clean-kr maintainer-clean-kr uninstall-binSCRIPTS install-binSCRIPTS \
tags mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
distdir info dvi installcheck install-exec install-data install \
uninstall all installdirs mostlyclean-generic distclean-generic \
clean-generic maintainer-clean-generic clean mostlyclean distclean \
maintainer-clean


$(PROGRAMS): ../lib/libsu.a

$(SCRIPTS): Makefile

.sh:
	rm -f $@ $@-t
	sed \
	  -e 's!@''bindir''@!@bindir@!' \
	  -e 's/@''GNU_PACKAGE''@/@GNU_PACKAGE@/' \
	  -e 's/@''VERSION''@/@VERSION@/' $< > $@-t
	chmod +x $@-t
	mv $@-t $@

who.c: who-users.c
	rm -f $@
	echo "#define WHO 1" > $@-t
	cat $(srcdir)/who-users.c >> $@-t && mv $@-t $@ && chmod a-w $@

users.c: who-users.c
	rm -f $@
	echo "#define USERS 1" > $@-t
	cat $(srcdir)/who-users.c >> $@-t && mv $@-t $@ && chmod a-w $@

uptime.c: who-users.c
	rm -f $@
	echo "#define UPTIME 1" > $@-t
	cat $(srcdir)/who-users.c >> $@-t && mv $@-t $@ && chmod a-w $@

install-exec-local: install-binPROGRAMS
	@xsu=`echo su|sed '$(transform)'`; \
	if chown root $(bindir)/$$xsu >/dev/null 2>&1 \
	    && chmod u+s $(bindir)/$$xsu >/dev/null 2>&1 ; then \
	  : ; \
	else \
	  echo "WARNING: insufficient access; not installing su"; \
	  echo "NOTE: to install su, run 'make install-root' as root"; \
	  rm -f $(bindir)/`echo su|sed '$(transform)'`; \
	fi
install-root: su
	$(INSTALL_PROGRAM) su $(installed_su)
	chown root $(installed_su)
	chmod u+s $(installed_su)

# 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:
