projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make libnl build a static version as well
[openwrt-10.03/.git]
/
package
/
libnl
/
Makefile
diff --git
a/package/libnl/Makefile
b/package/libnl/Makefile
index 9f334108ede8fe30e793b776d8d50cc5579af0c9..28958f4a51421a1035f5f9c997b220344dcf0421 100644
(file)
--- a/
package/libnl/Makefile
+++ b/
package/libnl/Makefile
@@
-36,16
+36,19
@@
define Build/Compile
install
endef
install
endef
-define Build/InstallDev
+ifneq ($(CONFIG_LINUX_2_6_23),)
+ define Build/InstallDev
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
-endef
+ $(CP) $(PKG_BUILD_DIR)/include/linux $(1)/usr/include/
+ endef
-define Build/UninstallDev
-endef
+
define Build/UninstallDev
+
endef
-define Package/libnl/install
+
define Package/libnl/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libnl.so.1 $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libnl.so.1 $(1)/usr/lib/
-endef
+ endef
+endif
$(eval $(call BuildPackage,libnl))
$(eval $(call BuildPackage,libnl))