aae7aef34a3bb9d5dc35032410f13348564c0d52
[openwrt.git] / toolchain / libnotimpl / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME := libnotimpl
4 PKG_BUILD_DIR := $(TOOL_BUILD_DIR)/libnotimpl
5
6 include $(INCLUDE_DIR)/host-build.mk
7
8 define cc
9         $(TARGET_CC) $(TARGET_CFLAGS) -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o
10 endef
11
12 define Build/Prepare
13         rm -rf $(PKG_BUILD_DIR)
14         mkdir -p $(PKG_BUILD_DIR)
15 endef
16
17 define Build/Compile
18         $(call cc,math)
19         $(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o
20 endef
21
22 define Build/Install
23         mkdir -p $(STAGING_DIR)/usr/lib
24         $(CP) $(PKG_BUILD_DIR)/libnotimpl.a $(STAGING_DIR)/usr/lib/
25 endef
26
27 define Build/Clean
28         rm -rf \
29                 $(STAGING_DIR)/usr/lib/libnotimpl.a \
30                 $(PKG_BUILD_DIR)
31 endef
32
33 $(eval $(call HostBuild))
34