mosquitto/test/broker/c/Makefile
Pierre Fersing 6dd63d3000 Add more test for auth-plugin
Tests for:

* MOSQ_ACL_SUBSCRIBE acl check
* MOSQ_ERR_PLUGIN_DEFER with 2 auth-plugin
* Binary compatibility with v2 of auth-plugin

Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2018-03-13 17:52:22 +00:00

27 lines
599 B
Makefile

.PHONY: all test clean reallyclean 08
CFLAGS=-I../../../lib -I../../../src -Wall -Werror
all : auth_plugin.so auth_plugin_v2.so 08
08 : 08-tls-psk-pub.test 08-tls-psk-bridge.test
auth_plugin.so : auth_plugin.c
$(CC) ${CFLAGS} -fPIC -shared $^ -o $@
auth_plugin_v2.so : auth_plugin_v2.c
$(CC) ${CFLAGS} -fPIC -shared $^ -o $@
08-tls-psk-pub.test : 08-tls-psk-pub.c
$(CC) ${CFLAGS} $^ -o $@ ../../../lib/libmosquitto.so.1
08-tls-psk-bridge.test : 08-tls-psk-bridge.c
$(CC) ${CFLAGS} $^ -o $@ ../../../lib/libmosquitto.so.1
reallyclean : clean
-rm -f *.orig
clean :
rm -f *.so *.test