lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | # /***************************************************************************** |
| 2 | #* °æÈ¨ËùÓÐ (C)2015, ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£ |
| 3 | #* |
| 4 | #* ÎļþÃû³Æ: Makefile |
| 5 | #* Îļþ±êʶ: Makefile |
| 6 | #* ÄÚÈÝÕªÒª: Top makefile of zcore librarys |
| 7 | #* ʹÓ÷½·¨: void |
| 8 | #* |
| 9 | #* ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ |
| 10 | #* ----------------------------------------------------------------------------- |
| 11 | #* 2015/02/10 V1.0 Create ÁõÑÇÄÏ ´´½¨ |
| 12 | #* |
| 13 | # ******************************************************************************/ |
| 14 | |
| 15 | #******************************************************************************* |
| 16 | # include ZTE library makefile |
| 17 | #******************************************************************************* |
| 18 | #include $(zte_lib_mak) |
| 19 | include $(COMMON_MK) |
| 20 | #******************************************************************************* |
| 21 | # Default target |
| 22 | #******************************************************************************* |
| 23 | zcore_lib := std min |
| 24 | |
| 25 | .PHONY: $(zcore_lib) |
| 26 | |
| 27 | #******************************************************************************* |
| 28 | # Default target of uClinux makefile framework |
| 29 | #******************************************************************************* |
| 30 | all: ${zcore_lib} |
| 31 | @touch .zcorebuilt_user |
| 32 | |
| 33 | romfs: |
| 34 | for lib in ${zcore_lib} ; do \ |
| 35 | [ ! -d $$lib ] || $(MAKE) -C $$lib romfs || exit $$? ; \ |
| 36 | done |
| 37 | |
| 38 | clean: |
| 39 | if [ -f .zcorebuilt_user ]; then \ |
| 40 | for lib in ${zcore_lib} ; do \ |
| 41 | ${MAKE} -j1 -C $$lib clean ; \ |
| 42 | done; \ |
| 43 | rm -f .zcorebuilt_user; \ |
| 44 | fi; |
| 45 | |
| 46 | #******************************************************************************* |
| 47 | # zcore library target |
| 48 | #******************************************************************************* |
| 49 | ${zcore_lib}: |
| 50 | [ ! -d $@ ] || ${MAKE} -C $(zte_lib_path)/libzcore/$@ |
| 51 | |