1999-09-19 14:19:32 +00:00
|
|
|
# $Id: Makefile.in,v 1.68 1999/03/27 17:05:34 joda Exp $
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
1999-09-19 14:19:32 +00:00
|
|
|
top_builddir = ../..
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
CC = @CC@
|
1999-09-19 14:19:32 +00:00
|
|
|
LINK = @LINK@
|
1997-09-04 06:04:33 +00:00
|
|
|
AR = ar
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
DEFS = @DEFS@ -DBINDIR='"$(bindir)"'
|
1999-09-19 14:19:32 +00:00
|
|
|
CFLAGS = @CFLAGS@ $(WFLAGS)
|
|
|
|
WFLAGS = @WFLAGS@
|
1997-09-04 06:04:33 +00:00
|
|
|
LD_FLAGS = @LD_FLAGS@
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
LIB_DBM = @LIB_DBM@
|
|
|
|
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
libdir = @libdir@
|
|
|
|
libexecdir = @libexecdir@
|
|
|
|
bindir = @bindir@
|
|
|
|
transform=@program_transform_name@
|
|
|
|
EXECSUFFIX=@EXECSUFFIX@
|
|
|
|
|
|
|
|
# Beware, these are all setuid root programs
|
|
|
|
PROG_SUIDBIN = rsh$(EXECSUFFIX) \
|
|
|
|
rcp$(EXECSUFFIX) \
|
|
|
|
rlogin$(EXECSUFFIX) \
|
|
|
|
su$(EXECSUFFIX)
|
|
|
|
PROG_BIN = login$(EXECSUFFIX)
|
|
|
|
PROG_LIBEXEC = rshd$(EXECSUFFIX) \
|
|
|
|
rlogind$(EXECSUFFIX)
|
|
|
|
PROGS = $(PROG_SUIDBIN) $(PROG_BIN) $(PROG_LIBEXEC)
|
|
|
|
|
|
|
|
SOURCES = rsh.c kcmd.c krcmd.c rlogin.c rcp.c rcp_util.c rshd.c \
|
1999-09-19 14:19:32 +00:00
|
|
|
login.c klogin.c login_access.c su.c rlogind.c \
|
1997-09-04 06:04:33 +00:00
|
|
|
login_fbtab.c forkpty.c sysv_default.c sysv_environ.c sysv_shadow.c \
|
1999-09-19 14:19:32 +00:00
|
|
|
utmp_login.c utmpx_login.c stty_default.c encrypt.c rcmd_util.c tty.c \
|
|
|
|
osfc2.c
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
rsh_OBJS = rsh.o kcmd.o krcmd.o encrypt.o rcmd_util.o
|
1999-09-19 14:19:32 +00:00
|
|
|
rcp_OBJS = rcp.o rcp_util.o kcmd.o krcmd.o encrypt.o rcmd_util.o osfc2.o
|
1997-09-04 06:04:33 +00:00
|
|
|
rlogin_OBJS = rlogin.o kcmd.o krcmd.o encrypt.o rcmd_util.o
|
|
|
|
login_OBJS = login.o klogin.o login_fbtab.o login_access.o \
|
|
|
|
sysv_default.o sysv_environ.o sysv_shadow.o \
|
1999-09-19 14:19:32 +00:00
|
|
|
utmp_login.o utmpx_login.o stty_default.o tty.o osfc2.o
|
1997-09-04 06:04:33 +00:00
|
|
|
su_OBJS = su.o
|
1999-09-19 14:19:32 +00:00
|
|
|
rshd_OBJS = rshd.o encrypt.o rcmd_util.o osfc2.o
|
|
|
|
rlogind_OBJS = rlogind.o forkpty.o encrypt.o rcmd_util.o tty.o
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
|
|
|
Wall:
|
|
|
|
make CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"
|
|
|
|
|
|
|
|
.c.o:
|
1999-09-19 14:19:32 +00:00
|
|
|
$(CC) -c $(DEFS) -I../../include -I$(srcdir) $(CFLAGS) $(CPPFLAGS) $<
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
install: all
|
1999-09-19 14:19:32 +00:00
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(libexecdir)
|
1997-09-04 06:04:33 +00:00
|
|
|
for x in $(PROG_LIBEXEC); do \
|
1999-09-19 14:19:32 +00:00
|
|
|
$(INSTALL_PROGRAM) $$x $(DESTDIR)$(libexecdir)/`echo $$x| sed '$(transform)'`; \
|
1997-09-04 06:04:33 +00:00
|
|
|
done
|
1999-09-19 14:19:32 +00:00
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
|
1997-09-04 06:04:33 +00:00
|
|
|
for x in $(PROG_BIN); do \
|
1999-09-19 14:19:32 +00:00
|
|
|
$(INSTALL_PROGRAM) $$x $(DESTDIR)$(bindir)/`echo $$x| sed '$(transform)'`; \
|
1997-09-04 06:04:33 +00:00
|
|
|
done
|
|
|
|
-for x in $(PROG_SUIDBIN); do \
|
1999-09-19 14:19:32 +00:00
|
|
|
$(INSTALL_PROGRAM) -o root -m 04555 $$x $(DESTDIR)$(bindir)/`echo $$x| sed '$(transform)'`; \
|
1997-09-04 06:04:33 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
for x in $(PROG_LIBEXEC); do \
|
1999-09-19 14:19:32 +00:00
|
|
|
rm -f $(DESTDIR)$(libexecdir)/`echo $$x| sed '$(transform)'`; \
|
1997-09-04 06:04:33 +00:00
|
|
|
done
|
|
|
|
for x in $(PROG_BIN); do \
|
1999-09-19 14:19:32 +00:00
|
|
|
rm -f $(DESTDIR)$(bindir)/`echo $$x| sed '$(transform)'`; \
|
1997-09-04 06:04:33 +00:00
|
|
|
done
|
|
|
|
for x in $(PROG_SUIDBIN); do \
|
1999-09-19 14:19:32 +00:00
|
|
|
rm -f $(DESTDIR)$(bindir)/`echo $$x| sed '$(transform)'`; \
|
1997-09-04 06:04:33 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
TAGS: $(SOURCES)
|
|
|
|
etags $(SOURCES)
|
|
|
|
|
|
|
|
check:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.a *.o $(PROGS)
|
|
|
|
|
|
|
|
mostlyclean: clean
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile *.tab.c *~
|
|
|
|
|
|
|
|
realclean: distclean
|
|
|
|
rm -f TAGS
|
|
|
|
|
|
|
|
KLIB=-L../../lib/krb -lkrb -L../../lib/des -ldes
|
|
|
|
KLIB_AFS=@KRB_KAFS_LIB@ $(KLIB)
|
1999-09-19 14:19:32 +00:00
|
|
|
OTPLIB=@LIB_otp@
|
1997-09-04 06:04:33 +00:00
|
|
|
LIBROKEN=-L../../lib/roken -lroken
|
|
|
|
|
1999-09-19 14:19:32 +00:00
|
|
|
LIB_security=@LIB_security@
|
|
|
|
|
1997-09-04 06:04:33 +00:00
|
|
|
rcp$(EXECSUFFIX): $(rcp_OBJS)
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(rcp_OBJS) $(KLIB_AFS) $(LIBROKEN) $(LIBS) $(LIBROKEN) $(LIB_security)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
rsh$(EXECSUFFIX): $(rsh_OBJS)
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(rsh_OBJS) $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
rshd$(EXECSUFFIX): $(rshd_OBJS)
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(rshd_OBJS) $(KLIB_AFS) $(LIBROKEN) $(LIBS) $(LIBROKEN) $(LIB_security)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
rlogin$(EXECSUFFIX): $(rlogin_OBJS)
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(rlogin_OBJS) $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
rlogind$(EXECSUFFIX): $(rlogind_OBJS)
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(rlogind_OBJS) $(KLIB_AFS) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
login$(EXECSUFFIX): $(login_OBJS)
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(login_OBJS) $(OTPLIB) $(KLIB_AFS) $(LIBROKEN) $(LIB_DBM) $(LIBS) $(LIBROKEN) $(LIB_security)
|
1997-09-04 06:04:33 +00:00
|
|
|
|
|
|
|
su$(EXECSUFFIX): $(su_OBJS)
|
1999-09-19 14:19:32 +00:00
|
|
|
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(su_OBJS) $(KLIB_AFS) $(LIBROKEN) $(LIBS) $(LIBROKEN)
|
|
|
|
|
|
|
|
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean
|