diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-06-21 06:19:43 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-06-21 06:19:43 +0000 |
commit | e248cf0f00917eb91b93a3d16c36a4aa544f575c (patch) | |
tree | 546646a962e82e608e7feb1e7e1b91fdceb88a6a /openwrt/toolchain/libnotimpl | |
parent | 1f20179ce5c9774f17d843070cd39da3f2e62268 (diff) | |
download | mtk-20170518-e248cf0f00917eb91b93a3d16c36a4aa544f575c.zip mtk-20170518-e248cf0f00917eb91b93a3d16c36a4aa544f575c.tar.gz mtk-20170518-e248cf0f00917eb91b93a3d16c36a4aa544f575c.tar.bz2 |
massive cleanup of toolchain/
SVN-Revision: 4038
Diffstat (limited to 'openwrt/toolchain/libnotimpl')
-rw-r--r-- | openwrt/toolchain/libnotimpl/Makefile | 44 | ||||
-rw-r--r-- | openwrt/toolchain/libnotimpl/src/math.c (renamed from openwrt/toolchain/libnotimpl/files/math.c) | 0 |
2 files changed, 24 insertions, 20 deletions
diff --git a/openwrt/toolchain/libnotimpl/Makefile b/openwrt/toolchain/libnotimpl/Makefile index 86ab927..aae7aef 100644 --- a/openwrt/toolchain/libnotimpl/Makefile +++ b/openwrt/toolchain/libnotimpl/Makefile @@ -1,30 +1,34 @@ include $(TOPDIR)/rules.mk -LIBNOTIMPL_DIR:=$(TOOL_BUILD_DIR)/libnotimpl +PKG_NAME := libnotimpl +PKG_BUILD_DIR := $(TOOL_BUILD_DIR)/libnotimpl -LIBNOTIMPL_SRCS+=./files/math.c -LIBNOTIMPL_OBJS:=$(patsubst ./files/%.c,$(LIBNOTIMPL_DIR)/%.o,$(LIBNOTIMPL_SRCS)) +include $(INCLUDE_DIR)/host-build.mk -$(LIBNOTIMPL_DIR)/.prepared: - mkdir -p $(LIBNOTIMPL_DIR) - touch $@ +define cc + $(TARGET_CC) $(TARGET_CFLAGS) -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o +endef -$(LIBNOTIMPL_OBJS): $(LIBNOTIMPL_DIR)/%.o : ./files/%.c - $(TARGET_CC) $(TARGET_CFLAGS) -c $< -o $@ +define Build/Prepare + rm -rf $(PKG_BUILD_DIR) + mkdir -p $(PKG_BUILD_DIR) +endef -$(LIBNOTIMPL_DIR)/libnotimpl.a: $(LIBNOTIMPL_OBJS) - $(TARGET_CROSS)ar rc $(LIBNOTIMPL_DIR)/libnotimpl.a $(LIBNOTIMPL_OBJS) +define Build/Compile + $(call cc,math) + $(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o +endef -$(STAGING_DIR)/usr/lib/libnotimpl.a: $(LIBNOTIMPL_DIR)/libnotimpl.a +define Build/Install mkdir -p $(STAGING_DIR)/usr/lib - $(CP) $< $@ - touch -c $@ - -source: -prepare: $(LIBNOTIMPL_DIR)/.prepared -compile: $(LIBNOTIMPL_DIR)/libnotimpl.a -install: $(STAGING_DIR)/usr/lib/libnotimpl.a -clean: FORCE + $(CP) $(PKG_BUILD_DIR)/libnotimpl.a $(STAGING_DIR)/usr/lib/ +endef + +define Build/Clean rm -rf \ $(STAGING_DIR)/usr/lib/libnotimpl.a \ - $(LIBNOTIMPL_DIR) \ + $(PKG_BUILD_DIR) +endef + +$(eval $(call HostBuild)) + diff --git a/openwrt/toolchain/libnotimpl/files/math.c b/openwrt/toolchain/libnotimpl/src/math.c index a16ea74..a16ea74 100644 --- a/openwrt/toolchain/libnotimpl/files/math.c +++ b/openwrt/toolchain/libnotimpl/src/math.c |