| |
| CONFOPTS= |
| |
| all: build/configured |
| $(MAKE) -C build |
| @cp ./build/pppd/pppd pppd.elf |
| |
| build/configured: makefile |
| rm -rf build |
| find . -type d > .dirs |
| find . ! -type d | grep -v ./makefile > .files |
| while read t; do mkdir -p build/$$t; done < .dirs |
| while read t; do ln -s `pwd`/$$t build/$$t; done < .files |
| rm -f .dirs .files |
| chmod +x build/configure |
| cd build; sh ./configure $(CONFIGURE_OPTS) $(CONFOPTS) |
| touch build/configured |
| |
| clean: |
| rm -rf build |
| |
| romfs:rootfs_bin |
| |
| rootfs_bin: |
| $(ROMFSINST) build/pppd/pppd /sbin/pppd |
| $(ROMFSINST) build/chat/chat /sbin/chat |
| ifdef CONFIG_USER_PPPD_WITH_RADIUS |
| [ -d $(ROMFSDIR)/etc/radiusclient ] || mkdir $(ROMFSDIR)/etc/radiusclient |
| $(ROMFSINST) -e CONFIG_USER_PPPD_WITH_RADIUS scripts/radiusclient/dictionary /etc/radiusclient/dictionary |
| $(ROMFSINST) -e CONFIG_USER_PPPD_WITH_RADIUS scripts/radiusclient/dictionary.ms /etc/radiusclient/dictionary.ms |
| $(ROMFSINST) -e CONFIG_USER_PPPD_WITH_RADIUS scripts/radiusclient/dictionary.sg /etc/radiusclient/dictionary.sg |
| endif |