Makefile 849 Bytes
Newer Older
1
TARGET = perfpusher
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

DCDBBASEPATH ?= $(realpath $(dir $(lastword $(MAKEFILE_LIST)))/..)
DCDBCOREPATH ?= $(DCDBBASEPATH)/dcdb

include $(DCDBCOREPATH)/common.mk

CXXFLAGS = -std=c++0x -O2 -g -Wall -Werror -Wno-unused-local-typedefs -Wno-unknown-warning-option -Wno-deprecated-declarations -I$(DCDBDEPLOYPATH)/include -I$(DCDBBASEPATH)/include
CXXFLAGS =	-O2 -g -Wall -Wno-unused-function $(CXX11FLAGS) -I$(DCDBBASEPATH)/dcdb/include -I$(DCDBDEPLOYPATH)/include
LIBS = -L../deps/mosquitto_build/lib -L$(DCDBDEPLOYPATH)/lib/ -lmosquitto -lboost_system -lboost_thread
OBJS = perfpusher.o Configuration.o PerfCounter.o MQTTPusher.o

$(TARGET):	$(OBJS)
	$(CXX) -o $(TARGET) $(OBJS) $(LIBS)
	
all:	$(TARGET)

clean:
	rm -f $(OBJS) $(TARGET)

install: $(TARGET)
	install $(TARGET) $(DCDBDEPLOYPATH)/bin/
	install -m 644 $(TARGET).conf $(DCDBDEPLOYPATH)/etc