Добавлен модуль ядра и приложение для работы с трехосевыми магнитометрами.
[lede-packages.git] / 3-axis / Makefile~
diff --git a/3-axis/Makefile~ b/3-axis/Makefile~
new file mode 100644 (file)
index 0000000..fa46f23
--- /dev/null
@@ -0,0 +1,32 @@
+#
+# 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))