22.01.2014 Views

Linux Kernel, configuration, compiling - Dipartimento di Ingegneria ...

Linux Kernel, configuration, compiling - Dipartimento di Ingegneria ...

Linux Kernel, configuration, compiling - Dipartimento di Ingegneria ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Regole <strong>di</strong> default <strong>di</strong> make<br />

Regole a un solo suffisso<br />

.c → $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<<br />

.sh → cp $< $@ ; chmod a+x $@<br />

Regole a due suffissi<br />

.c.a → $(CC) $(CFLAGS) -c $< $(AR) \<br />

$(ARFLAGS) $@ $*.o ; rm -f $*.o<br />

.c.o → $(CC) $(CFLAGS) -c $<<br />

<br />

<br />

$@ è l'obiettivo della specifica regola.<br />

$< in<strong>di</strong>ca il nome del file che ha determinato la scelta<br />

della regola<br />

<strong>Kernel</strong> <strong>Linux</strong>, Configurazione e compilazione 8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!