home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3107 / Makefile < prev    next >
Encoding:
Makefile  |  1991-03-22  |  1.3 KB  |  59 lines

  1. # Makefile -    Makefile for dls
  2. #
  3. # Copyright (c) 1991 Tim Cook.
  4. # Non-profit distribution allowed.  See README for details.
  5. #
  6. # $Header: Makefile 1.1 91/03/22 $
  7.  
  8. # DBM is the default if NDBM is not defined
  9. DEFINES =    -DNDBM
  10.  
  11. # This may need tweaking (there is a choice between dbm and ndbm at least)
  12. LIBS =        -lndbm
  13. #LIBS =        -ldbm -lseq
  14.  
  15. # Take out strpbrk.o if you have it in a library
  16. EXTRAS =    strpbrk.o perror2.o
  17.  
  18. # "root" is a local command that provides su privilege to specific users
  19. INSTALL = root install
  20.  
  21. SHAR =        shar -w
  22.  
  23. #COPT =        -g
  24. COPT =        -O
  25. CFLAGS =    $(COPT) -I. $(DEFINES)
  26. LDFLAGS =    $(COPT)
  27. SOURCE =    dls.c describe.c list.c list.h smalloc.c vclib.h \
  28.         split_pathname.c dls.man describe.man strpbrk.c perror2.c
  29.  
  30. all : dls describe
  31.  
  32. doc : dls.1 describe.1
  33.  
  34. install :
  35.     $(INSTALL) -c -s -o bin -g cs -m 751 dls /usr/local/bin
  36.     $(INSTALL) -c -s -o bin -g cs -m 751 describe /usr/local/bin
  37.  
  38. shar :
  39.     $(SHAR) README PORTING Makefile $(SOURCE) > dls.shar
  40.  
  41. dls : dls.o list.o smalloc.o split_pathname.o
  42.     $(CC) $(LDFLAGS) -o $@ dls.o list.o smalloc.o split_pathname.o $(LIBS)
  43.  
  44. describe : describe.o split_pathname.o $(EXTRAS)
  45.     $(CC) $(LDFLAGS) -o $@ describe.o split_pathname.o $(EXTRAS) $(LIBS)
  46.  
  47. dls.c :    list.h
  48.  
  49. list.c : list.h
  50.  
  51. strpbrk.o : strpbrk.c
  52.     $(CC) -c -O $*.c
  53.  
  54. dls.1 :    dls.man
  55.     nroff -man dls.man > $@
  56.  
  57. describe.1 : describe.man
  58.     nroff -man describe.man > $@
  59.