c334692f5b3db2a6d583fd03f47746f9b8a4e6ef
[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) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
20 mkdir -p $(IDIR_LIBPTHREAD)/lib
21 cp -fp $(STAGING_DIR)/lib/libpthread.so.* $(IDIR_LIBPTHREAD)/lib/
22 cp -fp $(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.039959 seconds and 3 git commands to generate.