#
# Copyright (C) 1986, Excelan, Inc.  All rights reserved.
#
# $Header: Makefile,v 1.9 86/10/28 16:08:17 alexl Exp $
#
INCL=/usr/src/EXOS/include/EXOS

CFLAGS=	-O -I${INCL} -D${VERSION} -D${SELECT} -D${MACHINE} -D${SYSTEM} \
	-DHOSTS=\"$(ETC)/hosts\" \
	-DHOSTSLOCAL=\"$(ETC)/hosts.local\" \
	-DHOSTSEQUIV=\"$(ETC)/hosts.equiv\"

CLIBPATH=/lib
LIBC=libc.a

.c.o:; $(CC) -c $(CFLAGS) $*.c

all:	perror.o

perror:	perror.o
	cd $(CLIBPATH) ; ar x $(LIBC) perror.o
	mv $(CLIBPATH)/perror.o $(CLIBPATH)/perror.o.ORIG
	ar r $(CLIBPATH)/$(LIBC) perror.o
	${RANLIB} $(CLIBPATH)/$(LIBC)

unperror:
	mv $(CLIBPATH)/perror.o.ORIG  $(CLIBPATH)/perror.o
	cd $(CLIBPATH) ; ar r $(LIBC) perror.o
	${RANLIB} $(CLIBPATH)/$/(LIBC)
	rm $(CLIBPATH)/perror.o

clean:
	-/bin/rm *.o
