]> git.sur5r.net Git - openldap/blobdiff - libraries/libmdb/Makefile
More subDB stuff
[openldap] / libraries / libmdb / Makefile
index 13ce974e1b7314be135ebfc3fc8fed5e22f80692..92fed9493579ee53afafa5811ef09a5f141a9599 100644 (file)
@@ -1,18 +1,21 @@
 CC     = gcc
 W      = -W -Wall -Wno-unused-parameter -Wcast-qual -Wbad-function-cast
-CFLAGS = -pthread -O2 -g $(W) $(XCFLAGS)
-LDLIBS = -lssl
+OPT = -O2 -g
+CFLAGS = -pthread $(OPT) $(W) $(XCFLAGS)
+LDLIBS =
 
 all:   mtest mdb_stat
 
 clean:
-       rm -f mtest mdb_stat *.[ao] *~ testdb
+       rm -rf mtest mdb_stat *.[ao] *~ testdb
 
 test:  all
+       mkdir testdb
        ./mtest && ./mdb_stat testdb
 
-mdb_stat: mdb_stat.o mdb.o
-mtest:    mtest.o    mdb.o
+mdb_stat: mdb_stat.o mdb.o idl.o
+mtest:    mtest.o    mdb.o idl.o
+mtest2:        mtest2.o mdb.o idl.o
 
 %:     %.o mdb.o
        $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@