summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d1e6a87..04855ef 100644
--- a/Makefile
+++ b/Makefile
@@ -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 ' '