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

  1. # $Id: makefile.dpx,v 4.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 Bull DPX/2 B.O.S version of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29. # [Port courtesy of David Brownlee <david@mono.org> ]
  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. #for GNU C
  40. #CC=        gcc
  41. #STDCFLAGS=    -Ddpx -DJOB_CONTROL -DPOSIX -ansi -DMOUSE
  42.  
  43. #otherwise
  44. STDCFLAGS=    -Dconst= -Ddpx -DJOB_CONTROL -DPOSIX -DMOUSE
  45. CFLAGS=         $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
  46.  
  47. # switches for library building
  48. LIBCMD=        ar
  49. LIBARGS=    ru
  50. RANLIB=        true
  51.  
  52. LIBS=        $(EXTRALIBES) -lcurses
  53.  
  54. OFILES=        attach.o basic.o bind.o browse.o buffer.o \
  55.         composer.o display.o file.o fileio.o line.o pico_os.o \
  56.         pico.o random.o region.o search.o \
  57.         window.o word.o
  58.  
  59. HFILES=        headers.h estruct.h edef.h efunc.h pico.h os.h
  60.  
  61. #
  62. # dependencies for the Unix versions of pico and libpico.a
  63. #
  64. all:        pico pilot
  65. pico pilot:    libpico.a
  66.  
  67. pico:        main.o
  68.         $(CC) $(CFLAGS) main.o libpico.a $(LIBS) -o pico
  69.  
  70. pilot:        pilot.o
  71.         $(CC) $(CFLAGS) pilot.o libpico.a $(LIBS) -o pilot
  72.  
  73. libpico.a:    $(OFILES)
  74.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  75.         $(RANLIB) libpico.a
  76.  
  77. clean:
  78.         rm -f *.a *.o *~ pico_os.c os.h pico pilot
  79.         cd osdep; $(MAKE) clean; cd ..
  80.  
  81. os.h:        osdep/os-dpx.h
  82.         $(RM) os.h
  83.         $(LN) osdep/os-dpx.h os.h
  84.  
  85. pico_os.c:    osdep/os-dpx.c
  86.         $(RM) pico_os.c
  87.         $(LN) osdep/os-dpx.c pico_os.c
  88.  
  89. $(OFILES) main.o pilot.o:    $(HFILES)
  90. pico.o:                ebind.h
  91.  
  92. osdep/os-dpx.c:    osdep/header osdep/unix osdep/read.sel osdep/raw.ios \
  93.         osdep/spell.unx osdep/term.cap \
  94.         osdep/os-dpx.ic
  95.         cd osdep; $(MAKE) includer os-dpx.c; cd ..
  96.