2005-05-03 17:35:52 +02:00
|
|
|
# Makefile for Process Manager (PM)
|
|
|
|
SERVER = pm
|
|
|
|
|
|
|
|
# directories
|
|
|
|
u = /usr
|
|
|
|
i = $u/include
|
|
|
|
s = $i/sys
|
|
|
|
h = $i/minix
|
|
|
|
k = $u/src/kernel
|
|
|
|
|
|
|
|
# programs, flags, etc.
|
|
|
|
CC = exec cc
|
|
|
|
CFLAGS = -I$i
|
|
|
|
LDFLAGS = -i
|
|
|
|
|
2005-07-14 17:16:12 +02:00
|
|
|
OBJ = main.o forkexit.o break.o exec.o time.o timers.o \
|
2005-05-03 17:35:52 +02:00
|
|
|
signal.o alloc.o utility.o table.o trace.o getset.o misc.o
|
|
|
|
|
|
|
|
# build local binary
|
|
|
|
all build: $(SERVER)
|
|
|
|
$(SERVER): $(OBJ)
|
2005-07-14 17:16:12 +02:00
|
|
|
$(CC) -o $@ $(LDFLAGS) $(OBJ) -lsys -lutils -ltimers
|
2005-05-03 17:35:52 +02:00
|
|
|
install -S 256w $@
|
|
|
|
|
|
|
|
# install with other servers
|
2005-07-19 14:11:11 +02:00
|
|
|
install: /usr/sbin/$(SERVER)
|
|
|
|
/usr/sbin/$(SERVER): $(SERVER)
|
2005-05-03 17:35:52 +02:00
|
|
|
install -o root -cs $? $@
|
|
|
|
|
|
|
|
# clean up local files
|
|
|
|
clean:
|
|
|
|
rm -f $(SERVER) *.o *.bak
|
|
|
|
|
2005-06-24 18:21:21 +02:00
|
|
|
depend:
|
|
|
|
/usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
2005-05-03 17:35:52 +02:00
|
|
|
|
2005-06-24 18:21:21 +02:00
|
|
|
# Include generated dependencies.
|
|
|
|
include .depend
|
2005-05-13 10:57:08 +02:00
|
|
|
|