blob: 03343bc4e475055886ebe852b156bf32fba71d17 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001
2include $(COMMON_BASE_MK)
3
4NAME=libnl
5SRC_DIR=libnl-3.2.25
6INSTALL_DIR=$(LIB_DIR)/$(NAME)/install
7BUILD_DIR=build
8GEN_MAKEFILE=$(BUILD_DIR)/Makefile
9
10CONFIG_OPTS = --target=arm-linux --host=arm-linux
11#CONFIG_OPTS += --enable-shared
12
13all: $(GEN_MAKEFILE)
14 make -C build all
15 make -C build install
xf.lif1aed282024-02-06 00:31:51 -080016 cp -rvf ./libnl-3.2.25/include/netlink-private $(INSTALL_DIR)/
lh9ed821d2023-04-07 01:36:19 -070017
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
23clean:
24 -rm -fr $(BUILD_DIR) $(INSTALL_DIR)
25
26romfs:
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
34populate_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