home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume23
/
sps2
/
part03
/
Make.ultrix3
< prev
next >
Wrap
Text File
|
1991-01-08
|
995b
|
39 lines
# Makefile for SPS (Ultrix 2.0 UNIX Version)
PROG = sps
OBJS = filecount.o findtty.o flagdecode.o flagsetup.o \
getcmd.o getupage.o globals1.o globals2.o hashuid.o \
initialise.o initsymbols.o inittty.o main.o mktree.o \
needed.o openfiles.o percentmem.o prcmd.o prcpu.o \
prheader.o printall.o printproc.o prsummary.o readstatus.o \
selectproc.o selecttty.o termwidth.o ttystatus.o waitingfor.o
INCS = sps.h
CC = cc
CFLAGS = -DBSD42 -DULTRIX20 -DULTRIX30 -DVPRINTF -I/sys
LIBS = -ltermlib
DIRINSTALL = /bin
all: $(PROG)
.c.o:
$(CC) $(CFLAGS) -c -O -R $<
globals1.o waitingfor.o:
$(CC) $(CFLAGS) -c -O $<
$(OBJS): $(INCS)
$(PROG): $(OBJS)
$(CC) -o $@ $(OBJS) $(LIBS)
install: $(PROG)
strip $(PROG)
mv $(PROG) $(DIRINSTALL)/$(PROG)
/etc/chown root $(DIRINSTALL)/$(PROG)
chgrp kmem $(DIRINSTALL)/$(PROG)
chmod 2755 $(DIRINSTALL)/$(PROG)
lint:
lint -x -b $(CFLAGS) *.c
clean:
rm -f $(OBJS) $(PROG)