home *** CD-ROM | disk | FTP | other *** search
/ Computer Club Elmshorn Atari PD / CCE_PD.iso / pc / 0600 / CCE_0638.ZIP / CCE_0638 / UPDATE / UPDATE29.ZOO / editline / Make.stm < prev    next >
Text File  |  1993-03-28  |  2KB  |  62 lines

  1. ##  $Revision: 1.1 $
  2. ##
  3. ##  atari makefile for editline library.
  4. ##
  5.  
  6. ##  Set your options:
  7. ##    -DHAVE_STDLIB        Have <stdlib.h>.
  8. ##    -DHIDE            Make static functions static (non debug).
  9. ##    -DHIST_SIZE=n        History size.
  10. ##    -DUNIQUE_HISTORY    Don't save command if same as last one.
  11. ##    -DUSE_TERMCAP        Use the termcap library for terminal size
  12. ##                see LDFLAGS, below, if you set this.
  13. DEFS    = -DHAVE_STDLIB -DHIDE -DUSE_TERMCAP
  14.  
  15. ##  Set your C compiler:
  16. #WARN    = -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings \
  17. #    -Wunused -Wcomment -Wswitch
  18. CC    = cgcc $(WARN) -mint -mbaserel -mpcrel
  19. #CC    = cc
  20. CFLAGS    = $(DEFS) -O2 -fomit-frame-pointer -fstrength-reduce
  21.  
  22. ##  If you have -DUSE_TERMCAP, set this as appropriate:
  23. LDFLAGS = -lbmtermcap
  24. #LDFLAGS = -ltermcap
  25.  
  26. ##  Set ranlib as appropriate:
  27. #RANLIB    = ranlib
  28. RANLIB    = echo
  29.  
  30. ##  End of configuration.
  31.  
  32. SOURCES    = editline.c complete.c sysatari.c
  33. OBJECTS    = editline.o complete.o sysatari.o
  34. SHARFILES =    README Makefile editline.3 editline.h unix.h editline.c \
  35.         complete.c sysunix.c testit.c \
  36.         Make.os9 os9.h sysos9.c \
  37.         Make.st atarist.h sysatari.c
  38.  
  39. all:        bmlibedit.olb
  40.  
  41. testit:        testit.c bmlibedit.olb
  42.     $(CC) $(CFLAGS) -o testit testit.c bmlibedit.olb $(LDFLAGS)
  43.  
  44. shar:        $(SHARFILES)
  45.     shar $(SHARFILES) >shar
  46.  
  47. clean:
  48.     rm -f *.[oa] *.olb testit foo core tags lint lint.all a.out shar
  49.  
  50. lint:        testit
  51.     lint -a -b -u -x $(DEFS) $(SOURCES) testit.c >lint.all
  52.     sed -e '/warning: function prototype not in scope/d' \
  53.         -e '/warning: old style argument declaration/'d \
  54.         -e '/mix of old and new style function declaration/'d \
  55.         <lint.all >lint
  56.  
  57. bmlibedit.olb:    $(OBJECTS)
  58.     @rm -f $@
  59.     car rs $@ $(OBJECTS)
  60.  
  61. $(OBJECTS):    editline.h
  62.