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.cvx < prev    next >
Makefile  |  1998-06-29  |  2KB  |  89 lines

  1. # $Id: makefile.cvx,v 1.12 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 Convex version of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29.  
  30. RM=          rm -f
  31. LN=          ln -s
  32. MAKE=        make
  33. OPTIMIZE=    # -O
  34. PROFILE=     # -pg
  35. DEBUG=       -cxdb -DDEBUG
  36.  
  37. STDCFLAGS=    -Dconst= -Dcvx -DJOB_CONTROL -DPOSIX -DMOUSE
  38. CFLAGS=         $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
  39.  
  40. # switches for library building
  41. LIBCMD=        ar
  42. LIBARGS=    ru
  43. RANLIB=        ranlib
  44.  
  45. LIBS=        $(EXTRALIBES) -ltermcap -lc
  46.  
  47. OFILES=        attach.o basic.o bind.o browse.o buffer.o \
  48.         composer.o display.o file.o fileio.o line.o pico_os.o \
  49.         pico.o random.o region.o search.o \
  50.         window.o word.o
  51.  
  52. HFILES=        headers.h estruct.h edef.h efunc.h pico.h os.h
  53.  
  54. #
  55. # dependencies for the Unix versions of pico and libpico.a
  56. #
  57. all:        pico pilot
  58. pico pilot:    libpico.a
  59.  
  60. pico:        main.o
  61.         $(CC) $(CFLAGS) main.o libpico.a $(LIBS) -o pico
  62.  
  63. pilot:        pilot.o
  64.         $(CC) $(CFLAGS) pilot.o libpico.a $(LIBS) -o pilot
  65.  
  66. libpico.a:    $(OFILES)
  67.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  68.         $(RANLIB) libpico.a
  69.  
  70. clean:
  71.         rm -f *.a *.o *~ pico_os.c os.h pico pilot .XCdb/*
  72.         cd osdep; $(MAKE) clean; cd ..
  73.  
  74. os.h:        osdep/os-cvx.h
  75.         $(RM) os.h
  76.         $(LN) osdep/os-cvx.h os.h
  77.  
  78. pico_os.c:    osdep/os-cvx.c
  79.         $(RM) pico_os.c
  80.         $(LN) osdep/os-cvx.c pico_os.c
  81.  
  82. $(OFILES) main.o pilot.o:    $(HFILES)
  83. pico.o:                ebind.h
  84.  
  85. osdep/os-cvx.c:    osdep/header osdep/unix osdep/read.sel osdep/raw.ios \
  86.         osdep/spell.unx osdep/term.cap \
  87.         osdep/os-cvx.ic
  88.         cd osdep; $(MAKE) includer os-cvx.c; cd ..
  89.