home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume25 / smail-deliver.pch / X.Makefile < prev    next >
Makefile  |  1992-01-11  |  1KB  |  58 lines

  1. # Makefile for smail under SCO Xenix
  2. # @(#)Makefile    2.5 (smail) 9/15/87
  3. #
  4. # Modified for SCO Xenix by Chip Salzenberg <chip@tct.com>.
  5. # Fixed as per comments of Chris Lewis <uunet!mnetor!spectrix!clewis>.
  6. #
  7. # With the addition of the "xenix" pseudo-target, this Makefile now makes
  8. # both smail and execm by default.
  9. #
  10. # Because installation under Xenix is odd, the "install" pseudo-target
  11. # has been removed.  Run "X.install" to install Smail under Xenix.
  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.  
  33. execm:          execm.c
  34.         $(CC) $(CFLAGS) $(LDFLAGS) execm.c -o execm
  35.  
  36. svbinmail:    svbinmail.c defs.h
  37.         $(CC) $(CFLAGS) $(LDFLAGS) svbinmail.c -o svbinmail
  38.  
  39. lcasep:        lcasep.c
  40.         $(CC) $(CFLAGS) $(LDFLAGS) lcasep.c -o lcasep
  41.  
  42. pathproc:    pathproc.sh
  43.         $(COPY) pathproc.sh pathproc
  44.         chmod 755 pathproc
  45.  
  46. mkfnames:    mkfnames.sh
  47.         $(COPY) mkfnames.sh mkfnames
  48.         chmod 755 mkfnames
  49.  
  50. nptx:        nptx.o pw.o str.o
  51.         $(CC) $(CFLAGS) nptx.o pw.o str.o -o nptx $(LIBS)
  52.  
  53. clean:
  54.         rm -f *.o *.ln a.out core
  55.  
  56. clobber:    clean
  57.         rm -f smail rmail lcasep pathproc mkfnames svbinmail nptx execm
  58.