home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
GNU_ATP_1_40.lzh
/
EDITLINE
/
makefile.djd
< prev
next >
Wrap
Makefile
|
1993-05-01
|
2KB
|
149 lines
## $Revision: 1.3 $
##
## Makefile for D.J. Delorie GCC for MS-DOS for editline library.
##
## Set your options:
## -DANSI_ARROWS ANSI arrows keys work like emacs.
## -DHAVE_STDLIB Have <stdlib.h>.
## -DHAVE_TCGETATTR Have tcgetattr(), tcsetattr().
## -DHIDE Make static functions static (non debug).
## -DHIST_SIZE=n History size.
## -DNEED_STRDUP Don't have strdup().
## -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.
## -DNEED_PERROR Don't have perror() (used in testit)
DEFS = -DANSI_ARROWS -DHIDE -DHAVE_STDLIB -DSYS_UNIX\
-DUSE_DIRENT -DHIST_SIZE=25 -DUNIQUE_HISTORY
## Set your C compiler:
#WARN = -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings \
# -Wunused -Wcomment -Wswitch
#CC = gcc $(WARN)
CC = gcc
CFLAGS = $(DEFS) -O -DDJD
## If you have -DUSE_TERMCAP, set this as appropriate:
#LDFLAGS = -ltermlib
#LDFLAGS = -ltermcap
## Set ranlib as appropriate:
#RANLIB = ranlib
RANLIB = echo
## End of configuration.
SOURCES = editline.c complete.c sysdos.c getch.s
OBJECTS = editline.o complete.o sysdos.o getch.o
.c.o:
$(CC) -c $(CFLAGS) $*.c
.s.o:
$(CC) -c $(CFLAGS) $*.s
all: libedit.a
testit: testit.o libedit.a
$(CC) -o testit testit.o libedit.a $(LDFLAGS)
strip testit
copy /b \usr\gcc\bin\go32.exe + testit testit.exe
shar: $(SHARFILES)
shar $(SHARFILES) >shar
clean:
del *.o
del *.a
lint: testit
lint -a -b -u -x $(DEFS) $(SOURCES) testit.c >lint.all
sed -e '/warning: function prototype not in scope/d' \
-e '/warning: old style argument declaration/'d \
-e '/mix of old and new style function declaration/'d \
<lint.all >lint
libedit.a: $(OBJECTS)
@del libedit.a
ar r libedit.a $(OBJECTS)
$(RANLIB) libedit.a
$(OBJECTS): editline.h