2020-10-21 15:46:29 +00:00
|
|
|
include ../../config.mk
|
|
|
|
|
|
|
|
.PHONY : all binary check clean reallyclean test install uninstall
|
|
|
|
|
|
|
|
PLUGIN_NAME=mosquitto_payload_modification
|
|
|
|
|
|
|
|
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
|
2020-12-09 22:36:53 +00:00
|
|
|
# Don't install, these are examples only.
|
2020-12-18 08:05:06 +00:00
|
|
|
#$(INSTALL) -d "${DESTDIR}$(libdir)"
|
|
|
|
#$(INSTALL) ${STRIP_OPTS} ${PLUGIN_NAME}.so "${DESTDIR}${libdir}/${PLUGIN_NAME}.so"
|
2020-10-21 15:46:29 +00:00
|
|
|
|
|
|
|
uninstall :
|
2020-12-18 08:05:06 +00:00
|
|
|
-rm -f "${DESTDIR}${libdir}/${PLUGIN_NAME}.so"
|