1 ################################################################################
5 ################################################################################
7 LINENOISE_VERSION
= 1.0
8 LINENOISE_SITE
= $(call github
,antirez
,linenoise
,$(LINENOISE_VERSION
))
9 LINENOISE_LICENSE
= BSD-2c
10 LINENOISE_LICENSE_FILES
= LICENSE
11 LINENOISE_INSTALL_STAGING
= YES
12 # Static library only, nothing to install on target
13 LINENOISE_INSTALL_TARGET
= NO
15 define LINENOISE_BUILD_CMDS
16 cd
$(@D
); $(TARGET_CC
) $(TARGET_CFLAGS
) -c linenoise.c
17 cd
$(@D
); $(TARGET_AR
) rcu liblinenoise.a linenoise.o
18 cd
$(@D
); $(TARGET_CC
) $(TARGET_LDFLAGS
) -o linenoise_example example.c
-L.
-llinenoise
21 define LINENOISE_INSTALL_STAGING_CMDS
22 $(INSTALL
) -m
644 -D
$(@D
)/linenoise.h
$(STAGING_DIR
)/usr
/include/linenoise.h
23 $(INSTALL
) -m
644 -D
$(@D
)/liblinenoise.a
$(STAGING_DIR
)/usr
/lib
/liblinenoise.a
24 $(INSTALL
) -m
755 -D
$(@D
)/linenoise_example
$(STAGING_DIR
)/usr
/bin
/linenoise_example
27 $(eval
$(generic-package
))