. service tells you which device it couldn't stat
[minix3.git] / servers / pm / Makefile
blobc6343e89a1642f8ce10e9d85155294ea09dff79f
1 # Makefile for Process Manager (PM)
2 SERVER = pm
4 include /etc/make.conf
6 # directories
7 u = /usr
8 i = $u/include
9 s = $i/sys
10 h = $i/minix
11 k = $u/src/kernel
13 # programs, flags, etc.
14 CC = exec cc
15 CPPFLAGS=-I../../kernel/arch/$(ARCH)/include -I$i
16 CFLAGS = $(CPROFILE) $(CPPFLAGS)
17 LDFLAGS = -i
19 OBJ = main.o forkexit.o break.o exec.o time.o timers.o \
20 signal.o alloc.o utility.o table.o trace.o getset.o misc.o \
21 profile.o
23 # build local binary
24 all build: $(SERVER)
25 $(SERVER): $(OBJ)
26 $(CC) -o $@ $(LDFLAGS) $(OBJ) -lsysutil -lsys -ltimers
27 install -S 8k $@
29 # install with other servers
30 install: /usr/sbin/$(SERVER)
31 /usr/sbin/$(SERVER): $(SERVER)
32 install -o root -cs $? $@
34 # clean up local files
35 clean:
36 rm -f $(SERVER) *.o *.bak
38 depend:
39 mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
41 # Include generated dependencies.
42 include .depend