home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / net / bind-contrib.tar.gz / bind-contrib.tar / contrib / misc / hostent.shar / Makefile < prev   
Encoding:
Makefile  |  1996-10-25  |  1.2 KB  |  65 lines

  1. #
  2. # To use this Makefile you must first fill in the configuration information
  3. # below.
  4. #
  5. # To compile and link:
  6. # make
  7. #
  8. # To install:
  9. # make install
  10. #
  11. # To uninstall (remove):
  12. # make uninstall
  13. #
  14. # To clean up after the build type:
  15. # make clean
  16. #
  17.  
  18. # START OF CONFIGURATION AREA
  19.  
  20. # Change the following to the name of your program.
  21. # If your program source is called prog.c it would be:
  22. # PROGNAME=prog
  23.  
  24. PROGNAME=hostent
  25.  
  26. # Where to install the binary
  27. BINDIR = /usr/local/bin
  28.  
  29. # Where to install the manual page.
  30. MANDIR = /usr/local/man/man1
  31.  
  32. # cc flags (options which will be used by the c compiler)
  33. # Various "local" include files need -I/usr/local/include
  34. # most X11 applications will need -I/usr/openwin/include/X11
  35.  
  36. CFLAGS= -O
  37.  
  38. # C compiler to use.
  39. # cc by default, for gcc (GNU C) uncomment the next line
  40. #CC=gcc
  41.  
  42. # linker flags.
  43.  
  44. LDFLAGS= 
  45.  
  46. # END OF CONFIGURATION AREA
  47.  
  48. $(PROGNAME): $(PROGNAME).o
  49.     $(CC) $(PROGNAME).o -o $(PROGNAME) $(LDFLAGS)
  50.  
  51. install:
  52.     install $(PROGNAME) $(BINDIR)
  53.     -cp $(PROGNAME).1 $(MANDIR)
  54.     @echo
  55.     @echo "      If this is the first time that you have built this program"
  56.     @echo "      you must now type \"rehash\"."
  57.     @echo
  58.  
  59. uninstall:
  60.     rm -f $(BINDIR)/$(PROGNAME)
  61.  
  62. clean:
  63.     rm -f $(PROGNAME).o $(PROGNAME)
  64.  
  65.