home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-07-31 | 1.8 KB | 56 lines | [TEXT/MPS ] |
- # @(#)Makefile 8.1 (Berkeley) 6/2/93
- #
- # MPW version Matthias Neeracher <neeri@iis.ee.ethz.ch>
- #
-
- LIBDB= libdb.o
- 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 ∂
- bt_overflow.c.o bt_page.c.o bt_put.c.o bt_search.c.o bt_seq.c.o bt_split.c.o ∂
- bt_stack.c.o bt_utils.c.o
- OBJ2= db.c.o
- OBJ3= hash.c.o hash_bigkey.c.o hash_buf.c.o hash_func.c.o hash_log2.c.o hash_page.c.o ∂
- hsearch.c.o ndbm.c.o
- OBJ4= mpool.c.o
- 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 ∂
- rec_seq.c.o rec_utils.c.o
-
- # If you don't have memmove(3), add memmove.o to the MISC line.
- #
- # If you don't have mktemp(3) or mkstemp(3), add mktemp.o to the MISC line.
- #
- # If realloc(3) of a NULL pointer on your system isn't the same as
- # a malloc(3) call, add realloc.o to the MISC line.
- #
- # If you don't have snprintf/vsnprintf(3), add snprintf.o to the MISC line.
- # Note, this depends you your having vsprintf(3) -- if you don't, there's
- # no workaround other than changing the source code to not use the snprintf
- # calls. If you have to make that change, check to see if your vsprintf
- # returns a length or a char *; if it's the latter, set VSPRINTF_CHARSTAR
- # in the include/compat.h file.
-
- COptions = -sym on -mbg full -i :include -i {DepDir} -d __STDC__ -s {DepDir}
- MISC=snprintf.c.o
-
- : ƒ ::btree: ::db: ::hash: ::mpool: ::recno: :clib:
-
- {LIBDB}ƒ {OBJ1} {OBJ2} {OBJ3} {OBJ4} {OBJ5} {MISC}
- Lib -sym on -o {LIBDB} {OBJ1} {OBJ2} {OBJ3} {OBJ4} {OBJ5} {MISC}
-
- installƒ
- Set OldExit {Exit}
- Set Exit 0
- Begin
- Backup -a {LIBDB} -to "{CLibraries}"
- Backup -a ∂
- :include:db.h ∂
- :include:mpool.h ∂
- :include:ndbm.h ∂
- -to "{CIncludes}"
- End > InstallDB
- Set Exit {OldExit}
- InstallDB
- delete InstallDB
-
- cleanƒ
- safedel {LIBDB} {OBJ1} {OBJ2} {OBJ3} {OBJ4} {OBJ5} {MISC}
-