. service tells you which device it couldn't stat
[minix3.git] / servers / rs / Makefile
blob94f466551e90e057c1e369eacf9716c22ebb20d0
1 # Makefile for Reincarnation Server (RS)
2 SERVER = rs
3 UTIL = service
5 include /etc/make.conf
7 # directories
8 u = /usr
9 i = $u/include
10 s = $i/sys
11 m = $i/minix
12 b = $i/ibm
14 # programs, flags, etc.
15 CC = exec cc
16 CPPFLAGS = -I../../kernel/arch/$(ARCH)/include
17 CFLAGS = -I$i $(CPROFILE) $(CPPFLAGS)
18 LDFLAGS = -i
19 LIBS = -lsys -lsysutil
21 UTIL_OBJ = service.o
22 OBJ = exec.o main.o manager.o
24 # build local binary
25 all build: $(SERVER) $(UTIL)
26 $(UTIL): $(UTIL_OBJ)
27 $(CC) -o $@ $(LDFLAGS) $(UTIL_OBJ) $(UTIL_LIBS)
28 $(SERVER): $(OBJ)
29 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
30 install -S 120k $@
32 # install with other servers
33 install: /bin/$(UTIL) /usr/sbin/$(SERVER)
34 /bin/$(UTIL): $(UTIL)
35 install -c $? $@
36 /usr/sbin/$(SERVER): $(SERVER)
37 install -o root -c $? $@
39 # clean up local files
40 clean:
41 rm -f $(UTIL) $(SERVER) *.o *.bak
43 depend:
44 mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
46 # Include generated dependencies.
47 include .depend