Commit 02c7da81 authored by Jordan Sissel's avatar Jordan Sissel

Add jansson, a JSON library for C

parent eb2872e2
VERSION=2.3.1
URL=http://www.digip.org/jansson/releases/jansson-$(VERSION).tar.gz
TARBALL=$(shell basename $(URL))
WORKDIR=jansson-$(VERSION)
default: install
include ../Makefile.ext
default: configure
configure: configure-autoconf
ifeq ($(UNAME),Darwin)
# Use --disable-dependency-tracking otherwise llvm/clang crashes
# on OS X 10.7.x
$(WORKDIR)/Makefile: | $(WORKDIR)
cd $(WORKDIR); ./configure --prefix=$(PREFIX) --disable-dependency-tracking
endif
build: $(WORKDIR)/src/.libs/libjansson.$(LIBEXT)
$(WORKDIR)/src/.libs/libjansson.$(LIBEXT): configure
$(MAKE) -C $(WORKDIR)
install: build
$(MAKE) -C $(WORKDIR) install
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment