source: trunk/minix/servers/rs/Makefile@ 22

Last change on this file since 22 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

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