mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-14 15:53:29 +08:00
3d86d29bf0
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
30 lines
868 B
Makefile
30 lines
868 B
Makefile
################################################################################
|
|
#
|
|
# cjson
|
|
#
|
|
################################################################################
|
|
|
|
CJSON_VERSION = 58
|
|
CJSON_SITE_METHOD = svn
|
|
CJSON_SITE = http://svn.code.sf.net/p/cjson/code
|
|
CJSON_INSTALL_STAGING = YES
|
|
CJSON_LICENSE = MIT
|
|
CJSON_LICENSE_FILES = LICENSE
|
|
|
|
define CJSON_BUILD_CMDS
|
|
cd $(@D) && $(TARGET_CC) $(TARGET_CFLAGS) -shared -fPIC -lm \
|
|
cJSON.c -o libcJSON.so
|
|
endef
|
|
|
|
define CJSON_INSTALL_STAGING_CMDS
|
|
$(INSTALL) -D $(@D)/cJSON.h $(STAGING_DIR)/usr/include/cJSON.h
|
|
$(INSTALL) -D $(@D)/libcJSON.so $(STAGING_DIR)/usr/lib/libcJSON.so
|
|
endef
|
|
|
|
define CJSON_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D $(@D)/cJSON.h $(TARGET_DIR)/usr/include/cJSON.h
|
|
$(INSTALL) -D $(@D)/libcJSON.so $(TARGET_DIR)/usr/lib/libcJSON.so
|
|
endef
|
|
|
|
$(eval $(generic-package))
|