• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/linenoise/linenoise.mk
Francois PerradFrancois Perrad committed 4992307bd1d20 Feb 2013
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
#############################################################
#
# linenoise
#
#############################################################
LINENOISE_VERSION = g27a3b4d
LINENOISE_SITE = http://github.com/antirez/linenoise/tarball/master
LINENOISE_LICENSE = BSD-2c
LINENOISE_INSTALL_STAGING = YES
​
define LINENOISE_BUILD_CMDS
    cd $(@D); $(TARGET_CC) $(TARGET_CFLAGS) -c linenoise.c
    cd $(@D); $(TARGET_AR) rcu liblinenoise.a linenoise.o
    cd $(@D); $(TARGET_CC) $(TARGET_LDFLAGS) -o linenoise_example example.c -L. -llinenoise
endef
​
define LINENOISE_INSTALL_STAGING_CMDS
    $(INSTALL) -m 644 -D $(@D)/linenoise.h          $(STAGING_DIR)/usr/include/linenoise.h
    $(INSTALL) -m 644 -D $(@D)/liblinenoise.a       $(STAGING_DIR)/usr/lib/liblinenoise.a
    $(INSTALL) -m 755 -D $(@D)/linenoise_example    $(STAGING_DIR)/usr/bin/linenoise_example
endef
​
define LINENOISE_UNINSTALL_STAGING_CMDS
    rm -f   $(STAGING_DIR)/usr/include/linenoise.h
    rm -f   $(STAGING_DIR)/usr/lib/liblinenoise.a
    rm -f   $(STAGING_DIR)/usr/bin/linenoise_example
endef
​
define LINENOISE_INSTALL_TARGET_CMDS
    $(INSTALL) -m 644 -D $(@D)/linenoise.h          $(TARGET_DIR)/usr/include/linenoise.h
    $(INSTALL) -m 644 -D $(@D)/liblinenoise.a       $(TARGET_DIR)/usr/lib/liblinenoise.a
    $(INSTALL) -m 755 -D $(@D)/linenoise_example    $(TARGET_DIR)/usr/bin/linenoise_example
endef
​
define LINENOISE_UNINSTALL_TARGET_CMDS
    rm -f   $(TARGET_DIR)/usr/include/linenoise.h
    rm -f   $(TARGET_DIR)/usr/lib/liblinenoise.a
    rm -f   $(TARGET_DIR)/usr/bin/linenoise_example
endef
​
define LINENOISE_CLEAN_CMDS
    rm -f $(@D)/*.o $(@D)/*.a $(@D)/linenoise_example
endef
​
$(eval $(generic-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.