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.sc5 < prev    next >
Makefile  |  1998-07-08  |  3KB  |  95 lines

  1. # $Id: makefile.sc5,v 1.5 1998/07/08 16:33:50 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.2v5.0.x version of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29. # Port courtesy of J. Kean Johnston <jkj@sco.COM>, 970319
  30. #
  31.  
  32. RM=          rm -f
  33. LN=          ln -s
  34. MAKE=        make
  35. SHELL=       /bin/sh
  36. OPTIMIZE=    # -O3
  37. PROFILE=     # -pg
  38. DEBUG=       # -g -DDEBUG
  39.  
  40. STDCFLAGS=    -dy -Dsco -DJOB_CONTROL -DPOSIX -DMOUSE
  41. CFLAGS=         $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
  42.  
  43. # switches for library building
  44. LIBCMD=        ar
  45. LIBARGS=    ru
  46. RANLIB=        true
  47.  
  48. # When USE_TERMINFO is defined link with library tinfo.
  49. LIBS=        $(EXTRALIBES) -ltinfo -lc
  50. # When USE_TERMCAP is defined link with library termcap.
  51. #LIBS=        $(EXTRALIBES) -ltermcap -lc -lc_s -lx
  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-sc5.h
  81.         $(RM) os.h
  82.         $(LN) osdep/os-sc5.h os.h
  83.  
  84. pico_os.c:    osdep/os-sc5.c
  85.         $(RM) pico_os.c
  86.         $(LN) osdep/os-sc5.c pico_os.c
  87.  
  88. $(OFILES) main.o pilot.o:    $(HFILES)
  89. pico.o:                ebind.h
  90.  
  91. osdep/os-sc5.c:    osdep/header osdep/unix osdep/read.sel osdep/raw.ios \
  92.         osdep/spell.unx osdep/term.inf \
  93.         osdep/os-sc5.ic
  94.         cd osdep; $(MAKE) includer os-sc5.c; cd ..
  95.