2005-04-21 16:53:53 +02:00
|
|
|
## $Revision$
|
|
|
|
##
|
|
|
|
## Unix makefile for editline library.
|
|
|
|
##
|
|
|
|
|
2005-10-21 13:19:35 +02:00
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
## Set your options:
|
|
|
|
## -DANSI_ARROWS ANSI arrows keys work like emacs.
|
|
|
|
## -DHAVE_STDLIB Have <stdlib.h>.
|
2005-10-21 13:19:35 +02:00
|
|
|
## -DHAVE_TCGETATTR Have , .
|
2005-04-21 16:53:53 +02:00
|
|
|
## -DHAVE_TERMIO Have "struct termio" and <termio.h>
|
|
|
|
## (If neither of above two, we use <sgttyb.h> and BSD ioctl's)
|
|
|
|
## -DHIDE Make static functions static (non debug).
|
|
|
|
## -DHIST_SIZE=n History size.
|
2005-10-21 13:19:35 +02:00
|
|
|
## -DNEED_STRDUP Don't have .
|
2005-04-21 16:53:53 +02:00
|
|
|
## -DUNIQUE_HISTORY Don't save command if same as last one.
|
|
|
|
## -DUSE_DIRENT Use <dirent.h>, not <sys/dir.h>?
|
|
|
|
## -DUSE_TERMCAP Use the termcap library for terminal size
|
|
|
|
## see LDFLAGS, below, if you set this.
|
2005-10-21 13:19:35 +02:00
|
|
|
## -DNEED_PERROR Don't have (used in testit)
|
2006-01-16 16:44:55 +01:00
|
|
|
DEFS="-DANSI_ARROWS -DHAVE_STDLIB -DHAVE_TCGETATTR -DHIDE -DUSE_DIRENT \
|
|
|
|
-DHIST_SIZE=100 -DUSE_TERMCAP -DSYS_UNIX"
|
2005-10-21 13:19:35 +02:00
|
|
|
#-DNEED_STRDUP
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2006-01-16 16:44:55 +01:00
|
|
|
CFLAGS="-O -D_MINIX -D_POSIX_SOURCE $DEFS -wo"
|
|
|
|
#CC1 = $(CC) $(CFLAGS) -c
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
## If you have -DUSE_TERMCAP, set this as appropriate:
|
|
|
|
#LDFLAGS = -ltermlib
|
|
|
|
#LDFLAGS = -ltermcap
|
|
|
|
|
|
|
|
## End of configuration.
|
|
|
|
|
2006-01-16 16:44:55 +01:00
|
|
|
#SOURCES = editline.c complete.c sysunix.c
|
2005-10-21 13:19:35 +02:00
|
|
|
#LIBRARY = ../libedit.a
|
2006-01-16 16:44:55 +01:00
|
|
|
LIBRARIES=libedit
|
2005-10-21 13:19:35 +02:00
|
|
|
#OBJECTS = editline.o complete.o sysunix.o
|
2006-01-16 16:44:55 +01:00
|
|
|
libedit_FILES="editline.c complete.c sysunix.c"
|
|
|
|
#SHARFILES = README Makefile editline.3 editline.h unix.h editline.c \
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2006-01-16 16:44:55 +01:00
|
|
|
TYPE=both
|
|
|
|
#include ../Makefile.inc
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2006-01-16 16:44:55 +01:00
|
|
|
#$(call ADDDEPENDENCIES,$(libedit_OBJECTS),editline.h)
|