2018-12-05 13:53:00 +00:00
|
|
|
.PHONY: all test clean reallyclean
|
2014-05-07 22:27:00 +00:00
|
|
|
|
|
|
|
CFLAGS=-I../../../lib -I../../../src -Wall -Werror
|
|
|
|
|
2018-12-05 13:53:00 +00:00
|
|
|
PLUGIN_SRC = \
|
|
|
|
auth_plugin.c \
|
|
|
|
auth_plugin_pwd.c \
|
|
|
|
auth_plugin_acl.c \
|
2018-12-19 14:11:11 +00:00
|
|
|
auth_plugin_acl_sub_denied.c \
|
2018-12-05 13:53:00 +00:00
|
|
|
auth_plugin_v2.c \
|
|
|
|
auth_plugin_context_params.c \
|
|
|
|
auth_plugin_msg_params.c
|
2014-05-07 22:27:00 +00:00
|
|
|
|
2018-12-05 13:53:00 +00:00
|
|
|
PLUGINS = ${PLUGIN_SRC:.c=.so}
|
2014-05-07 22:27:00 +00:00
|
|
|
|
2018-12-05 13:53:00 +00:00
|
|
|
SRC = \
|
|
|
|
08-tls-psk-pub.c \
|
|
|
|
08-tls-psk-bridge.c
|
2014-05-07 22:27:00 +00:00
|
|
|
|
2018-12-05 13:53:00 +00:00
|
|
|
TESTS = ${SRC:.c=.test}
|
2018-03-26 14:23:00 +00:00
|
|
|
|
|
|
|
|
2018-12-05 13:53:00 +00:00
|
|
|
all : ${PLUGINS} ${TESTS}
|
2018-08-16 16:00:00 +00:00
|
|
|
|
2018-12-05 13:53:00 +00:00
|
|
|
${PLUGINS} : %.so: %.c
|
|
|
|
$(CC) ${CFLAGS} -fPIC -shared $< -o $@
|
2017-09-12 14:18:24 +00:00
|
|
|
|
2018-08-09 12:01:20 +00:00
|
|
|
|
2018-12-05 13:53:00 +00:00
|
|
|
${TESTS} : %.test: %.c
|
|
|
|
$(CC) ${CFLAGS} $< -o $@ ../../../lib/libmosquitto.so.1
|
2014-05-07 22:27:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
reallyclean : clean
|
|
|
|
-rm -f *.orig
|
|
|
|
|
|
|
|
clean :
|
|
|
|
rm -f *.so *.test
|