home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / shells / bashsrc.zoo / readline / makefile.st < prev    next >
Encoding:
Makefile  |  1991-06-05  |  1.2 KB  |  38 lines

  1. # (Makefile for readline and history libraries.)
  2. # (Hacked together by Dave Gymer 05 Jun 91 (dpg@Cs.Nott.AC.UK))
  3. # (This worked for me (I think...). If not for you, tell me how you
  4. # managed to get it to, or ask me what could be wrong (lots of detail,
  5. # please)) (I love those nested brackets! :-)
  6.  
  7. # Define TYPES as -DVOID_SIGHANDLER if your operating system uses
  8. # a return type of "void" for signal handlers. (MiNT does.)
  9. TYPES = -DVOID_SIGHANDLER
  10.  
  11. CFLAGS = -O -fomit-frame-pointer -fcombine-regs $(TYPES)
  12.  
  13. # (Come on, FSF, get ANSIfied!)
  14. CC = gcc -traditional
  15. AR = gcc-ar
  16. RM = rm
  17. CP = cp
  18.  
  19. ##########################################################################
  20.  
  21. all: readline.olb
  22.  
  23. readline.olb:    readline.o history.o funmap.o keymaps.o
  24.         $(RM) -f readline.olb
  25.         $(AR) rs readline.olb readline.o history.o funmap.o keymaps.o
  26.  
  27. readline.o:    readline.h chardefs.h keymaps.h history.h readline.c
  28. history.o:    history.c history.h
  29. funmap.o:    readline.h
  30. keymaps.o:    emacs_keymap.c keymaps.h chardefs.h keymaps.c
  31.  
  32. readline.ttp: readline.c history.o keymaps.o funmap.o readline.h chardefs.h
  33.     $(CC) -DTEST -o readline.ttp \
  34.         readline.c funmap.o keymaps.o history.o -ltermcap
  35.  
  36. clean:
  37.         $(RM) -f *.o *.olb *.ttp
  38.