head	1.4;
access;
symbols;
locks
	md:1.4; strict;
comment	@# @;


1.4
date	94.03.03.19.41.21;	author md;	state Exp;
branches;
next	1.3;

1.3
date	94.02.28.14.55.47;	author md;	state Exp;
branches;
next	1.2;

1.2
date	93.06.25.17.57.38;	author md;	state Exp;
branches;
next	1.1;

1.1
date	93.05.26.18.26.03;	author roger;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Use the old Reno versions of some of the updated utilites.
CFLAGS was missing on some of the compile lines.
@
text
@#
# 5799-WZQ (C) COPYRIGHT IBM CORPORATION 1986,1987,1988
# LICENSED MATERIALS - PROPERTY OF IBM
# REFER TO COPYRIGHT INSTRUCTIONS FORM NUMBER G120-2083
#
# $Header: /usr/src/sys/rtdist/glob/RCS/Makefile,v 1.3 1994/02/28 14:55:47 md Exp md $ 
# $ACIS:Makefile 12.0$ 
# $Source: /usr/src/sys/rtdist/glob/RCS/Makefile,v $ 
#
# makefile for miniroot tools
#
LDFLAGS= -N
ALL = glob
RTSTAND = /usr/src/sys/rtstand
DEFINES = -DMAIN_EXPR -DMAIN_STTY -DMAIN_CP -DMAIN_RM -DMAIN_DATE -DMAIN_TAR
CFLAGS= -O -w ${DEFINES}

all: ${ALL}

clean:
	rm -f ${ALL} *.o keywords.h y.tab.h expr.c

# START-of-big-glob-program

GLOB_OBJ = mkfs.o newfs.o ifconfig.o mount.o rsh.o init.o dtype.o \
	dd.o test.o syscall.o expr.o stty.o cp.o rm.o date.o tar.o main.o

glob: ${GLOB_OBJ}
	${CC} ${LDFLAGS} -o glob ${GLOB_OBJ}

mkfs.o: /usr/src/sbin/newfs/mkfs.c
	${CC} -DMFS -c ${CFLAGS} /usr/src/sbin/newfs/mkfs.c

newfs.o: /usr/src/sbin/newfs/newfs.c
	${CC} -DMFS -Dmain=main_newfs -Dcopyright=copyright_newfs -c \
	${CFLAGS} /usr/src/sbin/newfs/newfs.c

ifconfig.o: /usr/src/sbin/ifconfig/ifconfig.c
	${CC} -Dmain=main_ifconfig -Dcopyright=copyright_ifconfig -c \
	${CFLAGS} /usr/src/sbin/ifconfig/ifconfig.c

#xxxfs.o: xxxfs.c
#	${CC} -c ${CFLAGS} xxxfs.c

route.o: keywords.h /usr/src/sbin/route/route.c
	${CC} -I${.CURDIR} -Dmain=main_route -Dcopyright=copyright_route \
	${CFLAGS} -Dusage=usage_route -c /usr/src/sbin/route/route.c

keywords.h: /usr/src/sbin/route/keywords
	sed -e '/^#/d' -e '/^$$/d' /usr/src/sbin/route/keywords > _keywords.tmp
	tr a-z A-Z < _keywords.tmp | paste _keywords.tmp - | \
	    awk '{ \
		if (NF > 1) \
			printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \
			    $$2, NR, $$1, $$2 }' \
	    > ${.TARGET}
	rm -f _keywords.tmp

# a non-nfs version.
mount.o: /usr/src/sbin/mount/mount.c
	${CC} -I/usr/src/sbin/mount -Dmain=main_mount \
		-Dcopyright=copyright_mount -Dusage=usage_mount \
		-c ${CFLAGS} /usr/src/sbin/mount/mount.c

rsh.o: /usr/src/usr.bin/rsh/rsh.c
	${CC} -I/usr/src/usr.bin/rsh -Dmain=main_rsh \
		-Dcopyright=copyright_rsh -Dusage=usage_rsh \
		-c ${CFLAGS} /usr/src/usr.bin/rsh/rsh.c

init.o: /usr/src/sys/rtdist/sbin/init.c
	${CC} -Dmain=main_init -c ${CFLAGS} /usr/src/sys/rtdist/sbin/init.c

dtype.o: /usr/src/sys/rtdist/sbin/dtype.c
	${CC} -Dmain=main_dtype -c ${CFLAGS} /usr/src/sys/rtdist/sbin/dtype.c

dd.o: /usr/src/bin/dd/dd.c
	${CC} -Dmain=main_dd -Dcopyright=copyright_dd -Dterm=term_dd -c \
	${CFLAGS} /usr/src/bin/dd/dd.c

