| |
| include $(COMMON_BASE_MK) |
| |
| NAME=liblzo |
| SRC_DIR=lzo-2.10 |
| INSTALL_DIR=$(LIB_DIR)/$(NAME)/install |
| BUILD_DIR=build |
| GEN_MAKEFILE=$(BUILD_DIR)/Makefile |
| |
| CONFIG_OPTS = --target=arm-linux --host=arm-linux |
| CONFIG_OPTS += --enable-shared |
| |
| all: $(GEN_MAKEFILE) |
| make -C build all |
| make -C build install |
| |
| $(GEN_MAKEFILE): |
| mkdir -p $(BUILD_DIR) |
| cd $(BUILD_DIR); ../$(SRC_DIR)/configure --prefix=$(INSTALL_DIR) $(CONFIG_OPTS) |
| |
| clean: |
| -rm -fr $(BUILD_DIR) $(INSTALL_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 |
| |