install dev libs for linking
authorTim Yardley <lst@openwrt.org>
Mon, 30 Apr 2007 21:32:55 +0000 (21:32 +0000)
committerTim Yardley <lst@openwrt.org>
Mon, 30 Apr 2007 21:32:55 +0000 (21:32 +0000)
SVN-Revision: 7070

utils/pciutils/Makefile

index a5dd488a183a0aca83557f1a793d58d9491433f0..5eb4a35dfe409609834e968b750a814934abe153 100644 (file)
@@ -43,6 +43,22 @@ define Build/Compile
        )
 endef
 
+define Build/InstallDev
+       $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
+       $(CP) $(PKG_BUILD_DIR)/lib/libpci.a $(STAGING_DIR)/usr/lib
+       $(INSTALL_DIR) $(STAGING_DIR)/usr/include/pci
+       $(CP) $(PKG_BUILD_DIR)/lib/pci.h $(STAGING_DIR)/usr/include/pci
+       $(CP) $(PKG_BUILD_DIR)/lib/config.h $(STAGING_DIR)/usr/include/pci
+       $(CP) $(PKG_BUILD_DIR)/lib/header.h $(STAGING_DIR)/usr/include/pci
+       $(CP) $(PKG_BUILD_DIR)/lib/types.h $(STAGING_DIR)/usr/include/pci
+endef
+
+define Build/UninstallDev
+       rm -rf \
+               $(STAGING_DIR)/usr/include/pci
+               $(STAGING_DIR)/usr/lib/libpci.a
+endef
+
 define Package/pciutils/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_BUILD_DIR)/{lspci,setpci} $(1)/usr/sbin/