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

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