lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | |
| 2 | include $(COMMON_BASE_MK) |
| 3 | |
| 4 | NAME=libnl |
| 5 | SRC_DIR=libnl-3.2.25 |
| 6 | INSTALL_DIR=$(LIB_DIR)/$(NAME)/install |
| 7 | BUILD_DIR=build |
| 8 | GEN_MAKEFILE=$(BUILD_DIR)/Makefile |
| 9 | |
| 10 | CONFIG_OPTS = --target=arm-linux --host=arm-linux |
| 11 | #CONFIG_OPTS += --enable-shared |
| 12 | |
| 13 | all: $(GEN_MAKEFILE) |
| 14 | make -C build all |
| 15 | make -C build install |
xf.li | f1aed28 | 2024-02-06 00:31:51 -0800 | [diff] [blame] | 16 | cp -rvf ./libnl-3.2.25/include/netlink-private $(INSTALL_DIR)/ |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 17 | |
| 18 | $(GEN_MAKEFILE): |
| 19 | mkdir -p $(BUILD_DIR) |
| 20 | cd $(SRC_DIR); touch configure.ac aclocal.m4 configure Makefile.am Makefile.in |
| 21 | cd $(BUILD_DIR); ../$(SRC_DIR)/configure --prefix=$(INSTALL_DIR) $(CONFIG_OPTS) |
| 22 | |
| 23 | clean: |
| 24 | -rm -fr $(BUILD_DIR) $(INSTALL_DIR) |
| 25 | |
| 26 | romfs: |
| 27 | $(ROMFSINST) $(INSTALL_DIR)/lib/libnl-genl-3.so.200.20.0 /lib/ |
| 28 | $(ROMFSINST) -s libnl-genl-3.so.200.20.0 /lib/libnl-genl-3.so.200 |
| 29 | $(ROMFSINST) -s libnl-genl-3.so.200.20.0 /lib/libnl-genl-3.so |
| 30 | $(ROMFSINST) $(INSTALL_DIR)/lib/libnl-3.so.200.20.0 /lib/ |
| 31 | $(ROMFSINST) -s libnl-3.so.200.20.0 /lib/libnl-3.so.200 |
| 32 | $(ROMFSINST) -s libnl-3.so.200.20.0 /lib/libnl-3.so |
| 33 | |
| 34 | populate_sdk: |
| 35 | cp -afvp $(INSTALL_DIR)/include/* $(CROSS_COMPILE_SYSROOT)/usr/include/ |
| 36 | cp -afvp $(INSTALL_DIR)/lib/* $(CROSS_COMPILE_SYSROOT)/usr/lib/ |
| 37 | cp -afvp $(INSTALL_DIR)/sbin/* $(CROSS_COMPILE_SYSROOT)/usr/bin/ |
| 38 | |