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.lnx < prev    next >
Makefile  |  1998-06-29  |  3KB  |  95 lines

  1. # $Id: makefile.lnx,v 1.15 1998/06/29 23:17:10 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. OPTIMIZE=    # -O
  40. PROFILE=     # -pg
  41. DEBUG=       -g -DDEBUG
  42.  
  43. STDCFLAGS=    -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE
  44. CFLAGS=         $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
  45.  
  46. # switches for library building
  47. LIBCMD=        ar
  48. LIBARGS=    ru
  49. RANLIB=        ranlib
  50.  
  51. LIBS=        $(EXTRALIBES) -ltermcap
  52.  
  53. OFILES=        attach.o basic.o bind.o browse.o buffer.o \
  54.         composer.o display.o file.o fileio.o line.o pico_os.o \
  55.         pico.o random.o region.o search.o \
  56.         window.o word.o
  57.  
  58. HFILES=        headers.h estruct.h edef.h efunc.h pico.h os.h
  59.  
  60. #
  61. # dependencies for the Unix versions of pico and libpico.a
  62. #
  63. all:        pico pilot
  64. pico pilot:    libpico.a
  65.  
  66. pico:        main.o
  67.         $(CC) $(CFLAGS) main.o libpico.a $(LIBS) -o pico
  68.  
  69. pilot:        pilot.o
  70.         $(CC) $(CFLAGS) pilot.o libpico.a $(LIBS) -o pilot
  71.  
  72. libpico.a:    $(OFILES)
  73.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  74.         $(RANLIB) libpico.a
  75.  
  76. clean:
  77.         rm -f *.a *.o *~ pico_os.c os.h pico pilot
  78.         cd osdep; $(MAKE) clean; cd ..
  79.  
  80. os.h:        osdep/os-lnx.h
  81.         $(RM) os.h
  82.         $(LN) osdep/os-lnx.h os.h
  83.  
  84. pico_os.c:    osdep/os-lnx.c
  85.         $(RM) pico_os.c
  86.         $(LN) osdep/os-lnx.c pico_os.c
  87.  
  88. $(OFILES) main.o pilot.o:    $(HFILES)
  89. pico.o:                ebind.h
  90.  
  91. osdep/os-lnx.c:    osdep/header osdep/unix osdep/read.sel osdep/raw.io \
  92.         osdep/spell.unx osdep/term.cap \
  93.         osdep/os-lnx.ic
  94.         cd osdep; $(MAKE) includer os-lnx.c; cd ..
  95.