makefile
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
makefile [2016/09/01 19:49] – [Opção 2] jeferson | makefile [2016/09/01 20:02] (current) – [Opção 3] jeferson | ||
---|---|---|---|
Line 77: | Line 77: | ||
==== Opção 3 ==== | ==== Opção 3 ==== | ||
- | Nesta opção, se | + | Esta opção, |
+ | |||
+ | < | ||
+ | COMPILADOR = ifort -O2 | ||
+ | |||
+ | FSOURCES = $(wildcard *.f) | ||
+ | |||
+ | compile: | ||
+ | exec: $(FSOURCES: | ||
+ | | ||
+ | |||
+ | global_var.o: | ||
+ | | ||
+ | |||
+ | %.o: %.f global_var.o | ||
+ | | ||
+ | |||
+ | clean: | ||
+ | @rm -f *.o *.mod exec | ||
+ | run: | ||
+ | @./exec | ||
+ | </ | ||
+ | |||
+ | Neste arquivo, o @ no início de cada comando faz com que este não seja impresso na tela. O comando " | ||
+ | |||
+ | Em seguida, a variável especial " | ||
makefile.1472759398.txt.gz · Last modified: by jeferson