home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-06-05 | 1.2 KB | 38 lines |
- # (Makefile for readline and history libraries.)
- # (Hacked together by Dave Gymer 05 Jun 91 (dpg@Cs.Nott.AC.UK))
- # (This worked for me (I think...). If not for you, tell me how you
- # managed to get it to, or ask me what could be wrong (lots of detail,
- # please)) (I love those nested brackets! :-)
-
- # Define TYPES as -DVOID_SIGHANDLER if your operating system uses
- # a return type of "void" for signal handlers. (MiNT does.)
- TYPES = -DVOID_SIGHANDLER
-
- CFLAGS = -O -fomit-frame-pointer -fcombine-regs $(TYPES)
-
- # (Come on, FSF, get ANSIfied!)
- CC = gcc -traditional
- AR = gcc-ar
- RM = rm
- CP = cp
-
- ##########################################################################
-
- all: readline.olb
-
- readline.olb: readline.o history.o funmap.o keymaps.o
- $(RM) -f readline.olb
- $(AR) rs readline.olb readline.o history.o funmap.o keymaps.o
-
- readline.o: readline.h chardefs.h keymaps.h history.h readline.c
- history.o: history.c history.h
- funmap.o: readline.h
- keymaps.o: emacs_keymap.c keymaps.h chardefs.h keymaps.c
-
- readline.ttp: readline.c history.o keymaps.o funmap.o readline.h chardefs.h
- $(CC) -DTEST -o readline.ttp \
- readline.c funmap.o keymaps.o history.o -ltermcap
-
- clean:
- $(RM) -f *.o *.olb *.ttp
-