Changes between Version 12 and Version 13 of Makefile


Ignore:
Timestamp:
Apr 27, 2016, 4:14:15 PM (8 years ago)
Author:
Mattia Monga
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Makefile

    v12 v13  
    2626
    2727   {{{
    28 #!python
     28#!c
    2929
    3030#include <stdio.h>
     
    4040
    4141   }}}
     42
     43A questo punto si può automatizzare la produzione di `somma` con un `Makefile`
     44
     45
     46 * `Makefile`
     47
     48    {{{#!make
     49.PHONY: all clean
     50
     51
     52all: somma
     53
     54
     55clean:
     56    rm -f *.o somma
     57
     58somma: somma.o sommaf.o
     59        gcc -o somma somma.o sommaf.o
     60
     61somma.o: somma.c
     62        gcc -c somma.c
     63
     64sommaf.o: sommaf.asm
     65        nasm -f elf32 sommaf.asm
     66
     67}}}
     68
     69