GCC: use -fuse-cxa-atexit by default
[unleashed-userland.git] / components / json-c / Makefile
blob858a39cf4127d47579fb22370dde53dd5b8c287e
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2013 Adam Stevko. All rights reserved.
15 include ../../make-rules/shared-macros.mk
17 COMPONENT_NAME= json-c
18 COMPONENT_VERSION= 0.12
19 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
20 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
21 COMPONENT_ARCHIVE_HASH= sha256:000c01b2b3f82dcb4261751eb71f1b084404fb7d6a282f06074d3c17078b9f3f
22 COMPONENT_PROJECT_URL= https://github.com/json-c/json-c
23 COMPONENT_ARCHIVE_URL= https://s3.amazonaws.com/json-c_releases/releases/$(COMPONENT_ARCHIVE)
25 include $(WS_TOP)/make-rules/prep.mk
26 include $(WS_TOP)/make-rules/configure.mk
27 include $(WS_TOP)/make-rules/ips.mk
29 CONFIGURE_OPTIONS += --disable-static
31 COMPONENT_PREP_ACTION = ( cd $(@D) && \
32 libtoolize --copy --force &&\
33 aclocal -I . &&\
34 automake -c -f -a &&\
35 autoconf )
37 COMPONENT_PRE_CONFIGURE_ACTION=(cp -r $(SOURCE_DIR)/* $(@D))
39 build: $(BUILD_32_and_64)
41 install: $(INSTALL_32_and_64)
43 test: $(TEST_32_and_64)