lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #******************************************************************************* |
| 2 | # Default target |
| 3 | #******************************************************************************* |
| 4 | #zte_lib := libsoft_timer libnvram |
| 5 | |
| 6 | include config_lib.mk |
| 7 | |
| 8 | .PHONY: all $(zte_lib) romfs |
| 9 | |
| 10 | ALL: all romfs |
| 11 | |
| 12 | all: |
| 13 | touch .sgbuilt_flag |
| 14 | for lib in ${zte_lib} ; do \ |
| 15 | ${MAKE} -j1 -C $$lib all || exit $$?; \ |
| 16 | done; |
| 17 | |
| 18 | romfs: |
| 19 | mkdir -p $(ROOTFS_DIR)/lib |
| 20 | if [ -f .sgbuilt_flag ]; then \ |
| 21 | for lib in ${zte_lib} ; do \ |
| 22 | ${MAKE} -j1 -C $$lib romfs || exit $$?; \ |
| 23 | done; \ |
| 24 | fi; |
| 25 | |
| 26 | clean: |
| 27 | for lib in ${zte_lib} ; do \ |
| 28 | ${MAKE} -j1 -C $$lib clean; \ |
| 29 | done; \ |
| 30 | rm -f .sgbuilt_flag |
| 31 | |