Compile picohttpparser only once

pull/2619/merge
Roger A. Light 3 years ago
parent dfa9a22d64
commit 1382fded00

@ -55,7 +55,7 @@ MOSQ_OBJS=mosquitto.o \
will_mosq.o
ifeq ($(WITH_WEBSOCKETS),yes)
MOSQ_OBJS+=picohttpparser.o
MOSQ_OBJS+=${R}/deps/picohttpparser/picohttpparser.o
endif
ALL_DEPS:=
@ -194,7 +194,7 @@ net_mosq.o : net_mosq.c net_mosq.h
password_mosq.o : ${R}/common/password_mosq.c net_mosq.h
${CROSS_COMPILE}$(CC) $(LIB_CPPFLAGS) $(LIB_CFLAGS) -c $< -o $@
picohttpparser.o : ${R}/deps/picohttpparser/picohttpparser.c ${R}/deps/picohttpparser/picohttpparser.h
${R}/deps/picohttpparser/picohttpparser.o : ${R}/deps/picohttpparser/picohttpparser.c ${R}/deps/picohttpparser/picohttpparser.h
${CROSS_COMPILE}${CC} $(LIB_CPPFLAGS) $(LIB_CFLAGS) -c $< -o $@
net_ws.o : net_ws.c net_mosq.h

@ -106,7 +106,7 @@ OBJS= mosquitto.o \
xtreport.o
ifeq ($(WITH_WEBSOCKETS),yes)
OBJS+=picohttpparser.o
OBJS+=${R}/deps/picohttpparser/picohttpparser.o
endif
mosquitto : ${OBJS}
@ -259,7 +259,7 @@ packet_datatypes.o : ${R}/lib/packet_datatypes.c ${R}/lib/packet_mosq.h
packet_mosq.o : ${R}/lib/packet_mosq.c ${R}/lib/packet_mosq.h
${CROSS_COMPILE}${CC} $(BROKER_CPPFLAGS) $(BROKER_CFLAGS) -c $< -o $@
picohttpparser.o : ${R}/deps/picohttpparser/picohttpparser.c ${R}/deps/picohttpparser/picohttpparser.h
${R}/deps/picohttpparser/picohttpparser.o : ${R}/deps/picohttpparser/picohttpparser.c ${R}/deps/picohttpparser/picohttpparser.h
${CROSS_COMPILE}${CC} $(BROKER_CPPFLAGS) $(BROKER_CFLAGS) -c $< -o $@
property_broker.o : property_broker.c mosquitto_broker_internal.h

Loading…
Cancel
Save