head	1.18;
access;
symbols
	CSRG_19930606:1.1.1.1 CSRG:1.1.1;
locks; strict;
comment	@# @;


1.18
date	2006.03.27.23.43.14;	author jmallett;	state Exp;
branches;
next	1.17;

1.17
date	2003.03.14.06.42.25;	author jmallett;	state Exp;
branches;
next	1.16;

1.16
date	2002.07.19.08.24.59;	author jmallett;	state Exp;
branches;
next	1.15;

1.15
date	2002.07.18.04.23.08;	author jmallett;	state Exp;
branches;
next	1.14;

1.14
date	2002.06.17.13.11.37;	author jmallett;	state Exp;
branches;
next	1.13;

1.13
date	2002.06.17.12.36.38;	author jmallett;	state Exp;
branches;
next	1.12;

1.12
date	2002.06.17.12.10.37;	author jmallett;	state Exp;
branches;
next	1.11;

1.11
date	2002.05.27.17.29.00;	author jmallett;	state Exp;
branches;
next	1.10;

1.10
date	2002.05.24.18.43.13;	author jmallett;	state Exp;
branches;
next	1.9;

1.9
date	2002.05.24.16.27.11;	author jmallett;	state Exp;
branches;
next	1.8;

1.8
date	2002.05.24.07.04.11;	author jmallett;	state Exp;
branches;
next	1.7;

1.7
date	2002.05.24.06.46.16;	author jmallett;	state Exp;
branches;
next	1.6;

1.6
date	2002.05.24.06.38.27;	author jmallett;	state Exp;
branches;
next	1.5;

1.5
date	2002.05.24.05.52.24;	author jmallett;	state Exp;
branches;
next	1.4;

1.4
date	2002.05.24.05.46.16;	author jmallett;	state Exp;
branches;
next	1.3;

1.3
date	2002.05.24.05.44.52;	author jmallett;	state Exp;
branches;
next	1.2;

1.2
date	2002.05.24.05.22.05;	author jmallett;	state Exp;
branches;
next	1.1;

1.1
date	2002.05.24.04.15.04;	author jmallett;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2002.05.24.04.15.04;	author jmallett;	state Exp;
branches;
next	;


desc
@@


1.18
log
@Try to bring code into the present and get rid of some silly hardcoding, and
remove now-unused functions.  Really should just rewrite stuff from scratch,
but this makes it a bit easier to understand the code.
@
text
@#	@@(#)Makefile	1.7	(Berkeley)	88/12/22
# $FreeBSD$
#
CFLAGS=	-g -O -W -Wall -Werror -ansi -pedantic -Wno-long-long
OBJS=	giveup.o lockit.o xcreat.o xlink.o xfopen.o \
	xpipe.o xunlink.o xmsg.o fatal.o setsig.o userexit.o clean.o \
	patoi.o patol.o repeat.o satoi.o  \
	maket.o

all: libpw.a
	mv -f libpw.a ..
	ranlib ../libpw.a

install:

libpw.a: ${OBJS}
	rm -f libpw.a
	ar cr libpw.a ${OBJS}

clean:
	-rm -f ${OBJS}
@


1.17
log
@Almost nothing uses xopen(), and nothing uses it where it's the only possible
way, so get rid of it.  In place of it, make xfopen a real function, which does
actually wrap fopen, as opposed to hardcoding O_ values in code that is so
horridly macro-driven, one wonders why it didn't pioneer in O_ values if such
was not in practice at the time.
@
text
@d7 2
a8 2
	patoi.o patol.o repeat.o repl.o satoi.o substr.o substr.o \
	trnslat.o zeropad.o maket.o
@


1.16
log
@ * Turn on -Wno-long-long.  Despite the fact that no code here uses long long,
   some FreeBSD system headers *do*, sigh.
@
text
@d5 1
a5 1
OBJS=	giveup.o lockit.o xcreat.o xlink.o xopen.o \
@


1.15
log
@ * Turn on -ansi -pedantic.
 * Do 'struct hack' for SCCSID() macro, per the CFLAGS changes.
 * Use gid_t appropriately, but cast in signedness when getting it from an
   atoi(3) call, to check for error.
@
text
@d4 1
a4 1
CFLAGS=	-g -O -W -Wall -Werror -ansi -pedantic
@


1.14
log
@ * Remove parts of util/ from the build that are obviously unused.
 * Kill files in util/ not in the build.
