mosquitto/test/broker/c/Makefile

46 lines
840 B
Makefile
Raw Normal View History

2018-12-05 13:53:00 +00:00
.PHONY: all test clean reallyclean
2014-05-07 22:27:00 +00:00
2020-10-07 21:04:15 +00:00
CFLAGS=-I../../../include -Wall -Werror
2014-05-07 22:27:00 +00:00
2018-12-05 13:53:00 +00:00
PLUGIN_SRC = \
auth_plugin_acl.c \
auth_plugin_acl_change.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_context_params.c \
auth_plugin_extended_multiple.c \
auth_plugin_extended_single.c \
auth_plugin_extended_single2.c \
auth_plugin_msg_params.c \
auth_plugin_publish.c \
auth_plugin_pwd.c \
auth_plugin_v2.c \
auth_plugin_v4.c \
auth_plugin_v5.c \
auth_plugin_v5_handle_message.c \
plugin_control.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-12-05 13:53:00 +00:00
${PLUGINS} : %.so: %.c
$(CC) ${CFLAGS} -fPIC -shared $< -o $@
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