home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume2 / final-xenix-smail / Makefile < prev    next >
Encoding:
Makefile  |  1991-08-07  |  1.4 KB  |  59 lines

  1. # Makefile for smail
  2. # @(#)Makefile    2.5 (smail) 9/15/87
  3. #
  4. # Modified for SCO Xenix by Chip Salzenberg <chip@ateng.UUCP>.
  5. # Released to Usenet on 01 Dec 1987.
  6. # Fixed as per comments of Chris Lewis <uunet!mnetor!spectrix!clewis>.
  7. #
  8. # With the addition of the `xenix' pseudo-target, this makefile now makes
  9. # both smail and execm by default.
  10. #
  11. # Use the `install_smail' script to install the resulting binaries.
  12.  
  13. CFLAGS    = -O
  14. LDFLAGS = -i
  15. SHELL    = /bin/sh
  16. COPY    = copy -om
  17.  
  18. #
  19. # System V Release 2.0 sites can use -lmalloc for a faster malloc
  20. #
  21. #LIBS    =    -lmalloc
  22.  
  23. OBJECTS =    main.o map.o resolve.o deliver.o misc.o alias.o pw.o headers.o getpath.o str.o getopt.o
  24.  
  25. xenix:  smail execm
  26. all:    smail svbinmail lcasep pathproc mkfnames nptx execm
  27.  
  28. smail:        $(OBJECTS)
  29.         $(CC) $(LDFLAGS) -F 4000 $(OBJECTS) -o smail $(LIBS)
  30.  
  31. $(OBJECTS):    defs.h
  32.         $(CC) $(CFLAGS) -c $<
  33.  
  34. execm:          execm.c
  35.         $(CC) $(CFLAGS) $(LDFLAGS) execm.c -o execm
  36.  
  37. svbinmail:    svbinmail.c defs.h
  38.         $(CC) $(CFLAGS) $(LDFLAGS) svbinmail.c -o svbinmail
  39.  
  40. lcasep:        lcasep.c
  41.         $(CC) $(CFLAGS) $(LDFLAGS) lcasep.c -o lcasep
  42.  
  43. pathproc:    pathproc.sh
  44.         $(COPY) pathproc.sh pathproc
  45.         chmod 755 pathproc
  46.  
  47. mkfnames:    mkfnames.sh
  48.         $(COPY) mkfnames.sh mkfnames
  49.         chmod 755 mkfnames
  50.  
  51. nptx:        nptx.o pw.o str.o
  52.         $(CC) $(CFLAGS) nptx.o pw.o str.o -o nptx $(LIBS)
  53.  
  54. clean:
  55.         rm -f *.o *.ln a.out core
  56.  
  57. clobber:    clean
  58.         rm -f smail rmail lcasep pathproc mkfnames svbinmail nptx execm
  59.