Line | |
---|
1 | # Makefile for Data Store Server (DS)
|
---|
2 | SERVER = ds
|
---|
3 |
|
---|
4 | # directories
|
---|
5 | u = /usr
|
---|
6 | i = $u/include
|
---|
7 | s = $i/sys
|
---|
8 | m = $i/minix
|
---|
9 | b = $i/ibm
|
---|
10 | k = $u/src/kernel
|
---|
11 | p = $u/src/servers/pm
|
---|
12 | f = $u/src/servers/fs
|
---|
13 |
|
---|
14 | # programs, flags, etc.
|
---|
15 | CC = exec cc
|
---|
16 | CFLAGS = -I$i
|
---|
17 | LDFLAGS = -i
|
---|
18 | LIBS = -lsys -lsysutil
|
---|
19 |
|
---|
20 | OBJ = main.o store.o
|
---|
21 |
|
---|
22 | # build local binary
|
---|
23 | all build: $(SERVER)
|
---|
24 | $(SERVER): $(OBJ)
|
---|
25 | $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
---|
26 | install -S 16k $@
|
---|
27 |
|
---|
28 | # install with other servers
|
---|
29 | install: $(SERVER)
|
---|
30 | install -o root -c $? /sbin/$(SERVER)
|
---|
31 | # install -o root -cs $? $@
|
---|
32 |
|
---|
33 | # clean up local files
|
---|
34 | clean:
|
---|
35 | rm -f $(SERVER) *.o *.bak
|
---|
36 |
|
---|
37 | depend:
|
---|
38 | /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
---|
39 |
|
---|
40 | # Include generated dependencies.
|
---|
41 | include .depend
|
---|
42 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.