add swifi to the build/install.
[minix.git] / servers / is / Makefile
bloba6af2bbd61befc4da3d87a6b7a75359e624d2132
1 # Makefile for Information Server (IS)
2 SERVER = is
4 include /etc/make.conf
6 # directories
7 u = /usr
8 i = $u/include
9 s = $i/sys
10 m = $i/minix
11 b = $i/ibm
12 k = $u/src/kernel
13 p = $u/src/servers/pm
14 f = $u/src/servers/fs
16 # programs, flags, etc.
17 CC = exec cc
18 CPPFLAGS=-I../../kernel/arch/$(ARCH)/include -I$i
19 CFLAGS = $(CPROFILE) $(CPPFLAGS)
20 LDFLAGS = -i
21 LIBS = -lsys
23 OBJ = main.o dmp.o dmp_kernel.o dmp_pm.o dmp_fs.o dmp_rs.o dmp_ds.o dmp_vm.o
25 # build local binary
26 all build: $(SERVER)
27 $(SERVER): $(OBJ)
28 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
29 # install -S 256w $@
31 # install with other servers
32 install: $(SERVER)
33 install -o root -c $(SERVER) /sbin/$(SERVER)
35 # clean up local files
36 clean:
37 rm -f $(SERVER) *.o *.bak
39 depend:
40 mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend