fix unnecessary dropbear key generation
[openwrt/openwrt.git] / toolchain / libnotimpl / 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 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=libnotimpl
10
11 PKG_BUILD_DIR:=$(TOOLCHAIN_BUILD_DIR)/libnotimpl
12
13 include $(INCLUDE_DIR)/host-build.mk
14
15 define cc
16 $(TARGET_CC) $(TARGET_CFLAGS) -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o
17 endef
18
19 define Build/Prepare
20 rm -rf $(PKG_BUILD_DIR)
21 mkdir -p $(PKG_BUILD_DIR)
22 endef
23
24 define Build/Compile
25 $(call cc,math)
26 $(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o
27 endef
28
29 define Build/Install
30 mkdir -p $(STAGING_DIR)/usr/lib
31 $(CP) $(PKG_BUILD_DIR)/libnotimpl.a $(STAGING_DIR)/usr/lib/
32 endef
33
34 define Build/Clean
35 rm -f $(STAGING_DIR)/usr/lib/libnotimpl.a
36 endef
37
38 $(eval $(call HostBuild))
39