Structuration du projet, création des fichiers, mise en place du makefile
这个提交包含在:
父节点
c75f4e0966
当前提交
e052156674
共有 9 个文件被更改,包括 23 次插入 和 1 次删除
0
LEXER/lexer.c
普通文件
0
LEXER/lexer.c
普通文件
0
LEXER/lexer.h
普通文件
0
LEXER/lexer.h
普通文件
0
LISTE/liste.c
普通文件
0
LISTE/liste.c
普通文件
0
LISTE/liste.h
普通文件
0
LISTE/liste.h
普通文件
0
PILE/pile.c
普通文件
0
PILE/pile.c
普通文件
0
PILE/pile.h
普通文件
0
PILE/pile.h
普通文件
|
@ -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
普通文件
0
forth.c
普通文件
22
makefile
普通文件
22
makefile
普通文件
|
@ -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
|
正在加载…
在新工单中引用