home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pine / pine3.07 / pico / Makefile.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-30  |  1.2 KB  |  58 lines

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