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

  1. # $Id: makefile.hpp,v 4.13 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 HP/UX 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=       -g -DDEBUG
  36.  
  37. STDCFLAGS=    -Dconst= -Aa -D_HPUX_SOURCE -Dhpp -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=        :
  44.  
  45. LIBS=        $(EXTRALIBES) -ltermcap -lV3
  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.         $(PURIFY) $(PURIFYOPTIONS) $(CC) $(CFLAGS) main.o \
  62.           libpico.a $(LIBS) -o pico
  63.  
  64. pilot:        pilot.o
  65.         $(PURIFY) $(PURIFYOPTIONS) $(CC) $(CFLAGS) pilot.o \
  66.           libpico.a $(LIBS) -o pilot
  67.  
  68. libpico.a:    $& $(OFILES)
  69.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  70.         $(RANLIB) libpico.a
  71.  
  72. clean:
  73.         rm -f *.a *.o *~ pico_os.c os.h pico pilot
  74.         cd osdep; $(MAKE) clean; cd ..
  75.  
  76. os.h:        osdep/os-hpp.h
  77.         $(RM) os.h
  78.         $(LN) osdep/os-hpp.h os.h
  79.  
  80. pico_os.c:    osdep/os-hpp.c
  81.         $(RM) pico_os.c
  82.         $(LN) osdep/os-hpp.c pico_os.c
  83.  
  84. $(OFILES) main.o pilot.o:    $(HFILES)
  85. pico.o:                ebind.h
  86.  
  87. osdep/os-hpp.c:    osdep/header osdep/unix osdep/read.sel osdep/raw.io \
  88.         osdep/spell.unx osdep/term.cap \
  89.         osdep/os-hpp.ic
  90.         cd osdep; $(MAKE) includer os-hpp.c; cd ..
  91.