source: trunk/minix/servers/sm/Makefile@ 9

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

Minix 3.1.2a

File size: 825 bytes
Line 
1# Makefile for System Process Manager (SM)
2SERVER = sm
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 = sm.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.