Skip to content
Snippets Groups Projects
Commit 2a94ebce authored by Howard Chu's avatar Howard Chu
Browse files

Add install target

parent 13f3bcd5
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,18 @@ OPT = -O2 -g
CFLAGS = -pthread $(OPT) $(W) $(XCFLAGS)
LDLIBS =
SOLIBS =
PROGS = mdb_stat mdb_copy mtest mtest2 mtest3 mtest4 mtest5
all: liblmdb.a liblmdb.so $(PROGS)
prefix = /usr/local
IHDRS = lmdb.h
ILIBS = liblmdb.a liblmdb.so
IPROGS = mdb_stat mdb_copy
PROGS = $(IPROGS) mtest mtest2 mtest3 mtest4 mtest5
all: $(ILIBS) $(PROGS)
install: $(ILIBS) $(IPROGS) $(IHDRS)
cp $(IPROGS) $(prefix)/bin
cp $(ILIBS) $(prefix)/lib
cp $(IHDRS) $(prefix)/include
clean:
rm -rf $(PROGS) *.[ao] *.so *~ testdb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment