• # Makefile

    Posté par (site web personnel) . En réponse au message Indent & makefiles. Évalué à 1.

    Pour le Makefile, voici un exemple qui j'espère te parlera

    usage : "make" ou "make all" pour faire list, doc, cafe

    ou 'make cafe'...
    "make clean"....

    ----------------------
    all: list doc cafe

    list : functions.o parser.o daemon.c daemon.h
    gcc -Wall daemon.c functions.o parser.o -o list


    functions.o : functions.c functions.h
    gcc -Wall -c functions.c -o functions.o

    parser.o : parser.c parser.h
    gcc -Wall -c parser.c -o parser.o

    doc:
    tes commandes ici....

    cafe:
    ton cafe ici

    clean:
    rm -f list
    rm -f *.o

    distclean:
    rm -f list
    rm -f *.o
    rm -f *~
    rm -f *.core

    -------------------
    hopes this helps