source: branches/minix3-book/servers/rs/Makefile

Last change on this file was 4, checked in by Mattia Monga, 14 years ago

Importazione sorgenti libro

File size: 823 bytes
RevLine 
[4]1# Makefile for Reincarnation Server (RS)
2SERVER = rs
3UTIL = service
4
5# directories
6u = /usr
7i = $u/include
8s = $i/sys
9m = $i/minix
10b = $i/ibm
11
12# programs, flags, etc.
13CC = exec cc
14CFLAGS = -I$i
15LDFLAGS = -i
16UTIL_LIBS = -lsys
17LIBS = -lsys -lsysutil
18
19UTIL_OBJ = service.o
20OBJ = rs.o manager.o
21
22# build local binary
23all 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
30install: /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
37clean:
38 rm -f $(UTIL) $(SERVER) *.o *.bak
39
40depend:
41 /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
42
43# Include generated dependencies.
44include .depend
45
Note: See TracBrowser for help on using the repository browser.