Fix build

This is for the case where command line overrides are set.
This commit is contained in:
Roger A. Light
2023-09-19 22:48:24 +01:00
parent d36fed991b
commit c8e313aac0
50 changed files with 412 additions and 368 deletions
+4 -4
View File
@@ -2,9 +2,9 @@ R=../..
include ${R}/config.mk
ifneq ($(UNAME),SunOS)
LDFLAGS+=-Wl,-soname,libmosquittopp.so.${SOVERSION}
LOCAL_LDFLAGS+=-Wl,-soname,libmosquittopp.so.${SOVERSION}
endif
CXXFLAGS+=-fPIC
LOCAL_CXXFLAGS+=-fPIC
.PHONY : clean install
@@ -40,10 +40,10 @@ clean :
-rm -f *.o libmosquittopp.so.${SOVERSION} libmosquittopp.a
libmosquittopp.so.${SOVERSION} : mosquittopp.o
${CROSS_COMPILE}$(CXX) -shared $(LDFLAGS) $< -o $@ ../libmosquitto.so.${SOVERSION} $(LIDADD)
${CROSS_COMPILE}$(CXX) -shared $(LOCAL_LDFLAGS) $< -o $@ ../libmosquitto.so.${SOVERSION} $(LIDADD)
libmosquittopp.a : mosquittopp.o
${CROSS_COMPILE}$(AR) cr $@ $^
mosquittopp.o : mosquittopp.cpp ${R}/include/mosquittopp.h
${CROSS_COMPILE}$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
${CROSS_COMPILE}$(CXX) $(LOCAL_CPPFLAGS) $(LOCAL_CXXFLAGS) -c $< -o $@