Makefile 840 Bytes
Newer Older
Michael Ott's avatar
Michael Ott committed
1
include ../config.mk
2

3
CXXFLAGS =	-O2 -g --std=c++11 -Wall -Wno-unused-local-typedefs -Wno-deprecated-declarations -Wno-unknown-warning-option -fmessage-length=0 -I$(DCDBDEPLOYPATH)/include/ -I$(DCDBBASEPATH)/include/ -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG
4
OBJS =		collectagent.o \
5
		sensorcache.o \
6
7
8
		simplemqttserver.o \
		simplemqttserverthread.o \
		simplemqttservermessage.o
9
LIBS =		-L$(DCDBDEPLOYPATH)/lib/ -ldcdb -lpthread -lcassandra -luv -lboost_system -lboost_random -lboost_thread -lboost_date_time -lboost_regex -lssl -lcrypto
10
TARGET =	collectagent
11

12
.PHONY : clean install
13

14
P =		$(shell cd $(DCDBDEPLOYPATH)/lib/ && pwd)
15
U =		$(shell uname)
16

17
$(TARGET): $(OBJS)
18
	$(CXX) $(CXXFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
19
20
21

all:	$(TARGET)

22
23
24
clean:
	rm -f $(TARGET)
	rm -f $(OBJS)
25

26
install: $(TARGET)
27
	install $(TARGET) $(DCDBDEPLOYPATH)/bin/