From: Hallvard B Furuseth Date: Wed, 29 Jun 2011 16:07:37 +0000 (+0200) Subject: Makefile X-Git-Tag: OPENLDAP_REL_ENG_2_4_27~148^2~173 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=84659a5bb6a474b50ad1b090c54e1df623d40778;p=openldap Makefile --- diff --git a/libraries/libmdb/Makefile b/libraries/libmdb/Makefile new file mode 100644 index 0000000000..13ce974e1b --- /dev/null +++ b/libraries/libmdb/Makefile @@ -0,0 +1,21 @@ +CC = gcc +W = -W -Wall -Wno-unused-parameter -Wcast-qual -Wbad-function-cast +CFLAGS = -pthread -O2 -g $(W) $(XCFLAGS) +LDLIBS = -lssl + +all: mtest mdb_stat + +clean: + rm -f mtest mdb_stat *.[ao] *~ testdb + +test: all + ./mtest && ./mdb_stat testdb + +mdb_stat: mdb_stat.o mdb.o +mtest: mtest.o mdb.o + +%: %.o mdb.o + $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@ + +%.o: %.c mdb.h + $(CC) $(CFLAGS) $(CPPFLAGS) -c $<