home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / GNU / GDBM14AS.ZIP / MAKEFILE < prev    next >
Encoding:
Text File  |  1992-02-22  |  4.0 KB  |  154 lines

  1. # Makefile for gdbm.
  2.  
  3. # MS-DOS port (c) 1990 by Thorsten Ohl, ohl@gnu.ai.mit.edu
  4. #
  5. # To this port, the same copying conditions apply as to the
  6. # original release.
  7. #
  8. # IMPORTANT:
  9. # This file is not identical to the original GNU release!
  10. # You should have received this code as patch to the official
  11. # GNU release.
  12. #
  13. # MORE IMPORTANT:
  14. # This port comes with ABSOLUTELY NO WARRANTY.
  15. #
  16. # $Header: e:/gnu/gdbm/RCS/makefile.'v 1.4.0.2 90/08/16 10:40:52 tho Exp $
  17.  
  18. BINDIR = c:/bin
  19. LIBDIR = d:/usr/lib
  20. INCDIR = d:/usr/include
  21.  
  22. INSTALL = cp -v
  23. DISK    = b:
  24. ZIPFILE = gdbm.zip
  25.  
  26. MODEL    = L
  27. CFLAGS    = -Ox -W4 -A$(MODEL) -DSYSV -Za
  28. LDFLAGS    = /st:0x8000 /e
  29. AR    = lib
  30. ARFLAGS    = -+
  31.  
  32. GDBMLIB    = $(MODEL)gdbm.lib
  33.  
  34.  
  35. DBM_CF = dbminit.c delete.c fetch.c store.c seq.c
  36. NDBM_CF = dbmopen.c dbmdelet.c dbmfetch.c dbmstore.c dbmseq.c \
  37.     dbmclose.c dbmdirfn.c dbmpagfn.c
  38. GDBM_CF = gdbmopen.c gdbmdele.c gdbmfetc.c  gdbmstor.c gdbmclos.c \
  39.     gdbmreor.c gdbmseq.c \
  40.     bucket.c falloc.c findkey.c global.c hash.c update.c version.c
  41.  
  42. HFILES = gdbmdefs.h extern.h gdbmerrn.h systems.h dbm.h ndbm.h
  43.  
  44. MSCFILES = copying changelo makefile readme gdbm.pro conv2gdb.c
  45.  
  46. TESTFILES = testdbm.c testndbm.c testgdbm.c
  47.  
  48.  
  49. RCSFILES= $(patsubst %, RCS/%'v, $(DBM_CF) $(NBM_CF) $(GBM_CF)) \
  50.       RCS/makefile.'v
  51. MISC    = RCS/readme'v changelo RCS/changelo.'v makepat mkpatch
  52.  
  53. DBM_OF = dbminit.obj delete.obj fetch.obj store.obj seq.obj
  54. NDBM_OF = dbmopen.obj dbmdelet.obj dbmfetch.obj dbmstore.obj dbmseq.obj \
  55.     dbmclose.obj dbmdirfn.obj dbmpagfn.obj
  56. GDBM_OF = gdbmopen.obj gdbmdele.obj gdbmfetc.obj  gdbmstor.obj gdbmclos.obj \
  57.     gdbmreor.obj gdbmseq.obj \
  58.     bucket.obj falloc.obj findkey.obj global.obj hash.obj update.obj
  59.  
  60.  
  61. .PHONY: allgdbm
  62. allgdbm: $(GDBMLIB) testgdbm.exe testdbm.exe testndbm.exe
  63.  
  64. .PHONY: install
  65. install: $(GDBMLIB) gdbmdefs.h
  66.     cp $(GDBMLIB) $(LIBDIR)
  67.     cp gdbmdefs.h $(INCDIR)
  68.  
  69. $(GDBMLIB): version.c $(GDBM_OF) $(NDBM_OF) $(DBM_OF)
  70.     $(CC) $(CFLAGS) -c version.c
  71.     $(AR) $@ $(ARFLAGS) version $(subst version.c,,$?);
  72.  
  73. gdbm.h:    gdbm.pro gdbmerrn.h
  74.     cp gdbm.pro gdbm.h
  75.     grep _ gdbmerrn.h >> gdbm.h
  76.  
  77. gdbm.pro: RCS/gdbm.p'v
  78.     $(CO) $(COFLAGS) $@
  79.  
  80. testgdbm.exe: testgdbm.obj $(GDBMLIB)
  81.     $(LINK) $(LDFLAGS) testgdbm, $@,, $(GDBMLIB);
  82.  
  83. testdbm.exe: testdbm.obj $(GDBMLIB)
  84.     $(LINK) $(LDFLAGS) testdbm, $@,, $(GDBMLIB);
  85.  
  86. testndbm.obj: testndbm.c
  87.     $(CC) -c $(CFLAGS) -DGNU testndbm.c
  88.  
  89. testndbm.exe: testndbm.obj $(GDBMLIB)
  90.     $(LINK) $(LDFLAGS) testndbm, $@,, $(GDBMLIB);
  91.  
  92.  
  93. .PHONY: zip disk
  94. zip: $(ZIPFILE)
  95. disk: $(DISK)/$(ZIPFILE)
  96.  
  97. $(ZIPFILE): $(RCSFILES) $(MISC)
  98.     pkzip -frp $@
  99.  
  100. $(DISK)/$(ZIPFILE): $(ZIPFILE)
  101.     cp $< $@
  102.     pkunzip -t $@ | grep -vw OK
  103.  
  104. .PHONY: clean
  105. clean:
  106.     rm -f gdbm.h *.obj *.map *.bak tags
  107.     rcsclean *.c *.h *.pro makefile
  108.  
  109. tags: $(GDBM_CF) $(HFILES) $(TESTFILES) $(NDBM_CF) $(DBM_CF) 
  110.     etags -t *.c *.h
  111.  
  112. # dbm files
  113. dbminit.obj:    gdbmdefs.h extern.h gdbmerrn.h systems.h
  114. delete.obj:    gdbmdefs.h extern.h
  115. fetch.obj:    gdbmdefs.h extern.h
  116. store.obj:    gdbmdefs.h extern.h
  117. seq.obj:    gdbmdefs.h extern.h
  118.  
  119. # ndbm files
  120. dbmopen.obj:    gdbmdefs.h extern.h gdbmerrn.h systems.h
  121. dbmdelet.obj:    gdbmdefs.h extern.h
  122. dbmfetch.obj:    gdbmdefs.h extern.h
  123. dbmstore.obj:    gdbmdefs.h extern.h
  124. dbmseq.obj:    gdbmdefs.h extern.h
  125. dbmclose.obj:    gdbmdefs.h systems.h
  126. dbmpagfn.obj:    gdbmdefs.h extern.h
  127. dbmdirfn.obj:    gdbmdefs.h extern.h
  128.  
  129.  
  130. # gdbm files
  131. gdbmclos.obj:    gdbmdefs.h systems.h
  132. gdbmdele.obj:    gdbmdefs.h gdbmerrn.h systems.h
  133. gdbmfetc.obj:    gdbmdefs.h gdbmerrn.h systems.h
  134. gdbmopen.obj:    gdbmdefs.h gdbmerrn.h systems.h 
  135. gdbmreor.obj:    gdbmdefs.h gdbmerrn.h systems.h extern.h
  136. gdbmseq.obj:    gdbmdefs.h systems.h
  137. gdbmstor.obj:    gdbmdefs.h gdbmerrn.h systems.h
  138.  
  139. # gdbm support files
  140. bucket.obj:    gdbmdefs.h systems.h
  141. falloc.obj:    gdbmdefs.h systems.h
  142. findkey.obj:    gdbmdefs.h systems.h
  143. global.obj:    gdbmdefs.h gdbmerrn.h 
  144. hash.obj:        gdbmdefs.h
  145. update.obj:    gdbmdefs.h systems.h
  146. version.obj:
  147. extern.h:    
  148.  
  149. # other programs
  150. testgdbm.obj:    gdbmdefs.h extern.h gdbmerrn.h systems.h
  151. testdbm.obj:    dbm.h
  152. testndbm.obj:    ndbm.h
  153. conv2gdb.obj:    gdbm.h
  154.