1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-22 05:46:19 +00:00
Lakka-LibreELEC/packages/lakka/lakka_tools/joyutils/package.mk

22 lines
597 B
Makefile

PKG_NAME="joyutils"
PKG_VERSION="b6703eb"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/datrh/joyutils"
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="jscal, jstest, and jsattach utilities for the Linux joystick driver"
PKG_TOOLCHAIN="manual"
make_target() {
${CC} -lm -o jscal jscal.c ${CFLAGS}
${CC} -lm -o jstest jstest.c ${CFLAGS}
${CC} -lm -o jsattach jsattach.c ${CFLAGS}
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp jscal ${INSTALL}/usr/bin/
cp jstest ${INSTALL}/usr/bin/
cp jsattach ${INSTALL}/usr/bin/
}