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

Add $(SOLIBS) macro for shared lib dependencies

parent dd9c56f0
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ W = -W -Wall -Wno-unused-parameter -Wbad-function-cast
OPT = -O2 -g
CFLAGS = -pthread $(OPT) $(W) $(XCFLAGS)
LDLIBS =
SOLIBS =
PROGS = mdb_stat mtest mtest2 mtest3 mtest4 mtest5
all: libmdb.a libmdb.so $(PROGS)
......@@ -18,7 +19,7 @@ libmdb.a: mdb.o midl.o
ar rs $@ mdb.o midl.o
libmdb.so: mdb.o midl.o
gcc -shared -o $@ mdb.o midl.o
gcc -shared -o $@ mdb.o midl.o $(SOLIBS)
mdb_stat: mdb_stat.o libmdb.a
mtest: mtest.o libmdb.a
......
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