ProjetGIT_TP_Forth/makefile

22 lines
440 B
Makefile

default :
@echo "Veuillez choisir une cible : [all | forth | liste | pile | lexer | clean]"
all : forth
clean :
@rm -f *.o *~ forth_interpretor 2> /dev/null
liste : LISTE/liste.o
pile : PILE/pile.o
lexer : LEXER/lexer.o
forth : forth.o PILE/pile.o LISTE/liste.o LEXER/lexer.o
gcc -Wall LEXER/lexer.o LISTE/liste.o PILE/pile.o forth.o -o $@
%.o : %.c
gcc -c $<
pile.o : PILE/pile.h
liste.o : LISTE/liste.h
lexer.o : LEXER/lexer.h