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.d-g < prev    next >
Makefile  |  1998-06-29  |  2KB  |  92 lines

  1. # $Id: makefile.d-g,v 1.8 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 DG/UX version of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29. # [Port courtesy of Jeff Ferguson <jef@zeus.agfx.com>]
  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. STDCFLAGS=    -Dsv4 -DJOB_CONTROL -DPOSIX -DMOUSE
  40. CFLAGS=         $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
  41.  
  42. # switches for library building
  43. LIBCMD=        ar
  44. LIBARGS=    ru
  45. RANLIB=        true
  46.  
  47. LIBS=        $(EXTRALIBES) -l`case \`uname -r\` in R4.11*) echo "nsl"\
  48.         ;; *) echo "nsl_s";;esac`  -lgen -lcurses
  49.  
  50. OFILES=        attach.o basic.o bind.o browse.o buffer.o \
  51.         composer.o display.o file.o fileio.o line.o pico_os.o \
  52.         pico.o random.o region.o search.o \
  53.         window.o word.o
  54.  
  55. HFILES=        headers.h estruct.h edef.h efunc.h pico.h os.h
  56.  
  57. #
  58. # dependencies for the Unix versions of pico and libpico.a
  59. #
  60. all:        pico pilot
  61. pico pilot:    libpico.a
  62.  
  63. pico:        main.o
  64.         $(CC) $(CFLAGS) main.o libpico.a $(LIBS) -o pico
  65.  
  66. pilot:        pilot.o
  67.         $(CC) $(CFLAGS) pilot.o libpico.a $(LIBS) -o pilot
  68.  
  69. libpico.a:    $(OFILES)
  70.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  71.         $(RANLIB) libpico.a
  72.  
  73. clean:
  74.         rm -f *.a *.o *~ pico_os.c os.h pico pilot
  75.         cd osdep; $(MAKE) clean; cd ..
  76.  
  77. os.h:        osdep/os-sv4.h
  78.         $(RM) os.h
  79.         $(LN) osdep/os-sv4.h os.h
  80.  
  81. pico_os.c:    osdep/os-sv4.c
  82.         $(RM) pico_os.c
  83.         $(LN) osdep/os-sv4.c pico_os.c
  84.  
  85. $(OFILES) main.o pilot.o:    $(HFILES)
  86. pico.o:                ebind.h
  87.  
  88. osdep/os-sv4.c:    osdep/header osdep/unix osdep/read.pol osdep/raw.ios \
  89.         osdep/spell.unx osdep/term.inf \
  90.         osdep/os-sv4.ic
  91.         cd osdep; $(MAKE) includer os-sv4.c; cd ..
  92.