sdk-hwV1.3/lichee/melis-v3.0/source/ekernel/components/aw/samples/library
梁志勇 09427e37ea chore(other):sdk 裁减 2024-05-07 18:09:20 +08:00
..
Makefile chore(other):sdk 裁减 2024-05-07 18:09:20 +08:00
libfile1.c chore(other):sdk 裁减 2024-05-07 18:09:20 +08:00
libfile2.c chore(other):sdk 裁减 2024-05-07 18:09:20 +08:00
libfile3.c chore(other):sdk 裁减 2024-05-07 18:09:20 +08:00
readme.txt chore(other):sdk 裁减 2024-05-07 18:09:20 +08:00

readme.txt

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

step 1:
   in components/samples dir, mkdir library, 你可以在你认为何时的位置创建你的源码工作目录 。
step 2:
  在libary目录下创建三个源码文件然后书写Makefile,包含以下内容.
  1 lib-y += libfile1.o
  2 lib-y += libfile2.o
  3 lib-y += libfile3.o
  4  
  5 TARGET := $(srctree)/emodules/staging/libdemo.a
  6 include $(MELIS_BASE)/scripts/Makefile.rename
~                                                    
  1-3行通过lib-y导入要编译的目标文件
  5行重命名为libdemo.a,并且放置到 emodules/staging目录下
  6行:包括系统Makefile.

step3:
 编译即可.