Makefile 873 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .PHONY: all test clean reallyclean
  2. CFLAGS=-I../../../include -Wall -Werror
  3. PLUGIN_SRC = \
  4. auth_plugin_acl.c \
  5. auth_plugin_acl_change.c \
  6. auth_plugin_acl_sub_denied.c \
  7. auth_plugin_context_params.c \
  8. auth_plugin_extended_multiple.c \
  9. auth_plugin_extended_reauth.c \
  10. auth_plugin_extended_single.c \
  11. auth_plugin_extended_single2.c \
  12. auth_plugin_msg_params.c \
  13. auth_plugin_publish.c \
  14. auth_plugin_pwd.c \
  15. auth_plugin_v2.c \
  16. auth_plugin_v4.c \
  17. auth_plugin_v5.c \
  18. auth_plugin_v5_handle_message.c \
  19. plugin_control.c
  20. PLUGINS = ${PLUGIN_SRC:.c=.so}
  21. SRC = \
  22. 08-tls-psk-pub.c \
  23. 08-tls-psk-bridge.c
  24. TESTS = ${SRC:.c=.test}
  25. all : ${PLUGINS} ${TESTS}
  26. ${PLUGINS} : %.so: %.c
  27. $(CC) ${CFLAGS} -fPIC -shared $< -o $@
  28. ${TESTS} : %.test: %.c
  29. $(CC) ${CFLAGS} $< -o $@ ../../../lib/libmosquitto.so.1
  30. reallyclean : clean
  31. -rm -f *.orig
  32. clean :
  33. rm -f *.so *.test