Cypress CSC-1200T Guide de l'utilisateur Page 88

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 124
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 87
88 Cray T3E User’s Guide
Chapter 9
Programming tools
9.1 The make system
The make utility executes commands in a makefile to update one or
more targets, which typically are programs. The make system is mainly
used to maintain programs consisting of several source files. When
some of the source files are modified, the make system recompiles only
the modified files (and those files that depend on the modified files).
Here is a typical makefile:
OBJECTS= func1.o func2.o
OPTS= -O
LIBS= -lnag
all: myprog
myprog: $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
.c.o:
$(CC) -c $(OPTS) $<
clean:
rm -f $(OBJECTS)
rm -f core
rm -f myprog
Each indented line of the makefile should start with a Tab character.
There should also be an empty line at the end.
The Unix command
Vue de la page 87
1 2 ... 83 84 85 86 87 88 89 90 91 92 93 ... 123 124

Commentaires sur ces manuels

Pas de commentaire