add missing copyright
[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 PKG_BUILD_DIR := $(TOOL_BUILD_DIR)/libnotimpl
11
12 include $(INCLUDE_DIR)/host-build.mk
13
14 define cc
15         $(TARGET_CC) $(TARGET_CFLAGS) -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o
16 endef
17
18 define Build/Prepare
19         rm -rf $(PKG_BUILD_DIR)
20         mkdir -p $(PKG_BUILD_DIR)
21 endef
22
23 define Build/Compile
24         $(call cc,math)
25         $(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o
26 endef
27
28 define Build/Install
29         mkdir -p $(STAGING_DIR)/usr/lib
30         $(CP) $(PKG_BUILD_DIR)/libnotimpl.a $(STAGING_DIR)/usr/lib/
31 endef
32
33 define Build/Clean
34         rm -rf \
35                 $(STAGING_DIR)/usr/lib/libnotimpl.a \
36                 $(PKG_BUILD_DIR)
37 endef
38
39 $(eval $(call HostBuild))
40