Probe
targets=../data/Probe.h,Probe,DaMon
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,appbroker.sh,damon.h,damon-backend-app.c,damon-backend-salt.c,rrd.h
[../data/Probe.h]
type=script
script=./appbroker.sh
depends=../data/Probe.interface
[Probe]
type=binary
cflags=`pkg-config --cflags libApp`
ldflags=`pkg-config --libs libApp` -Wl,--export-dynamic
sources=probe.c
install=$(BINDIR)
[DaMon]
type=binary
#for App
cflags=`pkg-config --cflags libApp`
ldflags=`pkg-config --libs libApp`
#for Salt
#cflags=-D DAMON_BACKEND_SALT `pkg-config --cflags libApp jansson`
#ldflags=`pkg-config --libs libApp jansson`
sources=damon.c,damon-backend.c,damon-main.c,rrd.c
install=$(BINDIR)
[damon.c]
depends=damon.h,rrd.h,../config.h
[damon-backend.c]
depends=damon.h,rrd.h,damon-backend-app.c,damon-backend-salt.c,../config.h
[damon-main.c]
depends=damon.h
[probe.c]
depends=../data/Probe.h,../config.h
[rrd.c]
depends=rrd.h