| |
| include $(COMMON_BASE_MK) |
| |
| NAME=expat |
| SRC_DIR=expat-2.1.0 |
| SRC_TAR=expat-2.1.0.tar.gz |
| INSTALL_DIR=$(LIB_DIR)/$(NAME)/install |
| BUILD_DIR=build |
| GEN_MAKEFILE=$(SRC_DIR)/Makefile |
| |
| CONFIG_OPTS = --target=arm-buildroot-linux --host=arm-buildroot-linux --build=x86_64-unknown-linux-gnu |
| #CONFIG_OPTS += --exec-prefix=$(INSTALL_DIR)/usr |
| #CONFIG_OPTS += --sysconfdir=$(INSTALL_DIR)/etc |
| #CONFIG_OPTS += --localstatedir=/var |
| #CONFIG_OPTS += --program-prefix= |
| CONFIG_OPTS += --disable-gtk-doc |
| CONFIG_OPTS += --disable-gtk-doc-html |
| CONFIG_OPTS += --disable-doc |
| CONFIG_OPTS += --disable-docs |
| CONFIG_OPTS += --disable-documentation |
| CONFIG_OPTS += --with-xmlto=no |
| CONFIG_OPTS += --with-fop=no |
| CONFIG_OPTS += --disable-dependency-tracking |
| CONFIG_OPTS += --enable-ipv6 |
| CONFIG_OPTS += --disable-nls |
| CONFIG_OPTS += --enable-static |
| CONFIG_OPTS += --enable-shared |
| |
| |
| export ac_cv_have_abstract_sockets=yes |
| |
| export CFLAGS := |
| export LDFLAGS := |
| |
| all: $(GEN_MAKEFILE) |
| make -C $(SRC_DIR) all |
| make -C $(SRC_DIR) install |
| |
| $(GEN_MAKEFILE): |
| mkdir -p $(BUILD_DIR) |
| sha256sum -c $(NAME).sig |
| tar xf $(TOPDIR_AP)/downloads/$(SRC_TAR) |
| cd $(SRC_DIR); ./configure --prefix=$(INSTALL_DIR) $(CONFIG_OPTS) |
| |
| clean: |
| -make -C $(SRC_DIR) distclean |
| -rm -fr $(BUILD_DIR) $(INSTALL_DIR) $(SRC_DIR) |
| |
| romfs: |
| cd $(INSTALL_DIR)/lib; \ |
| for i in *.so*; do \ |
| if [ -L $$i ]; then \ |
| $(ROMFSINST) -s `find $$i -printf %l` /lib/$$i; \ |
| elif [ -f $$i ]; then \ |
| $(ROMFSINST) /lib/$$i; \ |
| fi; \ |
| done |
| |
| populate_sdk: |
| cp -afvp $(INSTALL_DIR)/include/* $(CROSS_COMPILE_SYSROOT)/usr/include/ |
| cp -afvp $(INSTALL_DIR)/lib/* $(CROSS_COMPILE_SYSROOT)/usr/lib/ |
| cp -afvp $(INSTALL_DIR)/bin/* $(CROSS_COMPILE_SYSROOT)/usr/bin/ |
| |