home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / os2 / rcs / rcs56src / source / gdbm / pc-files / makefile < prev    next >
Encoding:
Makefile  |  1992-01-19  |  2.8 KB  |  95 lines

  1. # Makefile for gdbm, not tested
  2.  
  3. CC    = cl -nologo
  4. MODEL    = L
  5. CFLAGS    = -A$(MODEL) -Ocegt -W2 -Za -DSYSV -DOS2
  6. LDFLAGS    = -Lp -F 8000 -link /noe
  7. LIBS    = pc-files\gdbm.def
  8. AR    = lib
  9. ARFLAGS    = -+
  10.  
  11. GDBMLIB    = $(MODEL)libgdbm.lib
  12.  
  13.  
  14. HFILES = gdbmdefs.h extern.h gdbmerrno.h systems.h dbm.h ndbm.h
  15. MISCFILES = COPYING ChangeLog Makefile README gdbm.proto conv2gdbm.c
  16. TESTFILES = testdbm.c testndbm.c testgdbm.c
  17.  
  18. DBM_OF = dbminit.obj delete.obj fetch.obj store.obj seq.obj
  19. NDBM_OF = dbmopen.obj dbmdelete.obj dbmfetch.obj dbmstore.obj dbmseq.obj \
  20.     dbmclose.obj dbmdirfno.obj dbmpagfno.obj
  21. GDBM_OF = gdbmopen.obj gdbmdelete.obj gdbmfetch.obj gdbmstore.obj \
  22.     gdbmclose.obj gdbmreorg.obj gdbmseq.obj \
  23.     bucket.obj falloc.obj findkey.obj global.obj hash.obj update.obj
  24.  
  25. .c.obj:
  26.     $(CC) $(CFLAGS) -Fo$*.obj -c $*.c
  27.  
  28. allgdbm: $(GDBMLIB) testgdbm.exe testdbm.exe testndbm.exe
  29.  
  30. $(GDBMLIB): version.c $(GDBM_OF) $(NDBM_OF) $(DBM_OF)
  31.     $(CC) $(CFLAGS) -c version.c
  32.     $(AR) $@ $(ARFLAGS) version.obj $(GDBM_OF) $(NDBM_OF) $(DBM_OF);
  33.  
  34. gdbm.h:    gdbm.proto gdbmerrn.h
  35.     copy gdbm.proto gdbm.h
  36.     grep _ gdbmerrn.h >> gdbm.h
  37.  
  38. testgdbm.exe: testgdbm.obj pc-files\getopt.obj $(GDBMLIB)
  39.     $(CC) $(CFLAGS) testgdbm.obj pc-files\getopt.obj $(LIBS) -o $@ $(GDBMLIB) $(LDFLAGS)
  40.  
  41. testdbm.exe: testdbm.obj $(GDBMLIB)
  42.     $(CC) $(CFLAGS) testdbm.obj $(LIBS) -o $@ $(GDBMLIB) $(LDFLAGS)
  43.  
  44. testndbm.obj: testndbm.c
  45.     $(CC) -c $(CFLAGS) -DGNU testndbm.c
  46.  
  47. testndbm.exe: testndbm.obj $(GDBMLIB)
  48.     $(CC) $(CFLAGS) testndbm.obj $(LIBS) -o $@ $(GDBMLIB) $(LDFLAGS)
  49.  
  50. clean:
  51.     rm -f gdbm.h *.obj *.map *.bak tags
  52.     rcsclean *.c *.h *.proto makefile
  53.  
  54. # dbm files
  55. dbminit.obj:    gdbmdefs.h extern.h gdbmerrno.h systems.h
  56. delete.obj:    gdbmdefs.h extern.h
  57. fetch.obj:    gdbmdefs.h extern.h
  58. store.obj:    gdbmdefs.h extern.h
  59. seq.obj:    gdbmdefs.h extern.h
  60.  
  61. # ndbm files
  62. dbmopen.obj:    gdbmdefs.h extern.h gdbmerrno.h systems.h
  63. dbmdelete.obj:    gdbmdefs.h extern.h
  64. dbmfetch.obj:    gdbmdefs.h extern.h
  65. dbmstore.obj:    gdbmdefs.h extern.h
  66. dbmseq.obj:    gdbmdefs.h extern.h
  67. dbmclose.obj:    gdbmdefs.h systems.h
  68. dbmpagfn.obj:    gdbmdefs.h extern.h
  69. dbmdirfn.obj:    gdbmdefs.h extern.h
  70.  
  71. # gdbm files
  72. gdbmclose.obj:    gdbmdefs.h systems.h
  73. gdbmdelete.obj:    gdbmdefs.h gdbmerrno.h systems.h
  74. gdbmfetch.obj:    gdbmdefs.h gdbmerrno.h systems.h
  75. gdbmopen.obj:    gdbmdefs.h gdbmerrno.h systems.h 
  76. gdbmreorg.obj:    gdbmdefs.h gdbmerrno.h systems.h extern.h
  77. gdbmseq.obj:    gdbmdefs.h systems.h
  78. gdbmstore.obj:    gdbmdefs.h gdbmerrno.h systems.h
  79.  
  80. # gdbm support files
  81. bucket.obj:    gdbmdefs.h systems.h
  82. falloc.obj:    gdbmdefs.h systems.h
  83. findkey.obj:    gdbmdefs.h systems.h
  84. global.obj:    gdbmdefs.h gdbmerrno.h 
  85. hash.obj:    gdbmdefs.h
  86. update.obj:    gdbmdefs.h systems.h
  87. version.obj:
  88. extern.h:    
  89.  
  90. # other programs
  91. testgdbm.obj:    gdbmdefs.h extern.h gdbmerrno.h systems.h
  92. testdbm.obj:    dbm.h
  93. testndbm.obj:    ndbm.h
  94. conv2gdbm.obj:    gdbm.h
  95.