1 include $(TOPDIR
)/rules.mk
7 include $(INCLUDE_DIR
)/package.mk
13 TITLE
:=JSON SHell Notation
16 define Package
/jshn
/description
17 Library for parsing and generating JSON from
shell scripts
20 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include --std
=gnu99
23 $(TARGET_CC
) $(TARGET_CFLAGS
) -o
$(PKG_BUILD_DIR
)/jshn src
/jshn.c
$(TARGET_LDFLAGS
) -ljson
26 define Package
/jshn
/install
27 $(INSTALL_DIR
) $(1)/bin
$(1)/lib
/functions
28 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/jshn
$(1)/bin
29 $(INSTALL_DATA
) .
/files
/jshn.sh
$(1)/lib
/functions
32 $(eval
$(call BuildPackage
,jshn
))