You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mosquitto/examples/publish/Makefile

24 lines
678 B
Makefile

include ../../config.mk
.PHONY: all
all : basic-1 basic-websockets-1
basic-1 : basic-1.o
${CROSS_COMPILE}${CC} $^ -o $@ ../../lib/libmosquitto.so.${SOVERSION}
basic-websockets-1 : basic-websockets-1.o
${CROSS_COMPILE}${CC} $^ -o $@ ../../lib/libmosquitto.so.${SOVERSION}
basic-1.o : basic-1.c ../../lib/libmosquitto.so.${SOVERSION}
${CROSS_COMPILE}${CC} -c $< -o $@ -I../../include ${CPPFLAGS} ${CFLAGS}
basic-websockets-1.o : basic-websockets-1.c ../../lib/libmosquitto.so.${SOVERSION}
${CROSS_COMPILE}${CC} -c $< -o $@ -I../../include ${CPPFLAGS} ${CFLAGS}
../../lib/libmosquitto.so.${SOVERSION} :
$(MAKE) -C ../../lib
clean :
-rm -f *.o sub_single sub_multiple