head	1.6;
access;
symbols;
locks; strict;
comment	@# @;


1.6
date	93.05.20.21.01.07;	author md;	state Exp;
branches;
next	1.5;

1.5
date	92.11.19.09.33.21;	author md;	state Exp;
branches;
next	1.4;

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

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

1.2
date	91.07.09.13.26.15;	author rayan;	state Exp;
branches;
next	1.1;

1.1
date	91.07.09.12.48.59;	author rayan;	state Exp;
branches;
next	;


desc
@aos
@


1.6
log
@changes from Roger
@
text
@#
# 5799-WZQ (C) COPYRIGHT IBM CORPORATION 1986,1987,1988
# LICENSED MATERIALS - PROPERTY OF IBM
# REFER TO COPYRIGHT INSTRUCTIONS FORM NUMBER G120-2083
#
# $Header: /sys/dist/etc/RCS/Makefile,v 1.4 1992/11/17 09:29:09 md Exp md $ 
# $ACIS:Makefile 12.0$ 
# $Source: /sys/dist/etc/RCS/Makefile,v $ 
#
# makefile for miniroot tools
#
LDFLAGS= -N
ALL = onechar syscall
RTSTAND = /usr/src/sys/rtstand

all: ${ALL}

# START-of-big-glob-program

NEWFS_OBJ = mkfs.o newfs.o ifconfig.o route.o mount.o xxxfs.o

newfs: ${NEWFS_OBJ}
	${CC} ${LDFLAGS} -o newfs ${NEWFS_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 \
		/usr/src/sbin/ifconfig/ifconfig.c

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

route.o: keywords.h /usr/src/sbin/route/route.c
	${CC} -I${.CURDIR} -Dmain=main_route -Dcopyright=copyright_route \
		-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} -Dmain=main_mount -Dcopyright=copyright_mount \
		-Dusage=usage_mount -c /usr/src/sbin/mount/mount.c

# END-of-big-glob-program

onechar: onechar.o
	${CC} ${LDFLAGS} -o $@@ $@@.o
	strip $@@

syscall.o: syscall.c
	${CC} -DPRINTF -DCTIME -c syscall.c

${RTSTAND}/obj/printf.o:.
	cd $(RTSTAND);make printf.o

${RTSTAND}/obj/parse.o:.
	cd $(RTSTAND);make parse.o

syscall: syscall.o ${RTSTAND}/obj/parse.o ${RTSTAND}/obj/printf.o
	${CC} -N -o syscall syscall.o ${RTSTAND}/obj/parse.o ${RTSTAND}/obj/printf.o
	strip syscall

clean:
	rm -f *.o ${ALL} a.out core
@


1.5
log
@take out all the special newfs handling
@
text
@d18 42
@


1.4
log
@fixes for obj dir in rtstand
@
text
@d6 1
a6 1
# $Header: /sys/dist/etc/RCS/Makefile,v 1.3 1992/11/13 11:11:25 md Exp md $ 
d13 1
a13 1
ALL = onechar newfs syscall
a20 20

NEWFS_OBJ = mkfs.o newfs.o ifconfig.o xxxfs.o

newfs: ${NEWFS_OBJ}
	${CC} ${LDFLAGS} -o newfs ${NEWFS_OBJ}
	strip newfs

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 \
		/usr/src/sbin/ifconfig/ifconfig.c

xxxfs.o: xxxfs.c
	${CC} -c xxxfs.c
@


1.3
log
@strip binaries that are produced
@
text
@d6 1
a6 1
# $Header: /sys/dist/etc/RCS/Makefile,v 1.2 1991/07/09 13:26:15 rayan Exp md $ 
d45 2
a46 2
${RTSTAND}/printf.o:.
	cd /usr/src/sys/rtstand/;make printf.o
d48 2
a49 2
${RTSTAND}/parse.o:.
	cd /usr/src/sys/rtstand;make parse.o
d51 2
a52 2
syscall: syscall.o ${RTSTAND}/parse.o ${RTSTAND}/printf.o
	${CC} -N -o syscall syscall.o ${RTSTAND}/parse.o ${RTSTAND}/printf.o
@


1.2
log
@reno mods
@
text
@d6 1
a6 1
# $Header: /usr/src/sys/dist/etc/RCS/Makefile,v 1.1 91/07/09 12:48:59 rayan Exp $ 
d8 1
a8 1
# $Source: /usr/src/sys/dist/etc/RCS/Makefile,v $ 
d20 1
d26 1
d53 1
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
# $Header:Makefile 12.0$ 
d8 1
a8 1
# $Source: /ibm/acis/usr/sys/dist/etc/RCS/Makefile,v $ 
d13 3
a15 2
CFLAGS=-DPRINTF -DCTIME -DNONFS
ALL = onechar mkfs syscall
d21 1
a21 1
MKFS_OBJ = mkfs.o newfs.o ifconfig.o xxxfs.o
d23 2
a24 2
mkfs: ${MKFS_OBJ}
	${CC} ${LDFLAGS} -o mkfs ${MKFS_OBJ}
d26 2
a27 3
mkfs.o: /usr/src/etc/mkfs.c
	${CC} -Dmain=main_mkfs -Dcopyright=copyright_mkfs -c \
		${CFLAGS} /usr/src/etc/mkfs.c
d29 3
a31 3
newfs.o: /usr/src/etc/newfs.c
	${CC} -Dmain=main_newfs -Dcopyright=copyright_newfs -c \
	${CFLAGS} /usr/src/etc/newfs.c
d33 1
a33 1
ifconfig.o: /usr/src/etc/ifconfig.c
d35 1
a35 1
		/usr/src/etc/ifconfig.c
d40 2
a41 2
syscall.o: /usr/src/etc/syscall/syscall.c
	${CC} -DPRINTF -DCTIME -c /usr/src/etc/syscall/syscall.c
d43 2
a44 2
/sys/standca/printf.o:.
	cd /sys/standca;make printf.o
d46 2
a47 2
/sys/standca/parse.o:.
	cd /sys/standca;make parse.o
d49 2
a50 2
syscall: syscall.o /sys/standca/parse.o /sys/standca/printf.o
	${CC} -N -o syscall syscall.o /sys/standca/parse.o /sys/standca/printf.o
@
