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.sco < prev    next >
Makefile  |  1998-06-30  |  3KB  |  94 lines

  1. # $Id: makefile.sco,v 4.14 1998/06/30 19:56:53 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 SCO 3.2vx version of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29. # Port courtesy of Robert Lewis <robertle@sco.COM>, 921217
  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=    -Dsco -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. # When USE_TERMINFO is defined link with library tinfo.
  48. LIBS=        $(EXTRALIBES) -lc -lc_s -lx -lm -ltinfo
  49. # When USE_TERMCAP is defined link with library termcap.
  50. #LIBS=        $(EXTRALIBES) -lc -lc_s -lx -lm -ltermcap
  51.  
  52. OFILES=        attach.o basic.o bind.o browse.o buffer.o \
  53.         composer.o display.o file.o fileio.o line.o pico_os.o \
  54.         pico.o random.o region.o search.o \
  55.         window.o word.o
  56.  
  57. HFILES=        headers.h estruct.h edef.h efunc.h pico.h os.h
  58.  
  59. #
  60. # dependencies for the Unix versions of pico and libpico.a
  61. #
  62. all:        pico pilot
  63. pico pilot:    libpico.a
  64.  
  65. pico:        main.o
  66.         $(CC) $(CFLAGS) main.o libpico.a $(LIBS) -o pico
  67.  
  68. pilot:        pilot.o
  69.         $(CC) $(CFLAGS) pilot.o libpico.a $(LIBS) -o pilot
  70.  
  71. libpico.a:    $(OFILES)
  72.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  73.         $(RANLIB) libpico.a
  74.  
  75. clean:
  76.         rm -f *.a *.o *~ pico_os.c os.h pico pilot
  77.         cd osdep; $(MAKE) clean; cd ..
  78.  
  79. os.h:        osdep/os-sco.h
  80.         $(RM) os.h
  81.         $(LN) osdep/os-sco.h os.h
  82.  
  83. pico_os.c:    osdep/os-sco.c
  84.         $(RM) pico_os.c
  85.         $(LN) osdep/os-sco.c pico_os.c
  86.  
  87. $(OFILES) main.o pilot.o:    $(HFILES)
  88. pico.o:                ebind.h
  89.  
  90. osdep/os-sco.c:    osdep/header osdep/unix osdep/read.sel osdep/raw.io \
  91.         osdep/spell.unx osdep/term.inf osdep/truncate \
  92.         osdep/os-sco.ic
  93.         cd osdep; $(MAKE) includer os-sco.c; cd ..
  94.