Loki/test/SafeFormat/Makefile
rich_sposato 6e39840984 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
2011-10-13 18:37:58 +00:00

18 lines
346 B
Makefile

include ../Makefile.common
BIN := main$(BIN_SUFFIX)
SRC := main.cpp ThreadPool.cpp
OBJ := $(SRC:.cpp=.o)
CXXFLAGS := $(CXXWARNFLAGS) -g -fexpensive-optimizations -O3
LDLIBS += -lpthread
.PHONY: all clean
all: $(BIN)
clean: cleandeps
$(RM) $(BIN)
$(RM) $(OBJ)
$(BIN): $(OBJ)
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)
include ../../Makefile.deps