Roland Ver. 4.5 Informacje Techniczne Strona 7

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 212
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 6
iii
Table of Contents
1 Overview of make . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 How to Read This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Problems and Bugs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 An Introduction to Makefiles . . . . . . . . . . . . . . . . . . 3
2.1 What a Rule Looks Like . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 A Simple Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.3 How make Processes a Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.4 Variables Make Makefiles Simpler. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.5 Letting make Deduce the Recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.6 Another Style of Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.7 Rules for Cleaning the Directory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Writing Makefiles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1 What Makefiles Contain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1.1 Splitting Long Lines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.2 What Name to Give Your Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.3 Including Other Makefiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.4 The Variable MAKEFILES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.5 How Makefiles Are Remade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.6 Overriding Part of Another Makefile. . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.7 How make Reads a Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.8 Secondary Expansion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4 Writing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.1 Rule Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.2 Types of Prerequisites. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.3 Using Wildcard Characters in File Names . . . . . . . . . . . . . . . . . . . . . 23
4.3.1 Wildcard Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.3.2 Pitfalls of Using Wildcards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.3.3 The Function wildcard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.4 Searching Directories for Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.4.1 VPATH: Search Path for All Prerequisites . . . . . . . . . . . . . . . . . . 25
4.4.2 The vpath Directive. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
4.4.3 How Directory Searches are Performed. . . . . . . . . . . . . . . . . . . . 27
4.4.4 Writing Recipes with Directory Search. . . . . . . . . . . . . . . . . . . . 27
4.4.5 Directory Search and Implicit Rules . . . . . . . . . . . . . . . . . . . . . . 28
4.4.6 Directory Search for Link Libraries . . . . . . . . . . . . . . . . . . . . . . . 28
4.5 Phony Targets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4.6 Rules without Recipes or Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . 31
4.7 Empty Target Files to Record Events. . . . . . . . . . . . . . . . . . . . . . . . . . 31
4.8 Special Built-in Target Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Przeglądanie stron 6
1 2 3 4 5 6 7 8 9 10 11 12 ... 211 212

Komentarze do niniejszej Instrukcji

Brak uwag