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

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