add/re-enable at_wini debug output
[minix3.git] / servers / init / Makefile
blob7eb05c74cef55f12d5d54c09918bedfb0589ee87
1 # Makefile for the init program (INIT)
2 SERVER = init
4 # directories
5 u = /usr
6 i = $u/include
7 s = $i/sys
8 h = $i/minix
9 k = $u/src/kernel
11 # programs, flags, etc.
12 CC = exec cc
13 CFLAGS = -I$i -O -D_MINIX -D_POSIX_SOURCE
14 LDFLAGS = -i
16 OBJ = init.o
18 # build local binary
19 all build: $(SERVER)
20 $(SERVER): $(OBJ)
21 $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(OBJ) -lsysutil
22 install -S 8k $@
24 # install with other servers
25 install: /usr/sbin/$(SERVER)
26 /usr/sbin/$(SERVER): $(SERVER)
27 install -o root -cs $? $@
29 # clean up local files
30 clean:
31 rm -f $(SERVER) *.o *.bak
33 depend:
34 mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
36 # Include generated dependencies.
37 include .depend