2.9BSD/usr/net/src/net/common/Makefile.old

# @(#)Makefile	4.5 10/12/82
OBJS=	gethostnam.o gethostadd.o gethostent.o \
	getnetaddr.o getnetent.o getnetname.o \
	getproto.o getprotent.o getprotnum.o \
	getservent.o getservpor.o getservnam.o \
	raddr.o rcmd.o rexec.o rhost.o ruserpass.o
CFLAGS=	-DUCB_NET -DMENLO_JCL-O -I.. -I/mnt/usr/include -I/mnt/usr/src/sys

.c.o:
	${CC} -S ${CFLAGS} $*.c
	sed -f ../asm.sed $*.s > $*.S
	as - -o $*.o $*.S
	rm -f $*.s $*.S
	rm -f $*.s
	-ld -X -r $*.o
	mv a.out profiled/$*.o
	${CC} -S ${CFLAGS} -c $*.c
	sed -f ../asm.sed $*.s | as -o $*.o
	rm -f $*.s
	-ld -x -r $*.o
	mv a.out $*.o

all:	${OBJS}
	ar cru ../netlib ${OBJS}
	cd profiled; ar cru ../../netlib_p ${OBJS}

clean:
	rm -f ${OBJS} profiled/*.o errs a.out core