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 = main.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 | install -S 16k $@
|
---|
29 |
|
---|
30 | # install with other servers
|
---|
31 | install: /bin/$(UTIL) /usr/sbin/$(SERVER)
|
---|
32 | /bin/$(UTIL): $(UTIL)
|
---|
33 | install -c $? $@
|
---|
34 | /usr/sbin/$(SERVER): $(SERVER)
|
---|
35 | install -o root -c $? $@
|
---|
36 |
|
---|
37 | # clean up local files
|
---|
38 | clean:
|
---|
39 | rm -f $(UTIL) $(SERVER) *.o *.bak
|
---|
40 |
|
---|
41 | depend:
|
---|
42 | /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
---|
43 |
|
---|
44 | # Include generated dependencies.
|
---|
45 | include .depend
|
---|
46 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.