xref: /minix/lib/libedit/Makefile (revision 58a2b000)
1##  $Revision$
2##
3##  Unix makefile for editline library.
4##
5
6LIB=		edit
7
8##  Set your options:
9##	-DANSI_ARROWS		ANSI arrows keys work like emacs.
10##	-DHAVE_STDLIB		Have <stdlib.h>.
11##	-DHAVE_TCGETATTR	Have , .
12##	-DHAVE_TERMIO		Have "struct termio" and <termio.h>
13##	(If neither of above two, we use <sgttyb.h> and BSD ioctl's)
14##	-DHIDE			Make static functions static (non debug).
15##	-DHIST_SIZE=n		History size.
16##	-DNEED_STRDUP		Don't have .
17##	-DUNIQUE_HISTORY	Don't save command if same as last one.
18##	-DUSE_DIRENT		Use <dirent.h>, not <sys/dir.h>?
19##	-DUSE_TERMCAP		Use the termcap library for terminal size
20##				see LDFLAGS, below, if you set this.
21##	-DNEED_PERROR		Don't have  (used in testit)
22CPPFLAGS+=-DANSI_ARROWS -DHAVE_STDLIB -DHAVE_TCGETATTR -DHIDE -DUSE_DIRENT \
23	-DHIST_SIZE=100 -DUSE_TERMCAP -DSYS_UNIX
24
25SRCS=	editline.c complete.c sysunix.c
26
27.include <bsd.lib.mk>
28