Makefile 662 B

123456789101112131415161718192021222324252627
  1. include ../../config.mk
  2. .PHONY : all binary check clean reallyclean test install uninstall
  3. PLUGIN_NAME=mosquitto_payload_modification
  4. all : binary
  5. binary : ${PLUGIN_NAME}.so
  6. ${PLUGIN_NAME}.so : ${PLUGIN_NAME}.c
  7. $(CROSS_COMPILE)$(CC) $(PLUGIN_CPPFLAGS) $(PLUGIN_CFLAGS) $(PLUGIN_LDFLAGS) -fPIC -shared $< -o $@
  8. reallyclean : clean
  9. clean:
  10. -rm -f *.o ${PLUGIN_NAME}.so *.gcda *.gcno
  11. check: test
  12. test:
  13. install: ${PLUGIN_NAME}.so
  14. # Don't install, these are examples only.
  15. #$(INSTALL) -d "${DESTDIR}$(libdir)"
  16. #$(INSTALL) ${STRIP_OPTS} ${PLUGIN_NAME}.so "${DESTDIR}${libdir}/${PLUGIN_NAME}.so"
  17. uninstall :
  18. -rm -f "${DESTDIR}${libdir}/${PLUGIN_NAME}.so"