Добавлен модуль ядра и приложение для работы с трехосевыми магнитометрами.
[lede-packages.git] / 3-axis / Makefile
1 #
2 # Copyright (C) Felix Fietkau <nbd@nbd.name>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=3-axis
11 PKG_RELEASE:=1
12
13 PKG_FLAGS:=nonshared
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/3-axis
18   SECTION:=utils
19   CATEGORY:=Utilities
20   TITLE:=3-axis input device monitoring tool
21 endef
22
23 define Package/$(PKG_NAME)/Build/Compile
24         $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -o $(PKG_BUILD_DIR)/3-axis ./src/3-axis.c
25 endef
26
27 define Package/$(PKG_NAME)/install
28         $(INSTALL_DIR) $(1)/usr/bin
29         $(INSTALL_BIN) $(PKG_BUILD_DIR)/3-axis $(1)/usr/bin/
30 endef
31
32 $(eval $(call BuildPackage,3-axis))