Compilation C
Description du code
Script de compilation. Compilateur LSD010Code source ou contenu du fichier
Code bash (Compilation C) (36 lignes)
#!/bin/bash # debug: -x echo "$USERNAME($UID) on $HOSTNAME [running $OSTYPE]" finalName='lsd10' echo "Compile $finalName code" clear cd source/ echo "" echo -e "\033[33;40m" echo "Removing possible previous compiled files ..." rm lex.yy.c y.tab.c y.tab.h y.output 2>/dev/null rm *.o *~ 2>/dev/null echo "Cleaning executable file ..." rm $finalName 2>/dev/null echo "" echo "" echo "Compiling Yacc file ..." bison -dtyv lsd10.y && echo "" echo "" echo "Compiling Lex file ..." flex lsd10.l && #bison --yacc -d -v lsd10.y && #gcc -g -ansi -pedantic -Wall *.c echo "" echo "" echo "Compiling C files ..." gcc -c *.c gcc -o $finalName *.o echo "" echo "" echo -e "\033[32;40mDone\033[00m" echo "" echo "" #echo "Press [Ctrl]+c to escape" #read
Autres extraits de codes en bash
- Compilation C Script de compilation. Compilateur LSD010
- tar.gz Script d'utilisation de l'archivage et la compression tar.gz avec horodateur. Compilateur LSD010
- Suppression de fichiers Script de nettoyage des fichiers de compilation inutiles. Compilateur LSD010
- Suppression de fichiers Script de nettoyage de tous les fichiers. Compilateur LSD010
- Tous les extraits
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 05/10/2009, last modified the 28/10/2018
Source of the printed document:https://www.gaudry.be/en/sniplet-rf-lsd010/project/build.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.