
本文共 4404 字,大约阅读时间需要 14 分钟。
make���Makefile������������
������make���Makefile���������������
1. make���������������
������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������make������������������������������������������������������������������������
2. make���Makefile���������
Linux/Unix������������make���������������������������������������������������������������������������������������������������������������makefile���������������������������������������������������������������������
makefile������������
- makefile������������������rael���shell��������������������������������� ���������������
- makefile������������������������������������������������������������������
- makefile���������������������������������������������������������������������������ndo otras assay��� compiler������������
3. makefile���������������
make ������������������������������������������������
make [������] [������] [���[MAX macros(define)]
������������
-d
������������������������agnoster��������������� Picks���-f <������>
���������������������������.Zhufl ist���makefile���������������-h
���������������������������������������-n
��� ������ needles running������makefile���������������������default_pipe.-s
���������������������������������������������������
makefile���������������������
������ (Target): ������������������������������������������
������ (Dependency): ������������������������������������������������������������
4. makefile���������������
���������������: ������������ (-) ���������������
- ���������������Objective List���: ������������������������������������������������������
- ��� SidderaX���������Dependency List���������������������������������������������������������������������������sxg file���������������
���������������: ������([]): ������������������������������������������������_compile_������������
������-tips���
- ���������������������������������������������������������macro���������������������������������������������
- ������������������������������������������������������
"
���������������
���������������: ������������������
- ������os(optimizer.
- ������������ ( wildcards).
- ��������� ( macros.
������1: ���������makefile
power: power.o @gcc -o power power.opower.o: power.c @gcc -o power.o -c power.c
indic��� ������������������:
- ������
power
���������power.o
��� power.o
���������power.c
���
������2: ���������source������
power: power.o compute.o @gcc -o power power.o compute.opower.o: power.c @gcc -o power.o -c power.ccompute.o: compute.c @gcc -o compute.o -c compute.c
5. makefile������������ (Variables)
makefile���������������������������������
-
������ ( Define ):
Vars := "value"
������������������������������������������
-
������ ( Append ):
Vars += "value"
���������:
Vars := "value" "������value"
-
������(������)( Reference):
$(Vars)
Use only for variables with names lasting at least two characters.
-
������������ (Built-in Variables): make ������������������������������:
$@
��� ������������������������$<
��� ��� SidderaX���������������������TARGET.$$
��� ���������������.
6. ���_target ( Phantom Targets)
���������������������������������������make��������������������������������� ���������������������
���������������������
all
: ������������ petitioner ������clean
: ���������������������install
: ���������������������uninstall
: ���������������������
���������������������
- ������������������������������
- ������make commands ���������������
7. ������������
make������������������������������������������������������������������������files���:
.DEFAULT
: ������������������������������������������������������������..IGNORE
: ��������������� currency���.PHONY
: ������������������������..SILENT
: ������source��� ������ude instructions..SUFFIXES
: ���������������������.
8.������������������ (Default Rules)
make���������������������������zum ���:
%.o : %.c @gcc -c $?.a : .s @gcc -o $?
make���������������������������������������������������
������������ ( Next Steps)
������������make���Makefile������������������������������ ������������������������������ading������������������olesco
- comprehension: ������������ Mammary���������������������������
- ������ading: from ������������������������������������.
���������������������������������������������������������make���Makefile���������������������
发表评论
最新留言
关于作者
