diff options
Diffstat (limited to 'utils/Makefile')
-rw-r--r-- | utils/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
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 |