diff options
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -3,6 +3,8 @@ include version includedir ?= /usr/include libdir ?= /usr/lib +LIBS = -lpthread + OBJS += \ MTS_Buffer.o \ MTS_Condition.o \ @@ -16,7 +18,7 @@ MTS_Thread.o \ MTS_Timer.o \ MTS_TimerThread.o -CPP_DEPPS+= \ +CPP_DEPPS += \ MTS_Buffer.d \ MTS_Condition.d \ MTS_Lock.d \ @@ -39,7 +41,7 @@ libmts.a: $(OBJS) libmts.so.0: $(OBJS) @echo 'Building target: $@' - $(CXX) -shared -Wl,-soname,$@ -o libmts.so.$(VERSION) $(OBJS) + $(CXX) -shared -Wl,-soname,$@ -o libmts.so.$(VERSION) $(OBJS) $(LIBS) @echo 'Finished building target: $@' @echo ' ' |