home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-03-22 | 1.3 KB | 59 lines |
- # Makefile - Makefile for dls
- #
- # Copyright (c) 1991 Tim Cook.
- # Non-profit distribution allowed. See README for details.
- #
- # $Header: Makefile 1.1 91/03/22 $
-
- # DBM is the default if NDBM is not defined
- DEFINES = -DNDBM
-
- # This may need tweaking (there is a choice between dbm and ndbm at least)
- LIBS = -lndbm
- #LIBS = -ldbm -lseq
-
- # Take out strpbrk.o if you have it in a library
- EXTRAS = strpbrk.o perror2.o
-
- # "root" is a local command that provides su privilege to specific users
- INSTALL = root install
-
- SHAR = shar -w
-
- #COPT = -g
- COPT = -O
- CFLAGS = $(COPT) -I. $(DEFINES)
- LDFLAGS = $(COPT)
- SOURCE = dls.c describe.c list.c list.h smalloc.c vclib.h \
- split_pathname.c dls.man describe.man strpbrk.c perror2.c
-
- all : dls describe
-
- doc : dls.1 describe.1
-
- install :
- $(INSTALL) -c -s -o bin -g cs -m 751 dls /usr/local/bin
- $(INSTALL) -c -s -o bin -g cs -m 751 describe /usr/local/bin
-
- shar :
- $(SHAR) README PORTING Makefile $(SOURCE) > dls.shar
-
- dls : dls.o list.o smalloc.o split_pathname.o
- $(CC) $(LDFLAGS) -o $@ dls.o list.o smalloc.o split_pathname.o $(LIBS)
-
- describe : describe.o split_pathname.o $(EXTRAS)
- $(CC) $(LDFLAGS) -o $@ describe.o split_pathname.o $(EXTRAS) $(LIBS)
-
- dls.c : list.h
-
- list.c : list.h
-
- strpbrk.o : strpbrk.c
- $(CC) -c -O $*.c
-
- dls.1 : dls.man
- nroff -man dls.man > $@
-
- describe.1 : describe.man
- nroff -man describe.man > $@
-