2005-04-21 16:53:53 +02:00
|
|
|
# Makefile for the init program (INIT)
|
|
|
|
SERVER = init
|
|
|
|
|
|
|
|
# directories
|
|
|
|
u = /usr
|
|
|
|
i = $u/include
|
|
|
|
s = $i/sys
|
|
|
|
h = $i/minix
|
|
|
|
k = $u/src/kernel
|
|
|
|
|
|
|
|
# programs, flags, etc.
|
|
|
|
CC = exec cc
|
|
|
|
CFLAGS = -I$i -O -D_MINIX -D_POSIX_SOURCE
|
|
|
|
LDFLAGS = -i
|
|
|
|
|
|
|
|
OBJ = init.o
|
|
|
|
|
|
|
|
# build local binary
|
|
|
|
all build: $(SERVER)
|
|
|
|
$(SERVER): $(OBJ)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(OBJ) -lutils
|
|
|
|
install -S 192w $@
|
|
|
|
|
|
|
|
# install with other servers
|
2005-07-19 14:11:11 +02:00
|
|
|
install: /usr/sbin/$(SERVER)
|
|
|
|
/usr/sbin/$(SERVER): $(SERVER)
|
2005-04-21 16:53:53 +02:00
|
|
|
install -o root -cs $? $@
|
|
|
|
|
|
|
|
# clean up local files
|
|
|
|
clean:
|
|
|
|
rm -f $(SERVER) *.o *.bak
|
|
|
|
|
2005-06-24 18:21:21 +02:00
|
|
|
depend:
|
|
|
|
/usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
|
|
|
|
|
|
|
# Include generated dependencies.
|
|
|
|
include .depend
|
2005-04-21 16:53:53 +02:00
|
|
|
|