#  CHK=0xC596
#+--------------------------------------------------------------
#  Makefile for uxlst utilities
#  must be run by root with umask 22
#---------------------------------------------------------------
#+:EDITS:*/
#:10-28-1988-14:33-wht-turn off fcrc for posting to net
#:10-27-1988-13:07-wht-creation (uxlst, renice and /xenix.uxlst)

#handle Sys V make "feature" of using SHELL
SHELL = /bin/sh

LFLAGS = -i -s -M2e 
CFLAGS = -c -O -K -DLINT_ARGS $(LFLAGS)
#FCRC = fcrc -u $*.c ;

.c.o:;	$(FCRC) cc $(CFLAGS) $*.c 

UXLST_OBJ =\
	uxlst.o

RENICE_OBJ =\
	renice.o\
	libkmem.o\
	libuxlst.o

all: uxlst renice /xenix.uxlst

shar:
	shar -v -x README Makefile uxlst.h libuxlst.h libkmem.h > renice.shar.1
	shar -v -x libkmem.c libuxlst.c uxlst.c renice.c > renice.shar.2

uxlst: $(UXLST_OBJ)
	cc $(LFLAGS) $(UXLST_OBJ) -o uxlst

renice: $(RENICE_OBJ)
	cc $(LFLAGS) $(RENICE_OBJ) -o renice
	chmod u+s renice

/xenix.uxlst: uxlst /xenix
	uxlst

clean:
	rm -f $(RENICE_OBJ) $(UXLST_OBJ)

clobber: clean
	rm -f uxlst renice renice.shar.1 renice.shar.2

uxlst.o: uxlst.h
libuxlst.o: uxlst.h libuxlst.h
libkmem.o: libkmem.h
renice.o: uxlst.h libuxlst.h libkmem.h
