Last change
on this file since 9 was 4, checked in by Mattia Monga, 14 years ago |
Importazione sorgenti libro
|
File size:
665 bytes
|
Line | |
---|
1 | # Makefile for the init program (INIT)
|
---|
2 | SERVER = init
|
---|
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 -O -D_MINIX -D_POSIX_SOURCE
|
---|
14 | LDFLAGS = -i
|
---|
15 |
|
---|
16 | OBJ = init.o
|
---|
17 |
|
---|
18 | # build local binary
|
---|
19 | all build: $(SERVER)
|
---|
20 | $(SERVER): $(OBJ)
|
---|
21 | $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(OBJ) -lsysutil
|
---|
22 | install -S 192w $@
|
---|
23 |
|
---|
24 | # install with other servers
|
---|
25 | install: /usr/sbin/$(SERVER)
|
---|
26 | /usr/sbin/$(SERVER): $(SERVER)
|
---|
27 | install -o root -cs $? $@
|
---|
28 |
|
---|
29 | # clean up local files
|
---|
30 | clean:
|
---|
31 | rm -f $(SERVER) *.o *.bak
|
---|
32 |
|
---|
33 | depend:
|
---|
34 | /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
---|
35 |
|
---|
36 | # Include generated dependencies.
|
---|
37 | include .depend
|
---|
38 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.