Makefile 783 Bytes
Newer Older
1
2
include ../../config.mk

Axel Auweter's avatar
Axel Auweter committed
3
CXXFLAGS =	-O2 -ggdb --std=c++11 -Wall -Wno-unused-local-typedefs -Wno-unknown-warning-option -fmessage-length=0 -I$(DCDBDEPLOYPATH)/include/ -I$(DCDBBASEPATH)/include/
Axel Auweter's avatar
Axel Auweter committed
4
5
OBJS =		dcdbconfig.o sensoraction.o useraction.o
LIBS =		-L$(DCDBDEPLOYPATH)/lib/ -ldcdb -lcassandra -luv -lboost_random -lboost_system -lboost_date_time -lssl -lcrypto
6
7
8
9
10
11
# GCC 4.8 is broken
ifeq ($(findstring 4.8, $(shell $(CXX) --version)), 4.8)
SLIBS =         $(DCDBDEPLOYPATH)/lib/libboost_random.a $(DCDBDEPLOYPATH)/lib/libboost_system.a
else
SLIBS =
endif
12
13
14
15
16
TARGET =	dcdbconfig

.PHONY : clean install

$(TARGET): $(OBJS)
17
	$(CXX) -o $(TARGET) $(OBJS) $(LIBS) $(SLIBS)
18
19
20
21
22
23
24
25
26

all:	$(TARGET)

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

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