#   depend - Updates dependency list for rebuilding.
#   all    - Compiles, links, creates executable.
#   clean  - Deletes object and executable files.
# 
#	Trouble compiling:  Try changing cc to your preferred compiler (gcc, icc, distcc, etc.)


BINDIR = /usr/local/bin
CCC = cc

HDR = common.h psinfo.h output.h
SRC = main.c output.c psinfo.c common.c
EXE = pscpug
LIBS = -lcurses


# You shouldn't have to modify beyond here, unless I
# really screwed something up.
######################################################################

OBJ = ${SRC:.c=.o}

all : ${EXE}

${EXE} : ${OBJ}
	${CCC} ${LIBS} -g -Wall -o $@ ${OBJ}

install :
	-install -c -o root -g wheel -m 755 ${EXE} ${BINDIR}

clean :
	-rm -f ${OBJ} ${EXE} ${SUB}.tar.gz *~

.SUFFIXES : .o .c

.c.o:
	${CCC} -g -Wall -c $<

depend: 
	${CCC} -E -MM ${SRC} > depends

depends:
	touch depends

include depends
