47 lines
722 B
Makefile
47 lines
722 B
Makefile
|
but : superviseur
|
||
|
|
||
|
OFILES= action.o\
|
||
|
decod_instruction.o\
|
||
|
graphique.o
|
||
|
|
||
|
CFLAGS= -Wall -ansi -pedantic -g -lgraph -o
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
action.o : action.c
|
||
|
gcc action.c -c -lgraph -o action.o
|
||
|
|
||
|
decod_instruction.o : decod_instruction.h decod_instruction.c graphique.h
|
||
|
gcc decod_instruction.c -c -o decod_instruction.o
|
||
|
|
||
|
graphique.o : graphique.h graphique.c
|
||
|
gcc graphique.c -c -lgraph -o graphique.o
|
||
|
|
||
|
|
||
|
|
||
|
superviseur : $(OFILES)
|
||
|
gcc $(OFILES) $(CFLAGS) superviseur
|
||
|
|
||
|
|
||
|
clean :
|
||
|
-rm -f $(OFILES) taquin
|
||
|
|
||
|
run :
|
||
|
./superviseur
|
||
|
compil :
|
||
|
gcc mon_gcc.c -Wall -ansi -g -lm -o mon_gcc
|
||
|
|
||
|
execute :
|
||
|
./mon_gcc Virus1.ass Virus2.ass
|
||
|
|
||
|
#chapitre 6 : buts factices
|
||
|
|
||
|
.PHONY : but clean
|
||
|
|
||
|
.PHONY : but run
|
||
|
|
||
|
.PHONY : but compil
|
||
|
|
||
|
.PHONY : but execute
|