add oleg's gcc 3.4 patch (ld.script)
[openwrt.git] / package / libgcc / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=libgcc
6 PKG_VERSION:=$(BR2_GCC_VERSION)
7 PKG_RELEASE:=1
8
9 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
10
11 IPKG_LIBGCC:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
12 IDIR_LIBGCC:=$(PKG_BUILD_DIR)/ipkg/$(PKG_NAME)
13 INFO_LIBGCC:=$(IPKG_STATE_DIR)/info/$(PKG_NAME).list
14
15 .NOTPARALLEL:
16
17 $(IPKG_LIBGCC): $(STAGING_DIR)/lib/libgcc_s.so
18 rm -rf $(PKG_BUILD_DIR)
19 $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_LIBGCC) ./ipkg/$(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
20 mkdir -p $(IDIR_LIBGCC)/lib
21 cp -fpR $(STAGING_DIR)/lib/libgcc_s.so.* $(IDIR_LIBGCC)/lib/
22 $(STRIP) $(IDIR_LIBGCC)/lib/lib*.so*
23 mkdir -p $(PACKAGE_DIR)
24 $(IPKG_BUILD) $(IDIR_LIBGCC) $(PACKAGE_DIR)
25
26 $(INFO_LIBGCC): $(IPKG_LIBGCC)
27 $(IPKG) install $(IPKG_LIBGCC)
28
29 source:
30 prepare:
31 compile: $(IPKG_LIBGCC)
32 install: $(INFO_LIBGCC)
33
34 clean:
35 rm -rf $(PKG_BUILD_DIR) $(IPKG_LIBGCC)
This page took 0.040853 seconds and 5 git commands to generate.