Commit c7a72055 authored by Michael Ott's avatar Michael Ott
Browse files

Modify Makefile to allow for building from separate git repository

parent ad96aa76
include ../
TARGET = sysfspusher
DCDBBASEPATH ?= $(realpath $(dir $(lastword $(MAKEFILE_LIST)))/..)
include $(DCDBCOREPATH)/
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
OBJS = sysfspusher.o helper.o
LIBS = -L$(DCDBDEPLOYPATH)/lib -lmosquitto -lpthread
TARGET = sysfspusher
$(CXX) -o $(TARGET) $(OBJS) $(LIBS)
......@@ -14,7 +19,5 @@ clean:
rm -f $(OBJS) $(TARGET)
install: $(TARGET)
mkdir -p $(DCDBDEPLOYPATH)/bin
install $(TARGET) $(DCDBDEPLOYPATH)/bin/
mkdir -p $(DCDBDEPLOYPATH)/etc
install -m 644 $(TARGET).conf $(DCDBDEPLOYPATH)/etc
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment