#	Copyright (c) 1984 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#ident	"@(#)kern-port:nudnix/nudnix.mk	10.15	1.1 (Fairchild) 6/11/86"
#
#		Copyright 1984 AT&T
#

ROOT = 
STRIP = strip
INCRT = ..
MKBOOT = mkboot
MASTERD = ../master.d
DASHG = 
VER = mip
DASHO = 
DUDEBUG = NO
CFLAGS= -I$(INCRT) -Dpm300 -Dopus -DSVR3 -DINKERNEL $(MORECPP) $(DASHG) $(DASHO) -DDUDEBUG=$(DUDEBUG)
PFLAGS= -I$(INCRT) -Dpm300 -Dopus -DSVR3 -DINKERNEL $(MORECPP) $(DASHG)
LIBNAME = ../cf/lib.nudnix
FRC =

SRCS =\
	adv.c\
	auth.c\
	canon.c\
	cirmgr.c\
	comm.c\
	fileop.c\
	fumount.c\
	netboot.c\
	que.c\
	queue.c\
	rdebug.c\
	recover.c\
	remcall.c\
	rfadmin.c\
	rfcanon.c\
	rfsys.c\
	rmount.c\
	rmove.c\
	rnami.c\
	rsc.c\
	serve.c\
	string.c

DFILES =\
	du.o

FILES =\
	$(LIBNAME)(adv.o)\
	$(LIBNAME)(auth.o)\
	$(LIBNAME)(canon.o)\
	$(LIBNAME)(cirmgr.o)\
	$(LIBNAME)(comm.o)\
	$(LIBNAME)(fileop.o)\
	$(LIBNAME)(fumount.o)\
	$(LIBNAME)(netboot.o)\
	$(LIBNAME)(que.o)\
	$(LIBNAME)(queue.o)\
	$(LIBNAME)(rdebug.o)\
	$(LIBNAME)(recover.o)\
	$(LIBNAME)(remcall.o)\
	$(LIBNAME)(rfadmin.o)\
	$(LIBNAME)(rfcanon.o)\
	$(LIBNAME)(rfsys.o)\
	$(LIBNAME)(rmount.o)\
	$(LIBNAME)(rmove.o)\
	$(LIBNAME)(rnami.o)\
	$(LIBNAME)(rsc.o)\
	$(LIBNAME)(serve.o)\
	$(LIBNAME)(string.o)

#
# Files for avoiding optimization
#

NOPFILES =\
	streamio | \
	prf

all:	$(LIBNAME)

DU:	$(DFILES) $(MASTERD)/du
	$(MKBOOT) -m $(MASTERD) -d . du.o

#$(LIBNAME): $(FILES)

$(LIBNAME): $(FILES)
	$(CC) -c $(CFLAGS) $(?:.o=.c)
	ar rv $(LIBNAME) $?
	rm $?

.c.a:;

.PRECIOUS:	$(LIBNAME)

du.o:	$(FILES)

clean:
	-rm -f *.o

clobber:	clean

FRC:

