informatica:sol:laboratorio15:esercitazionia:makefileexample
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Prossima revisione | Revisione precedente | ||
informatica:sol:laboratorio15:esercitazionia:makefileexample [18/03/2015 alle 11:14 (10 anni fa)] – creata Massimo Torquati | informatica:sol:laboratorio15:esercitazionia:makefileexample [24/03/2015 alle 13:12 (10 anni fa)] (versione attuale) – Massimo Torquati | ||
---|---|---|---|
Linea 2: | Linea 2: | ||
Viene proposto un semplice Makefile da utilizzare per fare esperimenti e " | Viene proposto un semplice Makefile da utilizzare per fare esperimenti e " | ||
+ | |||
+ | ==== Versione base ==== | ||
+ | |||
+ | < | ||
+ | # | ||
+ | # PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. | ||
+ | # Massimo Torquati < | ||
+ | # | ||
+ | |||
+ | CC = gcc | ||
+ | CFLAGS | ||
+ | INCLUDES = -I. | ||
+ | OPTFLAGS = -g #-O3 | ||
+ | |||
+ | .PHONY: all clean cleanall | ||
+ | |||
+ | TARGETS = macro1 macro2 | ||
+ | |||
+ | all : $(TARGETS) | ||
+ | |||
+ | macro1 : macro1.c | ||
+ | macro2 : macro2.c | ||
+ | |||
+ | |||
+ | clean : | ||
+ | -rm -f $(TARGETS) | ||
+ | </ | ||
+ | |||
+ | ==== Versione leggermente più complessa ==== | ||
< | < |
informatica/sol/laboratorio15/esercitazionia/makefileexample.1426677299.txt.gz · Ultima modifica: 18/03/2015 alle 11:14 (10 anni fa) da Massimo Torquati