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

3
CXXFLAGS =	-O0 -g --std=c++11 -Wall -Wno-unused-local-typedefs -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
6
7
		simplemqttserver.o \
		simplemqttserverthread.o \
		simplemqttservermessage.o
Axel Auweter's avatar
Axel Auweter committed
8
LIBS =		-L$(DCDBDEPLOYPATH)/lib/ -ldcdb -lpthread -lcassandra -luv -lboost_system -lboost_random -lboost_thread -lboost_date_time
9
TARGET =	collectagent
10

11
.PHONY : clean install
12

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

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

all:	$(TARGET)

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

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