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

  1. # $Id: makefile.sol,v 4.11 1998/06/29 22:22:40 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 Sun Solaris version of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29. # [Port courtesy of Marc Unangst <mju@mudos.ann-arbor.mi.us> - mss, 921020]
  30. #
  31.  
  32. RM=          rm -f
  33. LN=          ln -s
  34. MAKE=        make
  35. OPTIMIZE=    # -O
  36. PROFILE=     # -pg
  37. DEBUG=       -g -DDEBUG
  38.  
  39. # LDCC= /usr/bin/cc
  40. # If you don't have /usr/bin/cc (our Solaris 2.2 doesn't seem to have it,
  41. # it only has /usr/ucb/cc) then change LDCC to the following line and
  42. # give that a try.  This is still using the Solaris compiler but
  43. # leaving out the UCB compatibility includes and libraries.
  44. LDCC= ./cc5.sol
  45.  
  46. STDCFLAGS=    -Dconst= -Dsv4 -DPOSIX -DJOB_CONTROL -DMOUSE
  47. CFLAGS=         $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
  48.  
  49. # switches for library building
  50. LIBCMD=        ar
  51. LIBARGS=    ru
  52. RANLIB=        true
  53.  
  54. LIBS=        $(EXTRALIBES) -ltermlib
  55.  
  56. OFILES=        attach.o basic.o bind.o browse.o buffer.o \
  57.         composer.o display.o file.o fileio.o line.o pico_os.o \
  58.         pico.o random.o region.o search.o \
  59.         window.o word.o
  60.  
  61. HFILES=        headers.h estruct.h edef.h efunc.h pico.h os.h
  62.  
  63. #
  64. # dependencies for the Unix versions of pico and libpico.a
  65. #
  66. all:        pico pilot
  67. pico pilot:    libpico.a
  68.  
  69. pico:        main.o
  70.         $(LDCC) $(CFLAGS) main.o libpico.a $(LIBS) -o pico
  71.  
  72. pilot:        pilot.o
  73.         $(LDCC) $(CFLAGS) pilot.o libpico.a $(LIBS) -o pilot
  74.  
  75. libpico.a:    $& $(OFILES)
  76.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  77.         $(RANLIB) libpico.a
  78.  
  79. clean:
  80.         rm -f *.a *.o *~ pico_os.c os.h pico pilot
  81.         cd osdep; $(MAKE) clean; cd ..
  82.  
  83. os.h:        osdep/os-sol.h
  84.         $(RM) os.h
  85.         $(LN) osdep/os-sol.h os.h
  86.  
  87. pico_os.c:    osdep/os-sv4.c
  88.         $(RM) pico_os.c
  89.         $(LN) osdep/os-sv4.c pico_os.c
  90.  
  91. $(OFILES) main.o pilot.o:    $(HFILES)
  92. pico.o:                ebind.h
  93.  
  94. osdep/os-sv4.c:    osdep/header osdep/unix osdep/read.pol osdep/raw.ios \
  95.         osdep/spell.unx osdep/term.cap \
  96.         osdep/os-sv4.ic
  97.         cd osdep; $(MAKE) includer os-sv4.c; cd ..
  98.