summaryrefslogtreecommitdiff
path: root/recipes-support/jsoncpp/jsoncpp-0.5.0/Makefile
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2014-11-04 11:51:34 -0600
committerJesse Gilles <jgilles@multitech.com>2014-11-04 11:51:34 -0600
commite243c30f04c18722dc65effe6d4f275a3f35de46 (patch)
tree807610ce8af0ead02681d6c3cc89d902ec941652 /recipes-support/jsoncpp/jsoncpp-0.5.0/Makefile
downloadmeta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.tar.gz
meta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.tar.bz2
meta-mlinux-e243c30f04c18722dc65effe6d4f275a3f35de46.zip
initial commit of mLinux layer
Diffstat (limited to 'recipes-support/jsoncpp/jsoncpp-0.5.0/Makefile')
-rw-r--r--recipes-support/jsoncpp/jsoncpp-0.5.0/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/recipes-support/jsoncpp/jsoncpp-0.5.0/Makefile b/recipes-support/jsoncpp/jsoncpp-0.5.0/Makefile
new file mode 100644
index 0000000..bee6876
--- /dev/null
+++ b/recipes-support/jsoncpp/jsoncpp-0.5.0/Makefile
@@ -0,0 +1,46 @@
+includedir ?= /usr/include
+libdir ?= /usr/lib
+
+CPP_SRCS += \
+src/lib_json/json_reader.cpp \
+src/lib_json/json_value.cpp \
+src/lib_json/json_writer.cpp
+
+OBJS += \
+json_reader.o \
+json_value.o \
+json_writer.o
+
+CPP_DEPS += \
+json_reader.d \
+json_value.d \
+json_writer.d
+
+all: libjsoncpp.a
+
+libjsoncpp.a: $(OBJS)
+ @echo 'Building target: $@'
+ $(AR) -r libjsoncpp.a $(OBJS)
+ @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 "$@" "$<"
+ @echo 'Finished building: $<'
+ @echo ' '
+
+install:
+ mkdir -p $(DESTDIR)$(libdir)
+ mkdir -p $(DESTDIR)$(includedir)/json
+ cp libjsoncpp.a $(DESTDIR)$(libdir)/
+ cp include/json/* $(DESTDIR)$(includedir)/json/
+
+# Other Targets
+clean:
+ -$(RM) $(OBJS)$(CPP_DEPS) libjsoncpp.a
+ -@echo ' '
+
+.PHONY: all clean dependents
+.SECONDARY:
+