home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / pub / unix / pine4.10.tar.gz / pine4.10.tar / pine4.10 / pico / makefile.mnt < prev    next >
Makefile  |  1998-02-27  |  3KB  |  97 lines

  1. # $Id: makefile.mnt,v 1.2 1998/02/28 00:10:21 hubert Exp $
  2. #
  3. #   Michael Seibel
  4. #   Networks and Distributed Computing
  5. #   Computing and Communications
  6. #   University of Washington
  7. #   Administration Builiding, AG-44
  8. #   Seattle, Washington, 98195, USA
  9. #   Internet: mikes@cac.washington.edu
  10. #
  11. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  12. #
  13. #
  14. #   Pine and Pico are registered trademarks of the University of Washington.
  15. #   No commercial use of these trademarks may be made without prior written
  16. #   permission of the University of Washington.
  17. #
  18. #   Pine, Pico, and Pilot software and its included text are Copyright
  19. #   1989-1998 by the University of Washington.
  20. #
  21. #   The full text of our legal notices is contained in the file called
  22. #   CPYRIGHT, included with this distribution.
  23. #
  24.  
  25. #
  26. # Makefile for Linux version of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29. #    NOTE:  We are told that it may be advantageous to use the -q flag
  30. #           when running pico or pilot on a Linux console, and to turn on the
  31. #           feature "termdef-takes-precedence" when running pine. That
  32. #           feature doesn't show up in the Config screen, you need to turn
  33. #           it on in the pine.conf file or by editing the .pinerc file.
  34. #
  35.  
  36. RM=    rm -f
  37. LN=    ln -s
  38. MAKE=    make
  39.  
  40. #includes symbol info for debugging 
  41. DASHO=        -g
  42. #for normal build
  43. #DASHO=        -O2
  44.  
  45. STDCFLAGS=    -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE
  46. CFLAGS=        $(EXTRACFLAGS) $(DASHO) $(STDCFLAGS)
  47.  
  48. # switches for library building
  49. LIBCMD=        ar
  50. LIBARGS=    ru
  51. RANLIB=        ranlib
  52.  
  53. LIBS=        $(EXTRALIBES) -ltermcap
  54.  
  55. OFILES=        attach.o basic.o bind.o browse.o buffer.o \
  56.         composer.o display.o file.o fileio.o line.o pico_os.o \
  57.         pico.o random.o region.o search.o \
  58.         window.o word.o
  59.  
  60. HFILES=        headers.h estruct.h edef.h efunc.h pico.h os.h
  61.  
  62. #
  63. # dependencies for the Unix versions of pico and libpico.a
  64. #
  65. all:        pico pilot
  66. pico pilot:    libpico.a
  67.  
  68. pico:        main.o
  69.         $(CC) $(CFLAGS) main.o libpico.a $(LIBS) -o pico
  70.  
  71. pilot:        pilot.o
  72.         $(CC) $(CFLAGS) pilot.o libpico.a $(LIBS) -o pilot
  73.  
  74. libpico.a:    $(OFILES)
  75.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  76.         $(RANLIB) libpico.a
  77.  
  78. clean:
  79.         rm -f *.a *.o *~ pico_os.c os.h pico pilot
  80.         cd osdep; $(MAKE) clean; cd ..
  81.  
  82. os.h:        osdep/os-lnx.h
  83.         $(RM) os.h
  84.         $(LN) osdep/os-lnx.h os.h
  85.  
  86. pico_os.c:    osdep/os-lnx.c
  87.         $(RM) pico_os.c
  88.         $(LN) osdep/os-lnx.c pico_os.c
  89.  
  90. $(OFILES) main.o pilot.o:    $(HFILES)
  91. pico.o:                ebind.h
  92.  
  93. osdep/os-lnx.c:    osdep/header osdep/unix osdep/read.sel osdep/raw.io \
  94.         osdep/spell.unx osdep/term.cap \
  95.         osdep/os-lnx.ic
  96.         cd osdep; $(MAKE) includer os-lnx.c; cd ..
  97.