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