test.o: /usr/src/bin/test-reno/test.c
	${CC} -Dmain=main_test -Dcopyright=copyright_test -c \
	${CFLAGS} /usr/src/bin/test-reno/test.c

syscall.o: /usr/src/sys/rtdist/etc/syscall.c
	${CC} -DPRINTF -DCTIME -Dmain=main_syscall -c ${CFLAGS} \
		/usr/src/sys/rtdist/etc/syscall.c

expr.c: /usr/src/bin/expr/expr.y

expr.o: expr.c
	${CC} -Dmain=main_expr -Dlength=length_expr \
		-Dmatch=match_expr -Dadvance=advance_expr -Dindex=index_expr \
		-c ${CFLAGS} expr.c

stty.o: /usr/src/bin/stty-reno/stty.c
	${CC} -Dmain=main_stty -Dcopyright=copyright_stty -c \
	${CFLAGS} /usr/src/bin/stty-reno/stty.c

cp.o: /usr/src/bin/cp-reno/cp.c
	${CC} -Dmain=main_cp -Derror=error_cp -Dcopyright=copyright_cp -c \
	${CFLAGS} /usr/src/bin/cp-reno/cp.c

rm.o: /usr/src/bin/rm-reno/rm.c
	${CC} -Dmain=main_rm -Dusage=usage_rm -Dcopyright=copyright_rm -c \
	${CFLAGS} /usr/src/bin/rm-reno/rm.c

date.o: date.c
	${CC} -Dmain=main_date -Dusage=usage_date \
	${CFLAGS} -Dcopyright=copyright_date -c \
		date.c

tar.o: /usr/src/bin/tar/tar.c
	${CC} -I/usr/src/bin/tar -Dmain=main_tar \
		-Dcopyright=copyright_tar -Dusage=usage_tar \
		-c ${CFLAGS} /usr/src/bin/tar/tar.c

# END-of-big-glob-program

@


1.3
log
@add support for merged tar command
@
text
@d6 1
a6 1
# $Header: /nfs-server/bsdreno/sys/rtdist/glob/RCS/Makefile,v 1.2 1993/06/25 17:57:38 md Exp $ 
d8 1
a8 1
# $Source: /nfs-server/bsdreno/sys/rtdist/glob/RCS/Makefile,v $ 
d40 1
a40 1
		/usr/src/sbin/ifconfig/ifconfig.c
d43 1
a43 1
#	${CC} -c xxxfs.c
d47 1
a47 1
		-Dusage=usage_route -c /usr/src/sbin/route/route.c
d63 1
a63 1
		-c /usr/src/sbin/mount/mount.c
d68 1
a68 1
		-c /usr/src/usr.bin/rsh/rsh.c
d78 1
a78 1
		/usr/src/bin/dd/dd.c
d80 1
a80 1
test.o: /usr/src/bin/test/test.c
d82 1
a82 1
		/usr/src/bin/test/test.c
d95 1
a95 1
stty.o: /usr/src/bin/stty/stty.c
d97 1
a97 1
		/usr/src/bin/stty/stty.c
d99 1
a99 1
cp.o: /usr/src/bin/cp/cp.c
d101 1
a101 1
		/usr/src/bin/cp/cp.c
d103 1
a103 1
rm.o: /usr/src/bin/rm/rm.c
d105 1
a105 1
		/usr/src/bin/rm/rm.c
d109 1
a109 1
		-Dcopyright=copyright_date -c \
d115 1
a115 1
		-c /usr/src/bin/tar/tar.c
@


1.2
log
@Changes from Roger.
@
text
@d6 1
a6 1
# $Header: /sys/rtdist/glob/RCS/Makefile,v 1.1 1993/05/26 18:26:03 roger Exp roger $ 
d8 1
a8 1
# $Source: /sys/rtdist/glob/RCS/Makefile,v $ 
d15 1
a15 1
DEFINES = -DMAIN_EXPR -DMAIN_STTY -DMAIN_CP -DMAIN_RM -DMAIN_DATE
d26 1
a26 1
	dd.o test.o syscall.o expr.o stty.o cp.o rm.o date.o main.o
d111 5
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
# $Header: /sys/dist/etc/RCS/Makefile,v 1.4 1992/11/17 09:29:09 md Exp md $ 
d8 1
a8 1
# $Source: /sys/dist/etc/RCS/Makefile,v $ 
d15 1
a15 1
DEFINES = -DMAIN_EXPR
d20 3
d25 2
a26 2
GLOB_OBJ = mkfs.o newfs.o ifconfig.o route.o mount.o rsh.o init.o dtype.o \
	dd.o test.o syscall.o expr.o main.o
d94 17
a110 1
	
@
