�������: ������ (���� | �����������) ��RU opennet.me  
The OpenNET Project / Index page

[ ������� /+++ | ����� | ���� | ]

������� ������������ / ������ "������������ ��� Linux" / ���������� ���������
next up previous contents index
Next: �������� make-������ Up: �������� ���������� �������� make Previous: ��������� �������   Contents   Index

����������� ��������

����� ������ ����� ����, ������� �� �������� � ������������ ������� ��������� ������. ���� �������� ���� �� ������� ����� � ��������������� ������, �� ������ �� ��������� ������ gmake �������� ��� ���� ����� ����������� ������ ���, ����� gmake ��������� � ���. ������ ��� ���������� ��� ��������� � make-���� ����������� �������� ``�������'', ������������ ������ �������� �������������� ������. ��������, �� ����� ������ ��������� � make-����� ����� �������:

clean:

rm -f *.o

������ ���, ��� ���������� ������� gmake clean, ��� �������� ����� ������� ��� ����� .o.

��������� gmake ������ ������� ���������� � ���������� ������� ��������, �� ������ ��� �� ����������. ������� ������ `@' � ������ �������� ����� ��������� ����� �� ���������. ��� ������ ��� �������� �������������:


edit : $(OBJS)|

@echo Linking edit ...
@gcc -g -o edit $(OBJS)
@echo Done
����������� ���� �������� ����� ��, ��� � ������ ���������� �� ������� ������ ``Linking edit...'', � � ����� ���������� - ������ ``Done''.

����� gmake ��������� ��������, ������������ ��������� ��� ������, �.�. ��������� �� ������ �� ����������� UNIX, ��� ����������� �������� �������� ����������� ���������. ���� ������ �� ����� ��������, ������������ � ������� `-' (�������� � �������������� `@') ������������. ���� -k ��� gmake �������� � ������ ������ � ����������� ��������� ������ �������� ������� (� ����, ��������� �� ���� �����), �������� ���������� ��������� ���� �����������.



Alex Otwagin 2002-12-16



������:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
�������:

�������� �� �����
���������� �� ���������
Created 1996-2026 by Maxim Chirkov
��������, ����������, ����������