summaryrefslogtreecommitdiffstats
path: root/package/query3g/Makefile
diff options
context:
space:
mode:
authorRoman Yeryomin <roman@advem.lv>2013-07-19 09:51:19 +0300
committerRoman Yeryomin <roman@advem.lv>2013-07-19 09:51:19 +0300
commitfde05611c4f3ecf7a5d45032d8fd53cfc0420d5f (patch)
tree240f82039d9b60aed2432bfbe2d1c9101ee8a84c /package/query3g/Makefile
parentcc536db22b447ccd6f158066909989f43ce83e32 (diff)
parent5bfe1cdae38c39a4fe7ca891aac31233165e3531 (diff)
Merge branch 'realtek-unstable' of git://git.tet.rtu.lv/openwrt-realtek into realtek-unstable
Diffstat (limited to 'package/query3g/Makefile')
-rw-r--r--package/query3g/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/package/query3g/Makefile b/package/query3g/Makefile
index f18e09903..f6138c998 100644
--- a/package/query3g/Makefile
+++ b/package/query3g/Makefile
@@ -1,4 +1,4 @@
-#
+##
# Copyright (C) 2012 Jo-Philipp Wich <xm@subsignal.org>
#
# This is free software, licensed under the GNU General Public License v2.
@@ -15,7 +15,7 @@ include $(INCLUDE_DIR)/package.mk
define Package/query3g
SECTION:=utils
CATEGORY:=Utilities
- DEPENDS:=+usbreset +comgt
+ DEPENDS:=+usbreset +comgt +libubox +libjson
TITLE:=Utility to find 3G dongle information
MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
endef
@@ -25,13 +25,15 @@ define Package/query3g/description
endef
define Build/Compile
+ echo "--------------------------------"
+ $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -ljson -o $(PKG_BUILD_DIR)/apnprovider src/apnprovider.c
+ $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -ljson -o $(PKG_BUILD_DIR)/modemname src/modemname.c
endef
define Package/query3g/install
- $(INSTALL_DIR) $(1)/usr/bin
- $(INSTALL_BIN) ./files/query3g.sh $(1)/usr/bin/query3g
- $(INSTALL_DIR) $(1)/usr/share
- $(INSTALL_DATA) ./files/query3g.gcom $(1)/usr/share/query3g.gcom
+ $(INSTALL_DIR) $(1)/
+ $(CP) ./files/* $(1)/
+ $(CP) $(PKG_BUILD_DIR)/apnprovider $(1)/usr/bin/apnprovider
endef
$(eval $(call BuildPackage,query3g))