Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HAMANO Tsukasa
OpenLDAP
Commits
785d8e18
Commit
785d8e18
authored
Aug 11, 2011
by
Howard Chu
Browse files
Start using as a library
parent
920115f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
libraries/libmdb/Makefile
View file @
785d8e18
...
...
@@ -4,21 +4,25 @@ OPT = -O2 -g
CFLAGS
=
-pthread
$(OPT)
$(W)
$(XCFLAGS)
LDLIBS
=
all
:
mdb_stat mtest mtest2 mtest3
PROGS
=
mdb_stat mtest mtest2 mtest3
all
:
libmdb.a $(PROGS)
clean
:
rm
-rf
mtest mdb_stat
*
.[ao]
*
~ testdb
rm
-rf
$(PROGS)
*
.[ao]
*
~ testdb
test
:
all
mkdir
testdb
./mtest
&&
./mdb_stat testdb
mdb_stat
:
mdb_stat.o mdb.o idl.o
mtest
:
mtest.o mdb.o idl.o
mtest2
:
mtest2.o mdb.o idl.o
mtest3
:
mtest3.o mdb.o idl.o
libmdb.a
:
mdb.o idl.o
ar rs
$@
mdb.o idl.o
%
:
%.o mdb.o
mdb_stat
:
mdb_stat.o libmdb.a
mtest
:
mtest.o libmdb.a
mtest2
:
mtest2.o libmdb.a
mtest3
:
mtest3.o libmdb.a
%
:
%.o
$(CC)
$(CFLAGS)
$(LDFLAGS)
$^
$(LDLIBS)
-o
$@
%.o
:
%.c mdb.h
...
...
libraries/libmdb/idl.c
View file @
785d8e18
...
...
@@ -14,7 +14,7 @@
* <http://www.OpenLDAP.org/license.html>.
*/
#include
<string
s
.h>
#include
<string.h>
#include
<sys/types.h>
#include
<assert.h>
#include
"idl.h"
...
...
libraries/libmdb/idl.h
View file @
785d8e18
...
...
@@ -17,7 +17,7 @@
#ifndef _MDB_IDL_H_
#define _MDB_IDL_H_
#define AC_MEMCPY(dst,src,size)
bcopy(src,dst
,size)
#define AC_MEMCPY(dst,src,size)
memcpy(dst,src
,size)
#define ID unsigned long
#define NOID ((ID)~0)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment