Structuration du projet, création des fichiers, mise en place du makefile
This commit is contained in:
parent
c75f4e0966
commit
e052156674
9 changed files with 23 additions and 1 deletions
0
LEXER/lexer.c
Normal file
0
LEXER/lexer.c
Normal file
0
LEXER/lexer.h
Normal file
0
LEXER/lexer.h
Normal file
0
LISTE/liste.c
Normal file
0
LISTE/liste.c
Normal file
0
LISTE/liste.h
Normal file
0
LISTE/liste.h
Normal file
0
PILE/pile.c
Normal file
0
PILE/pile.c
Normal file
0
PILE/pile.h
Normal file
0
PILE/pile.h
Normal file
|
@ -11,7 +11,7 @@ Le projet initial fourni est compose de 8 fichiers et 3 dossiers :
|
|||
TP_FORTH_NOM1_NOM2
|
||||
| .gitignore : Fichier pour git (A lire pour le comprendre)
|
||||
| makefile : Fichier permettant la compilation (A lire pour le comprendre)(Fichier vierge)
|
||||
| forth_interpretteur.c : La ou le code sera ecrit (Fichier vierge)
|
||||
| forth.c : La ou le code sera ecrit (Fichier vierge)
|
||||
| LEXER
|
||||
| | lexer.c : Code liant le terminal et votre programme (NE PAS MODIFIER)
|
||||
| | lexer.h : Spécification des fonctions du lexer (A lire IMPERATIVEMENT)
|
||||
|
|
0
forth.c
Normal file
0
forth.c
Normal file
22
makefile
Normal file
22
makefile
Normal file
|
@ -0,0 +1,22 @@
|
|||
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
|
Loading…
Reference in a new issue