home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / pine / pico / makefile.bsd < prev    next >
Encoding:
Makefile  |  1994-04-06  |  2.9 KB  |  95 lines

  1. # $Id: makefile.bsd,v 4.2 1993/04/15 00:27:37 mikes 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. #   Copyright 1991-1993  University of Washington
  14. #
  15. #    Permission to use, copy, modify, and distribute this software and its
  16. #   documentation for any purpose and without fee to the University of
  17. #   Washington is hereby granted, provided that the above copyright notice
  18. #   appears in all copies and that both the above copyright notice and this
  19. #   permission notice appear in supporting documentation, and that the name
  20. #   of the University of Washington not be used in advertising or publicity
  21. #   pertaining to distribution of the software without specific, written
  22. #   prior permission.  This software is made available "as is", and
  23. #   THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
  24. #   WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED
  25. #   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN
  26. #   NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL,
  27. #   INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  28. #   LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT
  29. #   (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION
  30. #   WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  31. #  
  32. #   Pine and Pico are trademarks of the University of Washington.
  33. #   No commercial use of these trademarks may be made without prior
  34. #   written permission of the University of Washington.
  35. #
  36.  
  37. #
  38. # Makefile for Berkeley UNIX (4.3bsd) of the PINE composer library and 
  39. # stand-alone editor pico.
  40. #
  41.  
  42. #includes symbol for debugging
  43. DASHO=        -g
  44. #for normal build
  45. #DASHO=        -O
  46.  
  47.  
  48. CFLAGS=        -Dbsd -DJOB_CONTROL -DHEBREW
  49.  
  50.  
  51. # switches for library building
  52. LIBCMD=        ar
  53. LIBARGS=    ru
  54. RANLIB=        ranlib
  55.  
  56. LIBS=        -ltermcap -lc
  57.  
  58. OFILES=        attach.o ansi.o basic.o bind.o browse.o buffer.o \
  59.         composer.o display.o file.o fileio.o line.o osdep.o \
  60.         pico.o random.o region.o search.o spell.o tcap.o window.o word.o
  61.  
  62. CFILES=        attach.c ansi.c basic.c bind.c browse.c buffer.c \
  63.         composer.c display.c file.c fileio.c line.c osdep.c \
  64.         pico.c random.c region.c search.c spell.c tcap.c window.c word.c
  65.  
  66. HFILES=        estruct.h edef.h efunc.h ebind.h pico.h
  67.  
  68.  
  69. #
  70. # dependencies for the Unix versions of pico and libpico.a
  71. #
  72. all:        pico
  73.  
  74. osdep.c:    os_unix.c
  75.         rm -f osdep.c
  76.         cp os_unix.c osdep.c
  77.  
  78. osdep.h:    os_unix.h
  79.         rm -f osdep.h
  80.         cp os_unix.h osdep.h
  81.  
  82. libpico.a:    osdep.c osdep.h $(OFILES)
  83.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  84.         $(RANLIB) libpico.a
  85.  
  86. pico:        main.c libpico.a
  87.         $(CC) $(CFLAGS) main.c libpico.a $(LIBS) -o pico
  88.  
  89. .c.o:        ; $(CC) -c $(CFLAGS) $(DASHO) $*.c
  90.  
  91. $(OFILES):    $(HFILES)
  92.  
  93. clean:
  94.         rm -f *.a *.o *~ osdep.c osdep.h
  95.