Updated make file to compile ThreadPool and use pthreads library.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1142 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
1fcba1aa3b
commit
6e39840984
1 changed files with 2 additions and 1 deletions
|
@ -1,9 +1,10 @@
|
||||||
include ../Makefile.common
|
include ../Makefile.common
|
||||||
|
|
||||||
BIN := main$(BIN_SUFFIX)
|
BIN := main$(BIN_SUFFIX)
|
||||||
SRC := main.cpp
|
SRC := main.cpp ThreadPool.cpp
|
||||||
OBJ := $(SRC:.cpp=.o)
|
OBJ := $(SRC:.cpp=.o)
|
||||||
CXXFLAGS := $(CXXWARNFLAGS) -g -fexpensive-optimizations -O3
|
CXXFLAGS := $(CXXWARNFLAGS) -g -fexpensive-optimizations -O3
|
||||||
|
LDLIBS += -lpthread
|
||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
|
Loading…
Reference in a new issue