From dae10733604fffc01245802a5da7e2f8222b5de1 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Sun, 18 Dec 2022 16:34:15 +0000 Subject: [PATCH] Add missing Makefile --- plugins/examples/auth-by-env/Makefile | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 plugins/examples/auth-by-env/Makefile diff --git a/plugins/examples/auth-by-env/Makefile b/plugins/examples/auth-by-env/Makefile new file mode 100644 index 00000000..42f11387 --- /dev/null +++ b/plugins/examples/auth-by-env/Makefile @@ -0,0 +1,29 @@ +R=../../.. +include ${R}/config.mk + +.PHONY : all binary check clean reallyclean test install uninstall + +PLUGIN_NAME=mosquitto_auth_by_env +PLUGIN_CFLAGS+=-I${R}/include -I${R}/ + +all : binary + +binary : ${PLUGIN_NAME}.so + +${PLUGIN_NAME}.so : ${PLUGIN_NAME}.c + $(CROSS_COMPILE)$(CC) $(PLUGIN_CPPFLAGS) $(PLUGIN_CFLAGS) $(PLUGIN_LDFLAGS) -fPIC -shared $< -o $@ + +reallyclean : clean +clean: + -rm -f *.o ${PLUGIN_NAME}.so *.gcda *.gcno + +check: test +test: + +install: ${PLUGIN_NAME}.so + # Don't install, these are examples only. + #$(INSTALL) -d "${DESTDIR}$(libdir)" + #$(INSTALL) ${STRIP_OPTS} ${PLUGIN_NAME}.so "${DESTDIR}${libdir}/${PLUGIN_NAME}.so" + +uninstall : + -rm -f "${DESTDIR}${libdir}/${PLUGIN_NAME}.so"