Last change
on this file was 4, checked in by Mattia Monga, 14 years ago |
Importazione sorgenti libro
|
File size:
741 bytes
|
Line | |
---|
1 | # Makefile for Process Manager (PM)
|
---|
2 | SERVER = pm
|
---|
3 |
|
---|
4 | # directories
|
---|
5 | u = /usr
|
---|
6 | i = $u/include
|
---|
7 | s = $i/sys
|
---|
8 | h = $i/minix
|
---|
9 | k = $u/src/kernel
|
---|
10 |
|
---|
11 | # programs, flags, etc.
|
---|
12 | CC = exec cc
|
---|
13 | CFLAGS = -I$i
|
---|
14 | LDFLAGS = -i
|
---|
15 |
|
---|
16 | OBJ = main.o forkexit.o break.o exec.o time.o timers.o \
|
---|
17 | signal.o alloc.o utility.o table.o trace.o getset.o misc.o
|
---|
18 |
|
---|
19 | # build local binary
|
---|
20 | all build: $(SERVER)
|
---|
21 | $(SERVER): $(OBJ)
|
---|
22 | $(CC) -o $@ $(LDFLAGS) $(OBJ) -lsys -lsysutil -ltimers
|
---|
23 | install -S 256w $@
|
---|
24 |
|
---|
25 | # install with other servers
|
---|
26 | install: /usr/sbin/$(SERVER)
|
---|
27 | /usr/sbin/$(SERVER): $(SERVER)
|
---|
28 | install -o root -cs $? $@
|
---|
29 |
|
---|
30 | # clean up local files
|
---|
31 | clean:
|
---|
32 | rm -f $(SERVER) *.o *.bak
|
---|
33 |
|
---|
34 | depend:
|
---|
35 | /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
---|
36 |
|
---|
37 | # Include generated dependencies.
|
---|
38 | include .depend
|
---|
39 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.