From 2ed3ca5f292f801b9ef99b6407fb0dce4caf6a7e Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 18 Jun 1999 22:05:42 +0000 Subject: 1999-06-18 Roland McGrath * init.c [SPLIT_INIT] (child_pid, child_task): New variables. (process_signal, start_child, launch_something, launch_system): New functions. [! SPLIT_INIT] (system_state, shell_pid, rc_pid, launch_single_user, process_rc_script, launch_multi_user, launch_system, kill_everyone, kill_multi_user, process_signal): Variables and functions put inside #ifndef SPLIT_INIT. * stubs.c: New file, modified from ../proc/stubs.c. * Makefile (SRCS): Remove ttys.c here. [$(split-init) = yes] (SRCS): Add stubs.c [$(split-init) = yes] (init-CPPFLAGS): New variable, -DSPLIT_INIT. [$(split-init) = no] (SRCS): Add ttys.c only here. [$(split-init) = no] (LDLIBS): Put defn (-lutil) under this test. (split-init): New variable to turn on split-init, commented out. --- init/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'init/Makefile') diff --git a/init/Makefile b/init/Makefile index efa87c8c..0c020eb7 100644 --- a/init/Makefile +++ b/init/Makefile @@ -18,7 +18,9 @@ dir := init makemode := server -SRCS = init.c ttys.c +split-init=yes + +SRCS = init.c OBJS = $(SRCS:.c=.o) \ startupServer.o notifyServer.o startup_replyUser.o msgServer.o \ startup_notifyUser.o @@ -26,7 +28,13 @@ LCLHDRS = ttys.h target = init HURDLIBS=ports fshelp shouldbeinlibc -LDLIBS=-lutil +ifeq (yes,$(split-init)) +init-CPPFLAGS = -DSPLIT_INIT +SRCS += stubs.c +else +SRCS += ttys.c +LDLIBS = -lutil +endif include ../Makeconf -- cgit v1.2.3