at_wini now calls pci_reserve.
[minix3.git] / servers / sm / Makefile
blob3fa3184ba40be144d0e4b98a07a9792cc0c14e31
1 # Makefile for System Process Manager (SM)
2 SERVER = sm
3 UTIL = service
5 # directories
6 u = /usr
7 i = $u/include
8 s = $i/sys
9 m = $i/minix
10 b = $i/ibm
12 # programs, flags, etc.
13 CC = exec cc
14 CFLAGS = -I$i $(CPROFILE)
15 LDFLAGS = -i
16 UTIL_LIBS = -lsys
17 LIBS = -lsys -lsysutil
19 UTIL_OBJ = service.o
20 OBJ = sm.o manager.o
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)
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 $? $@
36 # clean up local files
37 clean:
38 rm -f $(UTIL) $(SERVER) *.o *.bak
40 depend:
41 /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
43 # Include generated dependencies.
44 include .depend