head	1.5;
access;
symbols
	Real-Release-0-58:1.4
	Release-0-58:1.4
	broken-signals-0-57:1.4.0.2
	Release-0-56-last:1.4
	Release-0-57:1.4;
locks; strict;
comment	@# @;


1.5
date	98.11.23.10.04.31;	author saw;	state dead;
branches;
next	1.4;

1.4
date	97.02.24.06.00.46;	author morgan;	state Exp;
branches;
next	1.3;

1.3
date	97.01.29.03.35.26;	author morgan;	state Exp;
branches;
next	1.2;

1.2
date	96.05.05.18.40.21;	author morgan;	state Exp;
branches;
next	1.1;

1.1
date	96.05.02.05.44.16;	author morgan;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Directory hierarchy was changed.
@
text
@#
# $Id: Makefile,v 1.4 1997/02/24 06:00:46 morgan Exp $
#

dummy:

	@@echo	"*** This is not a top level Makefile!"

PROGS =
PROGSUID = su
SRCS = su.c
ISRCS=setcred.-c shell_args.-c make_env.-c wait4shell.-c
ESRCS=$(addprefix ../inc/,$(ISRCS))

all: $(PROGSUID)

su: $(SRCS) $(ESRCS)
	$(CC) $(CFLAGS) -o su su.c $(LOADLIBES)

install: all
	if [ -n "$(PROGS)" ]; then \
		strip $(PROGS) ; \
		cp $(PROGS) ../../bin ; \
	fi
	if [ -n "$(PROGSUID)" ]; then \
		strip $(PROGSUID) ; \
		install -m 4555 -o root -g bin $(PROGSUID) ../../bin ; \
	fi

remove:
	cd ../../bin ; rm -f $(PROGS) $(PROGSUID)

lclean:
	rm -f *.a *.so *.o *~ $(PROGS) $(PROGSUID)

clean: lclean

extraclean: lclean
	rm -f *.a *.out *.o *.so
	for x in $(PROGS) $(PROGSUID) ; do rm -f ../../bin/$$x ; done
@


1.4
log
@clean up and stripping binaries before installation
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.3 1997/01/29 03:35:26 morgan Exp morgan $
@


1.3
log
@update for release
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.2 1996/05/05 18:40:21 morgan Exp morgan $
d13 1
a13 1
ESRCS=$(addprefix inc/,$(ISRCS))
d21 4
a24 1
	if [ -n "$(PROGS)" ]; then cp $(PROGS) ../../bin ; fi
d26 3
a28 1
		install -m 4555 -o root -g bin $(PROGSUID) ../../bin ; fi
d33 1
a33 1
clean:
d36 3
a38 2
extraclean:
	@@$(MAKE) clean
a40 1

@


1.2
log
@deleted clean from remove
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.1 1996/05/02 05:44:16 morgan Exp morgan $
d11 3
d15 4
a18 6
all: $(SRCS)
	for i in $(PROGS) $(PROGSUID); do \
		if [ ! -x "$$i" ] || [ "$$i".c -nt "$$i" ]; then \
			$(CC) $(CFLAGS) -o $$i $$i.c $(LOADLIBES) ; \
		fi ; \
	done
d32 1
a32 1
	@@make clean
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
# $Id$
d24 1
a24 1
remove: clean
@
