summaryrefslogtreecommitdiff
path: root/init/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-06-18 22:05:42 +0000
committerRoland McGrath <roland@gnu.org>1999-06-18 22:05:42 +0000
commit2ed3ca5f292f801b9ef99b6407fb0dce4caf6a7e (patch)
treef4b1318597e8d0743d5b57c33eb14b0cce596729 /init/Makefile
parent5e8517e836901c6d1c0f780fef539755e736ecb0 (diff)
1999-06-18 Roland McGrath <roland@baalperazim.frob.com>
* 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.
Diffstat (limited to 'init/Makefile')
-rw-r--r--init/Makefile12
1 files changed, 10 insertions, 2 deletions
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