4a6cd8f878
work for it.
25 lines
554 B
Makefile
25 lines
554 B
Makefile
# Makefile for the process status utility.
|
|
#
|
|
u=/usr
|
|
CC= exec cc
|
|
CFLAGS= -O -D_MINIX -D_POSIX_SOURCE
|
|
MAKE= exec make -$(MAKEFLAGS)
|
|
|
|
all: ps
|
|
|
|
# process status utility
|
|
ps: ps.c /usr/include/minix/config.h /usr/include/minix/const.h \
|
|
../../kernel/const.h ../../kernel/type.h \
|
|
../../kernel/proc.h ../../servers/pm/mproc.h \
|
|
../../servers/fs/fproc.h ../../servers/fs/const.h
|
|
$(CC) -i $(CFLAGS) -o $@ ps.c
|
|
install -S 32kw $@
|
|
install: /usr/bin/ps
|
|
/usr/bin/ps: ps
|
|
install -cs -o root -m 4755 $? $@
|
|
|
|
|
|
|
|
# clean up compile results
|
|
clean:
|
|
rm -f *.bak ps
|