home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3648 / Makefile < prev    next >
Makefile  |  1991-07-16  |  2KB  |  47 lines

  1. # This is the makefile for pindex. 
  2. #
  3. # If maxfiles.c won't compile on your system, just replace it with a
  4. # module containing a function int maxfiles() that does whatever is 
  5. # necessary to obtain and return the maximum number of files your 
  6. # system permits to be open simultaneously.  
  7. INSTALL_DIR=/usr/local/bin
  8.                          # Set to be the directory into which you would 
  9.                          # like the pindex executable to be copied.  
  10. CFLAGS=
  11.                          # Compilation flags.
  12. LFLAGS=
  13.                          # Link editor flags.
  14. CC=/usr/bin/cc
  15.                          # Your C compiler.
  16. PATHNAME_SEP=/
  17.                          # The character which separates pathname components
  18.                          # at your site.
  19. COPY=cp
  20.                          # Your command for copying a file.
  21. EXECABLE=chmod 755
  22.                          # Your command for making a file executable.
  23. TOUCH=touch
  24.                          # Your command for touching a file.
  25. MKDIR=mkdir
  26.                          # Your command for creating a directory.
  27.  
  28. # That's all the defines.
  29.  
  30. install: makedirs pindex
  31.     -$(COPY) pindex $(INSTALL_DIR)
  32.     -$(EXECABLE) $(INSTALL_DIR)$(PATHNAME_SEP)pindex
  33. makedirs:
  34.     -$(MKDIR) $(INSTALL_DIR) 
  35.     -$(TOUCH) makedirs
  36. pindex: pindex.o fngetlin.o maxfiles.o 
  37.     $(CC) -o pindex pindex.o fngetlin.o maxfiles.o
  38. pindex.o: pindex.c
  39.     $(CC) $(CFLAGS) -c pindex.c 
  40. fngetlin.o: fngetlin.c
  41.     $(CC) $(CFLAGS) -c fngetlin.c
  42. maxfiles.o: maxfiles.c
  43.     $(CC) $(CFLAGS) -c maxfiles.c
  44.  
  45. # RCS id of this makefile is $What: <@(#) Makefile,v    2.2> $
  46.  
  47.