home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pine / pine3.07 / pico / Makefile.bsd < prev    next >
Encoding:
Makefile  |  1992-06-14  |  1.2 KB  |  59 lines

  1. #
  2. # Makefile for Berkeley UNIX (4.3bsd) of the PINE composer library and 
  3. # stand-alone editor pico.
  4. #
  5.  
  6. #includes symbol for debugging
  7. DASHO=        -g
  8. #for normal build
  9. #DASHO=        -O
  10.  
  11.  
  12. CFLAGS=        -Dbsd -DJOB_CONTROL
  13.  
  14.  
  15. # switches for library building
  16. LIBCMD=        ar
  17. LIBARGS=    ru
  18. RANLIB=        ranlib
  19.  
  20. LIBS=        -ltermcap -lc
  21.  
  22. OFILES=        attach.o ansi.o basic.o bind.o browse.o buffer.o \
  23.         composer.o display.o file.o fileio.o line.o osdep.o \
  24.         pico.o random.o search.o spell.o tcap.o window.o word.o
  25.  
  26. CFILES=        attach.c ansi.c basic.c bind.c browse.c buffer.c \
  27.         composer.c display.c file.c fileio.c line.c osdep.c \
  28.         pico.c random.c search.c spell.c tcap.c window.c word.c
  29.  
  30. HFILES=        estruct.h edef.h efunc.h ebind.h pico.h
  31.  
  32.  
  33. #
  34. # dependencies for the Unix versions of pico and libpico.a
  35. #
  36. all:        pico
  37.  
  38. osdep.c:    os_unix.c
  39.         rm -f osdep.c
  40.         cp os_unix.c osdep.c
  41.  
  42. osdep.h:    os_unix.h
  43.         rm -f osdep.h
  44.         cp os_unix.h osdep.h
  45.  
  46. libpico.a:    osdep.c osdep.h $(OFILES)
  47.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  48.         $(RANLIB) libpico.a
  49.  
  50. pico:        main.c libpico.a
  51.         $(CC) $(CFLAGS) main.c libpico.a $(LIBS) -o pico
  52.  
  53. .c.o:        ; $(CC) -c $(CFLAGS) $(DASHO) $*.c
  54.  
  55. $(OFILES):    $(HFILES)
  56.  
  57. clean:
  58.         rm -f *.a *.o *~ osdep.c osdep.h
  59.