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.
25 lines
677 B
Makefile
25 lines
677 B
Makefile
R=../..
|
|
include ${R}/config.mk
|
|
|
|
.PHONY: all
|
|
|
|
all : basic-1 basic-websockets-1
|
|
|
|
basic-1 : basic-1.o
|
|
${CROSS_COMPILE}${CC} $^ -o $@ ${R}/lib/libmosquitto.so.${SOVERSION}
|
|
|
|
basic-websockets-1 : basic-websockets-1.o
|
|
${CROSS_COMPILE}${CC} $^ -o $@ ${R}/lib/libmosquitto.so.${SOVERSION}
|
|
|
|
basic-1.o : basic-1.c ${R}/lib/libmosquitto.so.${SOVERSION}
|
|
${CROSS_COMPILE}${CC} -c $< -o $@ -I${R}/include ${CPPFLAGS} ${CFLAGS}
|
|
|
|
basic-websockets-1.o : basic-websockets-1.c ${R}/lib/libmosquitto.so.${SOVERSION}
|
|
${CROSS_COMPILE}${CC} -c $< -o $@ -I${R}/include ${CPPFLAGS} ${CFLAGS}
|
|
|
|
${R}/lib/libmosquitto.so.${SOVERSION} :
|
|
$(MAKE) -C ${R}/lib
|
|
|
|
clean :
|
|
-rm -f *.o sub_single sub_multiple
|