#
# Copyright (C) Felix Fietkau <nbd@nbd.name>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

yinclude $(TOPDIR)/rules.mk

PKG_NAME:=3-axis
PKG_RELEASE:=1

PKG_FLAGS:=nonshared

include $(INCLUDE_DIR)/package.mk

define Package/3-axis
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=3-axis input device monitoring tool
endef

define Package/$(PKG_NAME)/Build/Compile
	$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -o $(PKG_BUILD_DIR)/3-axis ./src/3-axis.c
endef

define Package/$(PKG_NAME)/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/3-axis $(1)/usr/bin/
endef

$(eval $(call BuildPackage,3-axis))