forked from mozilla-services/powerhose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 822 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
LIBFILES = Worker.cpp util.cpp
LIBOFILES = $(LIBFILES:%.cpp=%.o)
DIR = $(CURDIR)/libhose
INCLUDEDIR = -I$(DIR) -I/opt/local/include
LIBDIR = -L$(DIR) -L/opt/local/lib
OPTS = -g -Wall -Wextra
LIBS = -lpthread -lzmq -lprotobuf
.PHONY: docs all build buildex proto
all:
build
buildex
build:
cd $(DIR); rm -f libhose.a; rm -f *.o
cd $(DIR); g++ $(OPTS) $(INCLUDEDIR) $(LIBDIR) -c $(LIBFILES)
cd $(DIR); ar cq libhose.a $(LIBOFILES)
buildex:
cd examples; rm -f echo_worker
cd examples; g++ -o echo_worker echo_worker.cpp -lhose $(OPTS) $(INCLUDEDIR) $(LIBDIR) $(LIBS)
test: bin/nosetests
bin/nosetests -s powerhose
coverage: bin/coverage
bin/nosetests --with-coverage --cover-html --cover-html-dir=html --cover-package=powerhose
docs: bin/sphinx-build
SPHINXBUILD=../bin/sphinx-build $(MAKE) -C docs html $^