port of netbsd's tr
[minix.git] / commands / ps / Makefile
blob77b29ce75d5a61097c54219c16f5dc8c72c61acc
1 # Makefile for the process status utility.
3 u=/usr
4 CC= exec cc
5 CFLAGS= -O -D_MINIX -D_POSIX_SOURCE
6 MAKE= exec make -$(MAKEFLAGS)
8 all: ps
10 # process status utility
11 ps: ps.c /usr/include/minix/config.h /usr/include/minix/const.h \
12 ../../kernel/const.h ../../kernel/type.h \
13 ../../kernel/proc.h ../../servers/pm/mproc.h \
14 ../../servers/vfs/fproc.h ../../servers/mfs/const.h
15 $(CC) -i $(CFLAGS) -o $@ ps.c
16 install -S 32kw $@
17 install: /usr/bin/ps
18 /usr/bin/ps: ps
19 install -cs -o root -m 4755 $? $@
23 # clean up compile results
24 clean:
25 rm -f *.bak ps