home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / gdbm-1.7.1-src.lha / src / build / gdbm-1.7.1 / Makefile < prev   
Makefile  |  1994-02-22  |  6KB  |  227 lines

  1. # Generated automatically from Makefile.in by configure.
  2. #### Start of system configuration section. ####
  3.  
  4. srcdir = /ISO/gdbm/gdbm-1.7.1-amiga
  5. VPATH = /ISO/gdbm/gdbm-1.7.1-amiga
  6.  
  7. CC = gcc
  8.  
  9. INSTALL = /bin/install -c
  10. INSTALL_PROGRAM = $(INSTALL)
  11. INSTALL_DATA = $(INSTALL) -m 644
  12.  
  13. MAKEINFO = makeinfo
  14. TEXI2DVI = texi2dvi
  15. RANLIB = ranlib
  16.  
  17. DEFS =
  18.  
  19. LIBS =  -lc
  20.  
  21. # SunOS users might wish to add '-fpcc-struct-return' to CFLAGS. see INSTALL.
  22. CFLAGS = -O2
  23. LDFLAGS =
  24.  
  25. # Common prefix for installation directories
  26. prefix = /gnu
  27. exec_prefix = $(prefix)
  28. binprefix = $(exec_prefix)
  29. manprefix = $(prefix)
  30.  
  31. # Directory in which to put libgdbm.a.
  32. libdir = $(exec_prefix)/lib
  33. # The include directory for gdbm.h and dbm.h.
  34. includedir = $(prefix)/include
  35. # The include directory for standard cc.
  36. oldincludedir = /gnu/include
  37. # Info and man directories.
  38. infodir = $(prefix)/info
  39. man3dir = $(prefix)/man/man3
  40. manext = 3
  41.  
  42. #### End of system configuration section. ####
  43.  
  44. .c.o:
  45.     $(CC) -c $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) $(CFLAGS) $<
  46.  
  47. SHELL = /bin/sh
  48.  
  49. PROGS = libgdbm.a testgdbm testdbm testndbm # tndbm tdbm conv2gdbm
  50.  
  51. DBM_CF = dbminit.c delete.c fetch.c store.c seq.c close.c
  52.  
  53. NDBM_CF = dbmopen.c dbmdelete.c dbmfetch.c dbmstore.c dbmseq.c \
  54.     dbmclose.c dbmdirfno.c dbmpagfno.c dbmrdonly.c
  55.  
  56. GDBM_CF = gdbmopen.c gdbmdelete.c gdbmfetch.c  gdbmstore.c gdbmclose.c \
  57.     gdbmreorg.c gdbmseq.c gdbmsync.c gdbmerrno.c gdbmexists.c gdbmsetopt.c \
  58.     bucket.c falloc.c findkey.c global.c hash.c update.c version.c
  59.  
  60. TEST_CF = testdbm.c testndbm.c testgdbm.c
  61.  
  62.  
  63. DBM_OF = dbminit.o delete.o fetch.o store.o seq.o close.o
  64.  
  65. NDBM_OF = dbmopen.o dbmdelete.o dbmfetch.o dbmstore.o dbmseq.o \
  66.     dbmclose.o dbmdirfno.o dbmpagfno.o dbmrdonly.o
  67.  
  68. GDBM_OF = gdbmopen.o gdbmdelete.o gdbmfetch.o  gdbmstore.o gdbmclose.o \
  69.     gdbmreorg.o gdbmseq.o gdbmsync.o gdbmerrno.o gdbmexists.o gdbmsetopt.o \
  70.     bucket.o falloc.o findkey.o global.o hash.o update.o version.o
  71.  
  72. TEX_F = gdbm.aux gdbm.cp gdbm.dvi gdbm.fn gdbm.ky gdbm.log gdbm.pg \
  73.     gdbm.toc gdbm.tp gdbm.vr
  74.  
  75. TEXI_F = gdbm.info
  76.      
  77. SRCS = $(DBM_CF) $(NDBM_CF) $(GDBM_CF) $(TEST_CF)
  78.  
  79. OBJS = $(DBM_OF) $(NDBM_OF) $(GDBM_OF) 
  80.  
  81. HDRS = gdbmdefs.h extern.h gdbmerrno.h systems.h dbm.h ndbm.h gdbmconst.h \
  82.     proto.h
  83.  
  84. MSCFILES = COPYING ChangeLog Makefile.in README gdbm.3 gdbm.texinfo \
  85.     gdbm.info NEWS INSTALL gdbm.proto gdbm.proto2 conv2gdbm.c \
  86.     configure configure.in alloca.c getopt.c getopt.h samp1.cc \
  87.     autoconf.h.in
  88.  
  89. DISTFILES = $(SRCS) $(HDRS) $(MSCFILES)
  90.  
  91. all: $(PROGS)
  92.  
  93. install: libgdbm.a gdbm.h gdbm.info
  94.     $(INSTALL_DATA) libgdbm.a $(libdir)/libgdbm.a
  95.     $(INSTALL_DATA) gdbm.h $(includedir)/gdbm.h
  96.     $(INSTALL_DATA) $(srcdir)/dbm.h $(includedir)/dbm.h
  97.     -if [ -d $(man3dir) ] ; then true ; else mkdir -p $(man3dir) ; fi
  98.     $(INSTALL_DATA) $(srcdir)/gdbm.3 $(man3dir)/gdbm.3
  99.     -if [ -d $(infodir) ] ; then true ; else mkdir -p $(infodir) ; fi
  100.     $(INSTALL_DATA) $(srcdir)/gdbm.info $(infodir)/gdbm.info
  101.  
  102. libgdbm.a: $(OBJS) gdbm.h
  103.     rm -f libgdbm.a
  104.     ar q libgdbm.a $(OBJS)
  105.     $(RANLIB) libgdbm.a
  106.  
  107. gdbm.h:    gdbm.proto gdbmerrno.h gdbm.proto2
  108.     rm -f gdbm.h
  109.     cp $(srcdir)/gdbm.proto gdbm.h
  110.     chmod +w gdbm.h
  111.     grep _ $(srcdir)/gdbmerrno.h >> gdbm.h
  112.     cat $(srcdir)/gdbm.proto2 >> gdbm.h
  113.     chmod -w gdbm.h
  114.  
  115. testgdbm: testgdbm.o libgdbm.a 
  116.     $(CC) $(LDFLAGS) -o testgdbm testgdbm.o libgdbm.a 
  117.  
  118. testdbm: testdbm.o libgdbm.a
  119.     $(CC) $(LDFLAGS) -o testdbm testdbm.o libgdbm.a
  120.  
  121. tdbm: testdbm.o libgdbm.a
  122.     $(CC) $(LDFLAGS) -o tdbm testdbm.o $(LIBS)
  123.  
  124. testndbm.o: testndbm.c
  125.     $(CC) -c -I. -I$(srcdir) $(CFLAGS) $(DEFS) -DGNU $(srcdir)/testndbm.c
  126.  
  127. testndbm: testndbm.o libgdbm.a
  128.     $(CC) $(LDFLAGS) -o testndbm testndbm.o libgdbm.a
  129.  
  130. tndbm.o: testndbm.c
  131.     cp $(srcdir)/testndbm.c $(srcdir)/tndbm.c
  132.     $(CC) -c -I. -I$(srcdir) $(CFLAGS) $(DEFS) $(srcdir)/tndbm.c
  133.     rm -f $(srcdir)/tndbm.c
  134.  
  135. tndbm: tndbm.o libgdbm.a
  136.     $(CC) $(LDFLAGS) -o tndbm tndbm.o $(LIBS)
  137.  
  138. conv2gdbm: conv2gdbm.o libgdbm.a 
  139.     $(CC) $(LDFLAGS) -o conv2gdbm conv2gdbm.o $(LIBS) libgdbm.a 
  140.  
  141. lintgdbm: 
  142.     lint $(DEFS) $(LFLAGS) $(DBM_CF) $(NDBM_CF) $(GDBM_CF) testgdbm.c
  143.  
  144. TAGS: $(SRCS)
  145.     etags $(SRCS)
  146.  
  147. info: gdbm.info
  148.  
  149. gdbm.info:
  150.     $(MAKEINFO) $(srcdir)/gdbm.texinfo
  151.  
  152. dvi: gdbm.dvi
  153.  
  154. gdbm.dvi:
  155.     $(TEXI2DVI) $(srcdir)/gdbm.texinfo
  156.  
  157. clean:
  158.     rm -f $(PROGS) $(TEX_F) *.o core junk*
  159.  
  160. mostlyclean: clean
  161.  
  162. distclean: clean
  163.     rm -f Makefile autoconf.h config.status gdbm.h $(TEXI_F) *~
  164.  
  165. realclean: distclean
  166.     rm -f TAGS
  167.     -rm -f \
  168.       `sed -n 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/gdbm-\1/p' \
  169.         version.c`.tar.gz
  170.  
  171. dist:
  172.     echo \
  173.       `sed -n 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/gdbm-\1/p' \
  174.         version.c` > .fname
  175.     rm -rf `cat .fname`
  176.     mkdir `cat .fname`
  177.     ln $(DISTFILES) `cat .fname`
  178.     tar chf `cat .fname`.tar `cat .fname`
  179.     gzip `cat .fname`.tar
  180.     rm -rf `cat .fname` .fname
  181.  
  182. # dbm files
  183. dbminit.o:    autoconf.h gdbmdefs.h proto.h extern.h gdbmerrno.h
  184. delete.o:    autoconf.h gdbmdefs.h proto.h extern.h
  185. fetch.o:    autoconf.h gdbmdefs.h proto.h extern.h
  186. store.o:    autoconf.h gdbmdefs.h proto.h extern.h
  187. seq.o:        autoconf.h gdbmdefs.h proto.h extern.h
  188.  
  189. # ndbm files
  190. dbmopen.o:    autoconf.h gdbmdefs.h extern.h gdbmerrno.h
  191. dbmdelete.o:    autoconf.h gdbmdefs.h extern.h
  192. dbmfetch.o:    autoconf.h gdbmdefs.h extern.h
  193. dbmstore.o:    autoconf.h gdbmdefs.h extern.h
  194. dbmseq.o:    autoconf.h gdbmdefs.h extern.h
  195. dbmclose.o:    autoconf.h gdbmdefs.h systems.h
  196. dbmpagfno.o:    autoconf.h gdbmdefs.h extern.h
  197. dbmdirfno.o:    autoconf.h gdbmdefs.h extern.h
  198.  
  199.  
  200. # gdbm files
  201. gdbmclose.o:    autoconf.h gdbmdefs.h 
  202. gdbmdelete.o:    autoconf.h gdbmdefs.h gdbmerrno.h 
  203. gdbmfetch.o:    autoconf.h gdbmdefs.h gdbmerrno.h 
  204. gdbmopen.o:    autoconf.h gdbmdefs.h gdbmerrno.h 
  205. gdbmreorg.o:    autoconf.h gdbmdefs.h gdbmerrno.h extern.h
  206. gdbmseq.o:    autoconf.h gdbmdefs.h 
  207. gdbmstore.o:    autoconf.h gdbmdefs.h gdbmerrno.h 
  208.  
  209. # gdbm support files
  210. bucket.o:    autoconf.h gdbmdefs.h
  211. falloc.o:    autoconf.h gdbmdefs.h
  212. findkey.o:    autoconf.h gdbmdefs.h
  213. global.o:    autoconf.h gdbmdefs.h gdbmerrno.h 
  214. hash.o:        autoconf.h gdbmdefs.h
  215. update.o:    autoconf.h gdbmdefs.h
  216. version.o:
  217. extern.h:
  218. gdbmdefs.h:    gdbmconst.h systems.h
  219.     touch gdbmdefs.h
  220.  
  221. # other programs
  222. testgdbm.o:    autoconf.h gdbmdefs.h extern.h gdbmerrno.h systems.h
  223. testdbm.o:    autoconf.h
  224. testndbm.o:    autoconf.h ndbm.h
  225. tdbm.o:        autoconf.h
  226. conv2gdbm.o:    autoconf.h gdbm.h
  227.