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 >
Wrap
Makefile
|
1991-07-16
|
2KB
|
47 lines
# This is the makefile for pindex.
#
# If maxfiles.c won't compile on your system, just replace it with a
# module containing a function int maxfiles() that does whatever is
# necessary to obtain and return the maximum number of files your
# system permits to be open simultaneously.
INSTALL_DIR=/usr/local/bin
# Set to be the directory into which you would
# like the pindex executable to be copied.
CFLAGS=
# Compilation flags.
LFLAGS=
# Link editor flags.
CC=/usr/bin/cc
# Your C compiler.
PATHNAME_SEP=/
# The character which separates pathname components
# at your site.
COPY=cp
# Your command for copying a file.
EXECABLE=chmod 755
# Your command for making a file executable.
TOUCH=touch
# Your command for touching a file.
MKDIR=mkdir
# Your command for creating a directory.
# That's all the defines.
install: makedirs pindex
-$(COPY) pindex $(INSTALL_DIR)
-$(EXECABLE) $(INSTALL_DIR)$(PATHNAME_SEP)pindex
makedirs:
-$(MKDIR) $(INSTALL_DIR)
-$(TOUCH) makedirs
pindex: pindex.o fngetlin.o maxfiles.o
$(CC) -o pindex pindex.o fngetlin.o maxfiles.o
pindex.o: pindex.c
$(CC) $(CFLAGS) -c pindex.c
fngetlin.o: fngetlin.c
$(CC) $(CFLAGS) -c fngetlin.c
maxfiles.o: maxfiles.c
$(CC) $(CFLAGS) -c maxfiles.c
# RCS id of this makefile is $What: <@(#) Makefile,v 2.2> $