Read-only mirror of official repo on openldap.org. Issues and pull requests here are ignored. Use OpenLDAP ITS for issues.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
CC = gcc
|
|
|
|
W = -W -Wall -Wno-unused-parameter -Wcast-qual -Wbad-function-cast
|
|
|
|
OPT = -O2 -g
|
|
|
|
CFLAGS = -pthread $(OPT) $(W) $(XCFLAGS)
|
|
|
|
LDLIBS =
|
|
|
|
|
|
|
|
all: mdb_stat mtest mtest2 mtest3
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf mtest mdb_stat *.[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
|
|
|
|
|
|
|
|
%: %.o mdb.o
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
|
|
|
|
|
|
|
|
%.o: %.c mdb.h
|
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
|