lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | |
xf.li | 8402749 | 2024-04-09 00:17:51 -0700 | [diff] [blame] | 2 | include $(COMMON_BASE_MK) |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 3 | |
xf.li | 8402749 | 2024-04-09 00:17:51 -0700 | [diff] [blame] | 4 | NAME=pppd |
| 5 | SRC_DIR=ppp-2.5.0 |
| 6 | INSTALL_DIR=$(APP_DIR)/$(NAME)/install |
| 7 | BUILD_DIR=build |
| 8 | GEN_MAKEFILE=$(BUILD_DIR)/Makefile |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 9 | |
xf.li | 8402749 | 2024-04-09 00:17:51 -0700 | [diff] [blame] | 10 | export PATH := $(APP_DIR)/$(NAME)/depends/install/bin:$(PATH) |
| 11 | export DEPENDS_OLD = /home/zhouguopo/code2/0616/ap/project/zx297520v3/prj_mdl/build/../../../../build/depends |
| 12 | export DEPENDS_NEW = $(APP_DIR)/$(NAME)/depends |
| 13 | |
| 14 | CONFIG_OPTS = --host=arm-linux |
| 15 | CONFIG_OPTS += --disable-silent-rules |
| 16 | CONFIG_OPTS += --disable-dependency-tracking |
| 17 | CONFIG_OPTS += --with-openssl=$(LIB_DIR)/libssl/install |
| 18 | #CONFIG_OPTS += --with-sysroot=$(CROSS_COMPILE_SYSROOT) |
| 19 | #CONFIG_OPTS += --enable-lzo |
| 20 | #CONFIG_OPTS += --disable-plugin-auth-pam |
| 21 | #CONFIG_OPTS += --disable-plugin-down-root |
| 22 | #CONFIG_OPTS += --with-crypto-library=openssl |
| 23 | |
| 24 | #CFLAGS += -I$(LIB_DIR)/liblzo/install/include |
| 25 | #CFLAGS += -I$(LIB_DIR)/libssl/install/include |
| 26 | CFLAGS += -I$(LIB_DIR)/libssl/install/include |
| 27 | CFLAGS += -I../include |
| 28 | CFLAGS += -I$(APP_DIR)/include |
| 29 | |
| 30 | #LDFLAGS += -L$(LIB_DIR)/liblzo/install/lib |
| 31 | #LDFLAGS += -L$(LIB_DIR)/libssl/install/lib |
| 32 | #LDFLAGS += -ldl |
| 33 | LDFLAGS += -pthread |
| 34 | LDFLAGS += -L$(LIB_DIR)/libnvram/ -lnvram |
| 35 | LDFLAGS += -L$(LIB_DIR)/libsoft_timer/ -lsoft_timer |
| 36 | LDFLAGS += -L$(LIB_DIR)/libsoftap/ -lsoftap |
| 37 | |
| 38 | |
| 39 | all: $(GEN_MAKEFILE) |
| 40 | make -C build all |
| 41 | make -C build install |
| 42 | |
| 43 | $(GEN_MAKEFILE): |
| 44 | -find depends -type f -exec sed -i 's@$(DEPENDS_OLD)@$(DEPENDS_NEW)@g' {} + |
| 45 | mkdir -p $(BUILD_DIR) |
| 46 | cd $(BUILD_DIR); ../$(SRC_DIR)/configure --prefix=$(INSTALL_DIR) $(CONFIG_OPTS) |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 47 | |
| 48 | clean: |
xf.li | 8402749 | 2024-04-09 00:17:51 -0700 | [diff] [blame] | 49 | -rm -fr $(BUILD_DIR) $(INSTALL_DIR) |
lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 50 | |
xf.li | 8402749 | 2024-04-09 00:17:51 -0700 | [diff] [blame] | 51 | romfs: |
| 52 | $(ROMFSINST) $(INSTALL_DIR)/sbin/pppd /sbin/pppd |
| 53 | |