nginx: Add openssl dependency. Also fix parallel build.
[openwrt/svn-archive/archive.git] / utils / fxload / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
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 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=fxload
12 PKG_VERSION:=2008_10_13
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/linux-hotplug
17 PKG_MD5SUM:=4477a2457f064228bef4a93ba2f21692
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/fxload
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=@USB_SUPPORT +udev
25 TITLE:=Downloading firmware into EZ-USB microcontrollers
26 URL:=http://linux-hotplug.sourceforge.net/
27 endef
28
29 define Build/Compile
30 $(call Build/Compile/Default, \
31 CFLAGS="$(TARGET_CFLAGS) -I$(LINUX_DIR)/include" \
32 )
33 endef
34
35 define Package/fxload/install
36 $(INSTALL_DIR) $(1)/sbin
37 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin/
38 $(INSTALL_DIR) $(1)/usr/share/usb
39 $(INSTALL_DATA) $(PKG_BUILD_DIR)/a3load.hex $(1)/usr/share/usb/
40 endef
41
42 $(eval $(call BuildPackage,fxload))