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

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

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

���� �������� ������� - make-����

���� �������� ������� make-���� ��� ���������� ������� ��������� - ��������� edit, ���������� �� ������ �������� ������ .cc � ���� ������������ ������ (.h).



# Makefile for simple editor

edit : edit.o kbd.o commands.o display.o $ \backslash$
insert.o search.o files.o utils.o
gcc -g -o edit edit.o kbd.o commands.o display.o $ \backslash$
insert.o search.o files.o utils.o -lg++

edit.o : edit.cc defs.h
gcc -g -c -Wall edit.cc
kbd.o : kbd.cc defs.h command.h
gcc -g -c -Wall kbd.cc
commands.o : command.cc defs.h command.h
gcc -g -c -Wall commands.cc
display.o : display.cc defs.h buffer.h
gcc -g -c -Wall display.cc
insert.o : insert.cc defs.h buffer.h
gcc -g -c -Wall insert.cc
search.o : search.cc defs.h buffer.h
gcc -g -c -Wall search.cc
files.o : files.cc defs.h buffer.h command.h
gcc -g -c -Wall files.cc
utils.o : utils.cc defs.h
gcc -g -c -Wall utils.cc

���� ���� �������� ������������������ ������ ������. � ����� ���� ������� �������� ���:

<����_1> <����_2> ... <����_n>: <�����������_1> <�����������_2> ... <�����������_n>
   <�������_1>
   <�������_2>
   ...
   <�������_n>
������ ������� ������� �� ������, ���������� ��� ������ ����, ����������� ����������, �� �������� ������� ���� ��� ��������� �����, ������������ � ���������. ����� ������ ����� ���� ����������, ��� �������� ����, ���� ��������� �� ��������� ������, ������� ��������� ��� ������, �������� ������ � �����������. ������ `#' ��������� ������ �����������, ������� ������������ �� ����� ������ ������.

���� (target) - ��� ����� �������� ���������, ������ ���������� �������� ������ � �������. ���� ����� ������������ ����� ��� �����. � ���� ������ ������� ���������, ����� ������� ����� �������� ����� ������ ����� �����.

���� ����� ����� ���� ������ ���������� ��������. � ����� ������ ������� ���������, ����� ������� ����������� ��������� ��������. ��������� ���� ���� ���������� ���������� (pseudotargets) ��� ����������� ���� (phony targets).

����������� (dependency)- ��� ����� "�������� ������", ����������� ��� ���������� ��������� � ������� ����. ����� ������� ��� ����������� - ��� "��������������� �������" ��� ���������� ����. ����������� ����� ������������ ����� ��� �����. ���� ���� ������ ������������, ��� ���� ����� ����� ���� ������� ��������� ����. ����������� ����� ����� ���� ������ ���������� ��������. ��� �������� ������ ���� �������������� ��������� ����� ����������� ��������� � ������� ����.

������� - ��� ��������, ������� ���������� ��������� ��� ���������� ���� ���������� ����. ������� make �������� ������, ���������� �������, �� ������ ����� make-����� �� ������� ������� ��������� (������� � ����� 9) � ������ ������. ��� ������� shell (�� ���� �������, ������� �� ������ ��������� � �������� Linux), ������� ����������� � ������������ �������, ����� ������� ��� �������� ���� ������� (������ ������� �������� - update).



Alex Otwagin 2002-12-16



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

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