home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / uucp / duucp-1.17 / AU-117b4-src.lha / src / dmail / DMakefile < prev    next >
Encoding:
Makefile  |  1993-12-24  |  1.6 KB  |  59 lines

  1. #   Written by Matthew Dillon
  2. #
  3. #   (C)Copyright 1986-89 by Matthew Dillon
  4. #
  5. #   This code is completely original.  I declare this code to be public
  6. #   domain.  You may redistribute this code as long as any those
  7. #   redistributions contain this and all other files in their entirety.
  8. #
  9. #    Ports: Anybody may port this code to any machine or OS they wish, of
  10. #    course.  If you do make a port, I would be grateful if you mailed
  11. #    a letter with: (A) OS you ported it too, and (B) version ported,
  12. #    so I may inform people who have mailed me wondering about ports
  13. #    who to contact.
  14. #
  15. #   Send bug reports and other gripes to:
  16. #
  17. #   dillon@moonshot.west.oic.com
  18. #
  19. #   INSTRUCTIONS FOR COMPILING:
  20. #
  21. #   (1) Set DESTDIR & HELP_DIR to some global directory accessable to
  22. #    everybody (or whatever).  Also set HELP_CHMOD and PROG_CHMOD
  23. #    to the right thing if you don't like the defaults.
  24.  
  25. #
  26. #   config.c is a link to /lib/config.c, but we use registerized parameters
  27. #   here.
  28.  
  29. OD= dtmp:uucp/dmail/
  30. EXE= uucp:c/dmail
  31. CFLAGS= -I uucp:src/include/ -proto -r -mRR
  32. MAKEPROTO=dtmp:uucp/lib/makeproto
  33. PROTOS=   uucp:src/include/dmail_protos.h
  34.  
  35. LIBS=    -Luucp:src/dlib -lodu -r -mRR
  36.  
  37. SRCS=    config.c globals.c main.c do_lists.c sub.c execom.c commands.c \
  38.     range.c load_mail.c sendmail.c set.c help.c cond.c compat.c
  39.  
  40. OBJS=    $(SRCS:"*.c":"$(OD)*.o")
  41. LOBJS=    $(SRCS:"*.c":"*.o")
  42.  
  43. all:    $(PROTOS) $(EXE)
  44.  
  45. $(EXE): $(OBJS)
  46.     dcc $(OBJS) $(LIBS) -o %(left) -r
  47.  
  48. dmail:    $(OBJS)
  49.     dcc $(OBJS) $(LIBS) -o %(left) -r
  50.  
  51. $(OBJS) : $(SRCS)
  52.     dcc $(CFLAGS) %(right) -o %(left) -c -r
  53.  
  54. $(PROTOS):  $(SRCS)
  55.     $(MAKEPROTO) -o%(left) %(right)
  56.  
  57. clean:
  58.     delete $(OBJS)
  59.