mc/slang/Makefile.in
Norbert Warmuth f807b91600 Tue Apr 13 07:07:36 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* slang/slutty.c (SLsys_getkey): handle EOF on stdin (return
SLANG_GETKEY_ERROR on EOF instead of returning garbage)

* slang/Makefile.in (clean): remove the symbolic link slang.h on the
distclean target and not on the clean target.


Tue Apr 13 07:14:10 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* src/slint.c (getch): Quit MC when SLang_getkey returns an error. Looking
at the code that's only the case when we read EOF from stdin.

This fixes the problem where MC consumes a lot of cpu time while
reading EOF from stdin in a tight loop. This situation arises when the
terminal line/connection drops without MC being sent SIGHUP.


Tue Apr 13 06:07:05 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* configure.in: Some AC_ARG_WITH macros haven't checked $withval, i.e.
--with-PACKAGE and --without-PACKAGE gave the same results.
1999-04-13 19:21:03 +00:00

79 lines
1.5 KiB
Makefile

srcdir = @srcdir@
VPATH = @srcdir@
rootdir = $(srcdir)/..
@MCFG@@MCF@
CFLAGS = $(XCFLAGS)
CPPFLAGS = $(XCPPFLAGS)
LDFLAGS = $(XLDFLAGS)
DEFS = $(XDEFS)
LIBS = $(XLIBS) $(XLIB)
AR = @AR@
SLANGSRCS = sldisply.c slerr.c slsmg.c slutty.c slgetkey.c slmemcpy.c \
slmemset.c sltermin.c sltoken.c slsignal.c \
slvideo.c slw32tty.c slos2tty.c
SLANGHDRS = slang-mc.h _slang.h sl-feat.h jdmacros.h
SLANGOBJS = sldisply.o slerr.o slsmg.o slutty.o \
slgetkey.o slmemcpy.o slmemset.o sltermin.o \
sltoken.o slsignal.o
#
# Distribution variables
#
DISTSLANG = Makefile.in ChangeLog README $(SLANGSRCS) $(SLANGHDRS)
all: @LIBSLANG@
.c.o:
$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
check:
@echo no tests are supplied.
libmcslang.a: $(SLANGOBJS)
$(RMF) $@
$(AR) cr $@ $(SLANGOBJS)
-$(RANLIB) $@
showlibdep:
@echo 'OBJS="$(SLANGOBJS)"'
cross:
$(MAKE) CC=gcc-linux CPP="gcc-linux -E" \
CPPFLAGS="$(CPPFLAGS) -I/usr/local/lib/gcc-lib/i386-linux-linux/include/ncurses "
TAGS: $(SLANGSRCS)
etags $(SLANGSRCS)
clean:
$(RMF) *.o core a.out libmcslang.a
realclean: clean
$(RMF) .depend slang.h
$(RMF) TAGS
$(RMF) *~
distclean:
-$(RMF) $(srcdir)/*~ $(srcdir)/*.o $(srcdir)/core $(srcdir)/a.out
-$(RMF) $(srcdir)/libmcslang.a
-if test $(srcdir) = .; then $(MAKE) realclean; fi
-$(RMF) $(srcdir)/Makefile
distcopy:
$(CP) $(DISTSLANG) ../../mc-$(VERSION)/slang
install uninstall:
depend dep: mcdep
fastdeploc:
# ***Dependencies***Do not edit***
@DOTDEPEND@
# ***End of dependencies***