From 7fdb626470facba99422511754f0e6be11c7f81c Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 22 Aug 2002 21:25:04 +0000 Subject: 2002-08-22 Marcus Brinkmann * aclocal.m4 (hurd_LIB_NCURSESW): New test, modified from GNU inetutils 1.4.0. * configure.in: Use hurd_LIB_NCURSESW. * config.make.in (LIBNCURSESW): New variable, substituted by configure. (NCURSESW_INCLUDE): Likewise. * Makefile (lib-subdirs): Add libcons. (prog-subdirs): Add console. console/ 2002-08-22 Marcus Brinkmann * console.h: Move file to ../hurd/. * Makefile (LCLHDRS): Remove console.h. * display.c: Include instead "console.h". * console.c: Likewise. hurd/ 2002-08-22 Marcus Brinkmann * console.h: Move here from ../console/. * Makefile (INSTHDRS): Add console.h. utils/ 2002-08-22 Marcus Brinkmann * Makefile: Include `../config.make' early on to get LIBNCURSESW variable from configure before including Makeconf. (targets) [LIBNCURSES]: Add console-ncurses. (SRCS) [LIBNCURSES]: Add console-ncurses.c. (HURDLIBS) [LIBNCURSES]: Add cons. (console-ncurses): New target. (console-ncurses-CPPFLAGS): New variable. (console-ncurses-LDLIBS): Likewise. --- utils/ChangeLog | 11 +++++++++++ utils/Makefile | 15 +++++++++++++++ 2 files changed, 26 insertions(+) (limited to 'utils') diff --git a/utils/ChangeLog b/utils/ChangeLog index fb5a8db9..be04d8f2 100644 --- a/utils/ChangeLog +++ b/utils/ChangeLog @@ -1,3 +1,14 @@ +2002-08-22 Marcus Brinkmann + + * Makefile: Include `../config.make' early on to get LIBNCURSESW + variable from configure before including Makeconf. + (targets) [LIBNCURSES]: Add console-ncurses. + (SRCS) [LIBNCURSES]: Add console-ncurses.c. + (HURDLIBS) [LIBNCURSES]: Add cons. + (console-ncurses): New target. + (console-ncurses-CPPFLAGS): New variable. + (console-ncurses-LDLIBS): Likewise. + 2002-08-18 Roland McGrath * fakeroot.sh: Dont use "exec" command, since the original script diff --git a/utils/Makefile b/utils/Makefile index 06ef9bf2..3b2c12d7 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -18,6 +18,8 @@ dir := utils makemode := utilities +include ../config.make + targets = shd ps settrans showtrans syncfs fsysopts \ storeinfo login w uptime ids loginpr sush vmstat portinfo \ devprobe vminfo addauth rmauth unsu setauth ftpcp ftpdir storecat \ @@ -31,8 +33,16 @@ SRCS = shd.c ps.c settrans.c syncfs.c showtrans.c addauth.c rmauth.c \ rpctrace.c mount.c gcore.c fakeauth.c fakeroot.sh LCLHDRS = psout.h parse.h pids.h frobauth.h +ifneq ($(LIBNCURSESW),) +targets += console-ncurses +SRCS += console-ncurses.c +endif + OBJS = $(filter-out %.sh,$(SRCS:.c=.o)) HURDLIBS = ps ihash store fshelp threads ports ftpconn shouldbeinlibc +ifneq ($(LIBNCURSESW),) +HURDLIBS += cons +endif login-LDLIBS = -lutil $(LIBCRYPT) addauth-LDLIBS = $(LIBCRYPT) setauth-LDLIBS = $(LIBCRYPT) @@ -75,6 +85,11 @@ fakeauth-CPPFLAGS = -I$(srcdir)/../auth authServer-CPPFLAGS = -I$(srcdir)/../auth auth_requestUser-CPPFLAGS = -I$(srcdir)/../auth +console-ncurses: ../libcons/libcons.a ../libports/libports.a \ + ../libthreads/libthreads.a +console-ncurses-CPPFLAGS = $(NCURSESW_INCLUDE) +console-ncurses-LDLIBS = $(LIBNCURSESW) + mount: ../sutils/fstab.o ../sutils/clookup.o \ $(foreach L,fshelp ports,../lib$L/lib$L.a) ../sutils/fstab.o ../sutils/clookup.o: FORCE -- cgit v1.2.3