home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / POPCLIEN.000 / POPCLIEN / pop / Makefile < prev    next >
Encoding:
Makefile  |  1994-04-01  |  2.4 KB  |  79 lines

  1. # /* Copyright 1993,1994 by Carl Harris, Jr.
  2. #  * All rights reserved
  3. #  *
  4. #  * Distribute freely, except: don't remove my name from the source or
  5. #  * documentation (don't take credit for my work), mark your changes (don't
  6. #  * get me blamed for your possible bugs), don't alter or remove this
  7. #  * notice.  May be sold if buildable source is provided to buyer.  No
  8. #  * warrantee of any kind, express or implied, is included with this
  9. #  * software; use at your own risk, responsibility for damages (if any) to
  10. #  * anyone resulting from the use of this software rests entirely with the
  11. #  * user.
  12. #  *
  13. #  * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
  14. #  * I'll try to keep a version up to date.  I can be reached as follows:
  15. #  * Carl Harris <ceharris@vt.edu>
  16. #  */
  17.  
  18.  
  19. #######################################################################
  20. #  POPclient project Makefile
  21. #
  22. #  SCCS ID:     @(#)Makefile    2.5  3/31/94
  23. #  programmer:  Carl Harris, ceharris@vt.edu
  24. #  date:        29 December 1993
  25. #
  26.  
  27.  
  28. #######################################################################
  29. #  Installer configuration section
  30. #  (be sure to edit config.h, too)
  31. BINDIR=/usr/local/bin
  32. MANDIR=/usr/local/man
  33. MANSECTION=1
  34.  
  35. #######################################################################
  36. #  Compiler configuration section
  37. #  K & R compilers may want to set CFLAGS=-DNO_PROTO
  38. #
  39. CFLAGS=
  40. CC=cc
  41. #  System V may require 'LIBS=-lbsd' here.
  42. LIBS=
  43. TARGET=popclient
  44. OBJECTS=popclient.o pop2.o pop3.o socket.o
  45.  
  46.  
  47. #######################################################################
  48. #  Term configuration section.  For term connection to internet only.
  49. #
  50. # TERM_PRIORITY = 0
  51. # TERM_COMPRESS = 0
  52. # TERMDIR = $(HOME)/term
  53. # CFLAGS += -DUSE_TERM -DTERM_PRIORITY=$(TERM_PRIORITY) -DTERM_COMPRESS=$(TERM_COMPRESS) -I$(TERMDIR)
  54. # OBJECTS2 = $(TERMDIR)/client.a
  55.  
  56.  
  57. #######################################################################
  58. #  Down to the real business...
  59. #
  60. $(TARGET): $(OBJECTS)
  61.     $(CC) $(CFLAGS) $(OBJECTS) $(OBJECTS2) -o $(TARGET) $(LIBS)
  62.  
  63. popclient.o: popclient.c popclient.h socket.h config.h
  64.  
  65. pop2.o: pop2.c popclient.h socket.h config.h
  66.  
  67. pop3.o: pop3.c popclient.h socket.h config.h
  68.  
  69. socket.o: socket.c socket.h config.h
  70.  
  71. install:
  72.     install -c -m 0755 popclient $(BINDIR)
  73.     install -c -m 0644 popclient.$(MANSECTION)L $(MANDIR)/man$(MANSECTION)
  74.  
  75. clean:
  76.     rm -f $(OBJECTS)
  77.     rm -f $(TARGET)
  78.     rm -f core
  79.