Last change
on this file since 26 was 4, checked in by Mattia Monga, 14 years ago |
Importazione sorgenti libro
|
File size:
823 bytes
|
Line | |
---|
1 | # Makefile for Reincarnation Server (RS)
|
---|
2 | SERVER = rs
|
---|
3 | UTIL = service
|
---|
4 |
|
---|
5 | # directories
|
---|
6 | u = /usr
|
---|
7 | i = $u/include
|
---|
8 | s = $i/sys
|
---|
9 | m = $i/minix
|
---|
10 | b = $i/ibm
|
---|
11 |
|
---|
12 | # programs, flags, etc.
|
---|
13 | CC = exec cc
|
---|
14 | CFLAGS = -I$i
|
---|
15 | LDFLAGS = -i
|
---|
16 | UTIL_LIBS = -lsys
|
---|
17 | LIBS = -lsys -lsysutil
|
---|
18 |
|
---|
19 | UTIL_OBJ = service.o
|
---|
20 | OBJ = rs.o manager.o
|
---|
21 |
|
---|
22 | # build local binary
|
---|
23 | all build: $(SERVER) $(UTIL)
|
---|
24 | $(UTIL): $(UTIL_OBJ)
|
---|
25 | $(CC) -o $@ $(LDFLAGS) $(UTIL_OBJ) $(UTIL_LIBS)
|
---|
26 | $(SERVER): $(OBJ)
|
---|
27 | $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
---|
28 |
|
---|
29 | # install with other servers
|
---|
30 | install: /bin/$(UTIL) /usr/sbin/$(SERVER)
|
---|
31 | /bin/$(UTIL): $(UTIL)
|
---|
32 | install -c $? $@
|
---|
33 | /usr/sbin/$(SERVER): $(SERVER)
|
---|
34 | install -o root -c $? $@
|
---|
35 |
|
---|
36 | # clean up local files
|
---|
37 | clean:
|
---|
38 | rm -f $(UTIL) $(SERVER) *.o *.bak
|
---|
39 |
|
---|
40 | depend:
|
---|
41 | /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
---|
42 |
|
---|
43 | # Include generated dependencies.
|
---|
44 | include .depend
|
---|
45 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.