mosquitto/examples/publish/Makefile
Roger A. Light c8e313aac0 Fix build
This is for the case where command line overrides are set.
2023-09-19 22:48:24 +01:00

25 lines
566 B
Makefile

R=../..
include ${R}/config.mk
.PHONY: all
all : basic-1 basic-websockets-1
basic-1 : basic-1.o
${CROSS_COMPILE}${CC} $^ -o $@ ${LIBMOSQ}
basic-websockets-1 : basic-websockets-1.o
${CROSS_COMPILE}${CC} $^ -o $@ ${LIBMOSQ}
basic-1.o : basic-1.c ${LIBMOSQ}
${CROSS_COMPILE}${CC} -c $< -o $@ -I${R}/include ${LOCAL_CPPFLAGS} ${LOCAL_CFLAGS}
basic-websockets-1.o : basic-websockets-1.c ${LIBMOSQ}
${CROSS_COMPILE}${CC} -c $< -o $@ -I${R}/include ${LOCAL_CPPFLAGS} ${LOCAL_CFLAGS}
${LIBMOSQ} :
$(MAKE) -C ${R}/lib
clean :
-rm -f *.o sub_single sub_multiple