@
text
@d4 1
a4 1
CFLAGS=	-g -O -W -Wall -Werror
@


1.13
log
@ * Add $FreeBSD$ after copyright in comments.
 * Finish using ${OBJS} for objects in util/Makefile.
 * Prevent defines.h from being included more than once.
 * Kill USXALLOC.
 * Kill an unused variable in cmd/prs.c.

Christoph Hellwig <hch@@infradead.org>
 * Use isatty(0) instead of old incompatible ioctl(2) calls.
 * isnumber() needs defined outside of FreeBSD.
 * __unused should only be implemented as __attribute__ in GNUC.
@
text
@d5 1
a5 1
OBJS=	giveup.o lockit.o userdir.o username.o xcreat.o xlink.o xopen.o \
d7 2
a8 2
	anystr.o bal.o cat.o patoi.o patol.o repeat.o repl.o satoi.o \
	substr.o trnslat.o verify.o zeropad.o maket.o
@


1.12
log
@Minor style cleanup to the Makefile (i.e. give it a style).

Remove unused file (mksyswrite.sh).
@
text
@d16 1
a16 1
libpw.a: ${PWOBJS}
d18 1
a18 1
	ar cr libpw.a ${PWOBJS}
d21 1
a21 1
	-rm -f ${PWOBJS}
@


1.11
log
@Add a global maket() to util/, and remove local declarations of it.  It doesn't
leave droppings around, unlike the old implementations.
@
text
@d2 1
d4 5
a8 8
CFLAGS = -g -O -W -Wall -Werror
PWOBJS=	giveup.o lockit.o userdir.o \
	username.o xcreat.o xlink.o xopen.o \
	xpipe.o xunlink.o xmsg.o fatal.o setsig.o userexit.o \
	clean.o anystr.o bal.o cat.o \
	patoi.o patol.o repeat.o repl.o satoi.o substr.o trnslat.o \
	verify.o zeropad.o \
	maket.o
d21 1
a21 1
	-rm -f *.o syswrite.s errs
@


1.10
log
@Protoize, warnings, cleanup.
@
text
@d9 2
a10 1
	verify.o zeropad.o
@


1.9
log
@Modernise the code, remove things we don't really need anymore, and kill
warnings.
@
text
@d3 1
a3 1
CFLAGS = -O -W -Wall -Werror
@


1.8
log
@Warnings cleanup, etc.
@
text
@a9 1
PW2OBJS=pexec.o
d11 2
a12 2
all: libpw.a libPW.a
	mv -f libpw.a libPW.a ..
a13 1
	ranlib ../libPW.a
a19 4

libPW.a: ${PW2OBJS}
	rm -f libPW.a
	ar cr libPW.a ${PW2OBJS}
@


1.7
log
@Remove imatch.

Clean up warnings, etc.
@
text
@d8 1
a8 1
	patoi.o patol.o repeat.o repl.o satoi.o sname.o substr.o trnslat.o \
d10 1
a10 2
WROBJS=	write.o
PW2OBJS=logname.o pexec.o
d12 2
a13 2
all: libpw.a libwrt.a libPW.a
	mv -f libpw.a libwrt.a libPW.a ..
a14 1
	ranlib ../libwrt.a
a21 4

libwrt.a: ${WROBJS}
	rm -f libwrt.a
	ar cr libwrt.a ${WROBJS}
@


1.6
log
@More cleanups.
@
text
@d7 1
a7 1
	clean.o anystr.o bal.o cat.o imatch.o \
@


1.5
log
@dname -> dirname.
@
text
@d9 1
a9 1
	verify.o any.o zeropad.o
@


1.4
log
@Remove xalloc.
@
text
@d6 1
a6 1
	xpipe.o xunlink.o xmsg.o dname.o fatal.o setsig.o userexit.o \
@


1.3
log
@Start encouraging the code to clean up by removing silly macros and by adding
a header for external functions/types/whatever.

Clean up warnings.  Turn on warnings.

Remove rename.c, we have rename(2) now, doncha know.
@
text
@d5 1
a5 1
	username.o xalloc.o xcreat.o xlink.o xopen.o \
@


1.2
log
@# foo -> #foo
@
text
@d4 1
a4 1
PWOBJS=	giveup.o lockit.o rename.o userdir.o \
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
CFLAGS = -O -w
@


1.1.1.1
log
@Initial import of CSRG SCCS.

Obtained from:	Kirk McKusick
@
text
@@
