diff options
author | Jason Reiss <jreiss@multitech.com> | 2019-12-31 14:32:12 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-06-18 20:22:07 -0500 |
commit | ddf781899382e04ab5c2084cb7d07bb30975eff6 (patch) | |
tree | dd349c2c025dfc617d774ac2c9a8bce8687a4ded /recipes-support/jsoncpp/jsoncpp-1.6.0 | |
parent | a91b3b04960f7b2e6c6bf13a83339ecb64c5f8c3 (diff) | |
download | meta-mlinux-ddf781899382e04ab5c2084cb7d07bb30975eff6.tar.gz meta-mlinux-ddf781899382e04ab5c2084cb7d07bb30975eff6.tar.bz2 meta-mlinux-ddf781899382e04ab5c2084cb7d07bb30975eff6.zip |
lora: update to LNS 2.3.3, requires mosquitto 1.5.1 and jsoncpp changes
Diffstat (limited to 'recipes-support/jsoncpp/jsoncpp-1.6.0')
-rw-r--r-- | recipes-support/jsoncpp/jsoncpp-1.6.0/Makefile | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/recipes-support/jsoncpp/jsoncpp-1.6.0/Makefile b/recipes-support/jsoncpp/jsoncpp-1.6.0/Makefile index 3be3743..7df3d63 100644 --- a/recipes-support/jsoncpp/jsoncpp-1.6.0/Makefile +++ b/recipes-support/jsoncpp/jsoncpp-1.6.0/Makefile @@ -16,29 +16,32 @@ json_reader.d \ json_value.d \ json_writer.d -all: libjsoncpp.a +TARGET = libjsoncpp.so -libjsoncpp.a: $(OBJS) +all: $(TARGET) + +libjsoncpp.so: $(OBJS) @echo 'Building target: $@' - $(AR) -r libjsoncpp.a $(OBJS) + #$(AR) -r libjsoncpp.a $(OBJS) + $(CXX) ${LDFLAGS} -shared -o $@ $^ @echo 'Finished building target: $@' @echo ' ' %.o: src/lib_json/%.cpp @echo 'Building file: $<' - $(CXX) $(CFLAGS) -Iinclude -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<" + $(CXX) $(CFLAGS) -Iinclude -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -fPIC -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' install: - mkdir -p $(DESTDIR)$(libdir) - mkdir -p $(DESTDIR)$(includedir)/jsoncpp/json - cp libjsoncpp.a $(DESTDIR)$(libdir)/ - cp include/json/* $(DESTDIR)$(includedir)/jsoncpp/json/ + install -d $(DESTDIR)/usr/include/json + install -m 644 include/json/*.h $(DESTDIR)/usr/include/json + mkdir -p $(DESTDIR)/usr/lib + cp libjsoncpp.so $(DESTDIR)/usr/lib # Other Targets clean: - -$(RM) $(OBJS)$(CPP_DEPS) libjsoncpp.a + -$(RM) $(OBJS)$(CPP_DEPS) libjsoncpp.so -@echo ' ' .PHONY: all clean dependents |