mosquitto/plugins/examples/topic-modification/Makefile

33 lines
750 B
Makefile
Raw Normal View History

2022-02-09 15:44:09 +01:00
R=../../..
include ${R}/config.mk
2021-09-15 11:54:09 +02:00
.PHONY : all binary check clean reallyclean test install uninstall
PLUGIN_NAME=mosquitto_topic_modification
LOCAL_CPPFLAGS+=
LOCAL_CFLAGS+=-fPIC
LOCAL_LDFLAGS+=-fPIC -shared
LOCAL_LIBADD+=
2021-09-15 11:54:09 +02:00
all : binary
binary : ${PLUGIN_NAME}.so
${PLUGIN_NAME}.so : ${PLUGIN_NAME}.c
$(CROSS_COMPILE)$(CC) $(LOCAL_CPPFLAGS) $(LOCAL_CFLAGS) $(LOCAL_LDFLAGS) $< -o $@ ${LOCAL_LIBADD}
2021-09-15 11:54:09 +02:00
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"