home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / pine / c-client / makefile.sv4 < prev    next >
Makefile  |  1994-01-09  |  3KB  |  105 lines

  1. # Program:    Portable C client makefile -- SVR4 version
  2. #
  3. # Author:    Mark Crispin
  4. #        Networks and Distributed Computing
  5. #        Computing & Communications
  6. #        University of Washington
  7. #        Administration Building, AG-44
  8. #        Seattle, WA  98195
  9. #        Internet: MRC@CAC.Washington.EDU
  10. #
  11. # Date:        11 May 1989
  12. # Last Edited:    3 October 1993
  13. #
  14. # Copyright 1993 by the University of Washington
  15. #
  16. #  Permission to use, copy, modify, and distribute this software and its
  17. # documentation for any purpose and without fee is hereby granted, provided
  18. # that the above copyright notice appears in all copies and that both the
  19. # above copyright notice and this permission notice appear in supporting
  20. # documentation, and that the name of the University of Washington not be
  21. # used in advertising or publicity pertaining to distribution of the software
  22. # without specific, written prior permission.  This software is made
  23. # available "as is", and
  24. # THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
  25. # WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED
  26. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN
  27. # NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL,
  28. # INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  29. # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT
  30. # (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION
  31. # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  32.  
  33.  
  34. RSH = resh
  35. RSHPATH = /usr/bin/resh
  36. OSDEFS = -DRSH=\"$(RSH)\" -DRSHPATH=\"$(RSHPATH)\"
  37. #ifndef sun
  38. CFLAGS = -g -Dconst=
  39. #else 
  40. CFLAGS = -g 
  41. #endif
  42. LDFLAGS = -lsocket -lnsl -lgen
  43.  
  44. mtest: mtest.o c-client.a
  45.     echo $(CFLAGS) > CFLAGS
  46.     echo $(LDFLAGS) > LDFLAGS
  47.     $(CC) $(CFLAGS) -o mtest mtest.o c-client.a $(LDFLAGS)
  48.  
  49. clean:
  50.     rm -f *.o mtest c-client.a osdep.* CFLAGS LDFLAGS
  51.  
  52. mtest.o: mail.h smtp.h nntp.h misc.h osdep.h
  53.  
  54. c-client.a: mail.o bezerk.o tenex2.o mbox.o mh.o imap2.o news.o nntpclient.o\
  55.     phile.o dummy.o smtp.o nntp.o rfc822.o misc.o osdep.o sm_unix.o
  56.     rm -f c-client.a
  57.     ar rc c-client.a mail.o bezerk.o tenex2.o mbox.o mh.o imap2.o news.o \
  58.     nntpclient.o phile.o dummy.o smtp.o nntp.o rfc822.o misc.o osdep.o \
  59.     sm_unix.o
  60.  
  61. mail.o: mail.h misc.h osdep.h
  62.  
  63. bezerk.o: mail.h bezerk.h rfc822.h misc.h osdep.h
  64.  
  65. tenex.o: mail.h tenex.h rfc822.h misc.h osdep.h
  66.  
  67. tenex2.o: mail.h tenex2.h rfc822.h misc.h osdep.h
  68.  
  69. mbox.o: mail.h mbox.h bezerk.h misc.h osdep.h
  70.  
  71. mh.o: mail.h mh.h rfc822.h misc.h osdep.h
  72.  
  73. imap2.o: mail.h imap2.h misc.h osdep.h
  74.  
  75. news.o: mail.h news.h misc.h osdep.h
  76.  
  77. nntpclient.o: mail.h nntp.h nntpclient.h misc.h rfc822.h news.h smtp.h osdep.h
  78.  
  79. phile.o: mail.h phile.h misc.h osdep.h
  80.  
  81. dummy.o: mail.h dummy.h misc.h osdep.h
  82.  
  83. smtp.o: mail.h smtp.h rfc822.h misc.h osdep.h
  84.  
  85. nntp.o: mail.h nntp.h smtp.h rfc822.h misc.h osdep.h
  86.  
  87. rfc822.o: mail.h rfc822.h misc.h
  88.  
  89. misc.o: mail.h misc.h osdep.h
  90.  
  91. sm_unix.o: mail.h misc.h osdep.h
  92.  
  93. osdep.o: mail.h osdep.h os_sv4.c
  94.     $(CC) $(CFLAGS) $(OSDEFS) -c os_sv4.c
  95.     mv os_sv4.o osdep.o
  96.  
  97. osdep.h: os_sv4.h
  98.     rm -f osdep.h
  99.     ln os_sv4.h osdep.h
  100.  
  101.  
  102. # A monument to a hack of long ago and far away...
  103. love:
  104.     @echo 'not war?'
  105.