home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-10-25 | 1.2 KB | 65 lines |
- #
- # To use this Makefile you must first fill in the configuration information
- # below.
- #
- # To compile and link:
- # make
- #
- # To install:
- # make install
- #
- # To uninstall (remove):
- # make uninstall
- #
- # To clean up after the build type:
- # make clean
- #
-
- # START OF CONFIGURATION AREA
-
- # Change the following to the name of your program.
- # If your program source is called prog.c it would be:
- # PROGNAME=prog
-
- PROGNAME=hostent
-
- # Where to install the binary
- BINDIR = /usr/local/bin
-
- # Where to install the manual page.
- MANDIR = /usr/local/man/man1
-
- # cc flags (options which will be used by the c compiler)
- # Various "local" include files need -I/usr/local/include
- # most X11 applications will need -I/usr/openwin/include/X11
-
- CFLAGS= -O
-
- # C compiler to use.
- # cc by default, for gcc (GNU C) uncomment the next line
- #CC=gcc
-
- # linker flags.
-
- LDFLAGS=
-
- # END OF CONFIGURATION AREA
-
- $(PROGNAME): $(PROGNAME).o
- $(CC) $(PROGNAME).o -o $(PROGNAME) $(LDFLAGS)
-
- install:
- install $(PROGNAME) $(BINDIR)
- -cp $(PROGNAME).1 $(MANDIR)
- @echo
- @echo " If this is the first time that you have built this program"
- @echo " you must now type \"rehash\"."
- @echo
-
- uninstall:
- rm -f $(BINDIR)/$(PROGNAME)
-
- clean:
- rm -f $(PROGNAME).o $(PROGNAME)
-
-