home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Libraries / Berkeley DB 1.6 / PORT / Makefile < prev   
Encoding:
Makefile  |  1993-07-31  |  1.8 KB  |  56 lines  |  [TEXT/MPS ]

  1. #    @(#)Makefile    8.1 (Berkeley) 6/2/93
  2. #
  3. # MPW version Matthias Neeracher <neeri@iis.ee.ethz.ch>
  4. #
  5.  
  6. LIBDB=    libdb.o
  7. OBJ1=    bt_close.c.o bt_conv.c.o bt_debug.c.o bt_delete.c.o bt_get.c.o bt_open.c.o ∂
  8.     bt_overflow.c.o bt_page.c.o bt_put.c.o bt_search.c.o bt_seq.c.o bt_split.c.o ∂
  9.     bt_stack.c.o bt_utils.c.o
  10. OBJ2=    db.c.o
  11. OBJ3=    hash.c.o hash_bigkey.c.o hash_buf.c.o hash_func.c.o hash_log2.c.o hash_page.c.o ∂
  12.     hsearch.c.o ndbm.c.o
  13. OBJ4=    mpool.c.o
  14. OBJ5=    rec_close.c.o rec_delete.c.o rec_get.c.o rec_open.c.o rec_put.c.o rec_search.c.o ∂
  15.     rec_seq.c.o rec_utils.c.o
  16.  
  17. # If you don't have memmove(3), add memmove.o to the MISC line.
  18. #
  19. # If you don't have mktemp(3) or mkstemp(3), add mktemp.o to the MISC line.
  20. #
  21. # If realloc(3) of a NULL pointer on your system isn't the same as
  22. # a malloc(3) call, add realloc.o to the MISC line.
  23. #
  24. # If you don't have snprintf/vsnprintf(3), add snprintf.o to the MISC line.
  25. # Note, this depends you your having vsprintf(3) -- if you don't, there's
  26. # no workaround other than changing the source code to not use the snprintf
  27. # calls.  If you have to make that change, check to see if your vsprintf
  28. # returns a length or a char *; if it's the latter, set VSPRINTF_CHARSTAR
  29. # in the include/compat.h file.
  30.  
  31. COptions = -sym on -mbg full -i :include -i {DepDir} -d __STDC__ -s {DepDir}
  32. MISC=snprintf.c.o
  33.  
  34. : ƒ ::btree: ::db: ::hash: ::mpool: ::recno: :clib:
  35.  
  36. {LIBDB}ƒ {OBJ1} {OBJ2} {OBJ3} {OBJ4} {OBJ5} {MISC}
  37.     Lib -sym on -o {LIBDB} {OBJ1} {OBJ2} {OBJ3} {OBJ4} {OBJ5} {MISC} 
  38.  
  39. installƒ
  40.     Set OldExit {Exit}
  41.     Set Exit 0
  42.     Begin
  43.         Backup -a {LIBDB} -to "{CLibraries}"
  44.         Backup -a                 ∂
  45.             :include:db.h        ∂
  46.             :include:mpool.h    ∂
  47.             :include:ndbm.h    ∂
  48.                                 -to "{CIncludes}"
  49.     End > InstallDB
  50.     Set Exit {OldExit}
  51.     InstallDB
  52.     delete InstallDB
  53.     
  54. cleanƒ
  55.     safedel {LIBDB} {OBJ1} {OBJ2} {OBJ3} {OBJ4} {OBJ5} {MISC}
  56.