"depot M111"
This commit is contained in:
3
appli_A/Help
Executable file
3
appli_A/Help
Executable file
@ -0,0 +1,3 @@
|
||||
|
||||
Pour produire l'executable : gcc *.c -o appli_A
|
||||
|
0
appli_A/dir/1.c
Executable file
0
appli_A/dir/1.c
Executable file
0
appli_A/dir/2.c
Executable file
0
appli_A/dir/2.c
Executable file
0
appli_A/dir/23-36664289109.c
Executable file
0
appli_A/dir/23-36664289109.c
Executable file
0
appli_A/dir/3.c
Executable file
0
appli_A/dir/3.c
Executable file
0
appli_A/dir/546.c
Executable file
0
appli_A/dir/546.c
Executable file
7
appli_A/fichier_A1.c
Executable file
7
appli_A/fichier_A1.c
Executable file
@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include "fichier_A1.h"
|
||||
structA1 structA1Creation (int x, int y)
|
||||
{ printf ("Execution de structA1Creation\n");}
|
||||
void structA1Afficher (structA1 x)
|
||||
{ printf ("Execution de structA1Afficher\n");}
|
||||
|
9
appli_A/fichier_A1.h
Executable file
9
appli_A/fichier_A1.h
Executable file
@ -0,0 +1,9 @@
|
||||
/// Header_A1
|
||||
typedef struct
|
||||
{
|
||||
int champX;
|
||||
int champY;
|
||||
} structA1;
|
||||
structA1 structA1Creation (int x, int y);
|
||||
void structA1Afficher (structA1 x);
|
||||
|
9
appli_A/fichier_A2.c
Executable file
9
appli_A/fichier_A2.c
Executable file
@ -0,0 +1,9 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include "fichier_A2.h"
|
||||
structA2 structA2Creation (int x, int y)
|
||||
{ printf ("Execution de structA2Creation\n");}
|
||||
void structA2Afficher (structA2 x)
|
||||
{ printf ("Execution de structA2Afficher\n");}
|
||||
|
||||
|
9
appli_A/fichier_A2.h
Executable file
9
appli_A/fichier_A2.h
Executable file
@ -0,0 +1,9 @@
|
||||
/// Header_A2
|
||||
typedef struct
|
||||
{
|
||||
int champX;
|
||||
int champY;
|
||||
} structA2;
|
||||
structA2 structA2Creation (int x, int y);
|
||||
void structA2Afficher (structA2 x);
|
||||
|
7
appli_A/fichier_A3.c
Executable file
7
appli_A/fichier_A3.c
Executable file
@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include "fichier_A3.h"
|
||||
structA3 structA3Creation (int x, int y)
|
||||
{ printf ("Execution de structA3Creation\n");}
|
||||
void structA3Afficher (structA3 x)
|
||||
{ printf ("Execution de structA3Afficher\n");}
|
||||
|
9
appli_A/fichier_A3.h
Executable file
9
appli_A/fichier_A3.h
Executable file
@ -0,0 +1,9 @@
|
||||
/// Header_A3
|
||||
typedef struct
|
||||
{
|
||||
int champX;
|
||||
int champY;
|
||||
} structA3;
|
||||
structA3 structA3Creation (int x, int y);
|
||||
void structA3Afficher (structA3 x);
|
||||
|
BIN
appli_A/main
Executable file
BIN
appli_A/main
Executable file
Binary file not shown.
73
appli_A/mgcc.sh
Executable file
73
appli_A/mgcc.sh
Executable file
@ -0,0 +1,73 @@
|
||||
#echo "|**********************************************************************|"
|
||||
#echo "* Projet : TD11 - Script 1"
|
||||
#echo "*"
|
||||
#echo "* Programme : mgcc.sh"
|
||||
#echo "*"
|
||||
#echo "* Auteur : JunkJumper"
|
||||
#echo "*"
|
||||
#echo "* Date created : 12-12-2018"
|
||||
#echo "*"
|
||||
#echo "* But : Apprendre pour le makefile"
|
||||
#echo "*"
|
||||
#echo "|**********************************************************************|"
|
||||
|
||||
varX1=0 ; varX2=0
|
||||
|
||||
leVerbose=NON
|
||||
leInclude=NON
|
||||
repertoire=.
|
||||
echo Nombre d arguments = $#
|
||||
|
||||
if [[ $# > 4 ]]
|
||||
then
|
||||
echo "$0: Erreur, vous avez entré trop d'arguments" ; exit 2
|
||||
else
|
||||
while [[ $# -gt 0 ]] ; do
|
||||
case $1 in
|
||||
"-v" | "--verbose" )
|
||||
leVerbose=OUI
|
||||
shift
|
||||
;;
|
||||
"-i" | "--include" )
|
||||
leInclude=OUI
|
||||
shift
|
||||
;;
|
||||
"-d" | "--directory" )
|
||||
if [[ -n $2 ]]
|
||||
then
|
||||
if [ -d $2 ]
|
||||
then
|
||||
repertoire=$2
|
||||
else
|
||||
echo "$0: Syntaxe : le répertoire $2 n'existe pas" ; exit 2
|
||||
fi
|
||||
else
|
||||
echo "$0: Syntaxe : $1 doit etre accompagné d'un répertoire valide"
|
||||
|
||||
fi
|
||||
shift ; shift ;;
|
||||
* ) echo "$0: Syntaxe : $1 = parametre interdit" ; exit 2
|
||||
esac
|
||||
|
||||
done
|
||||
fi
|
||||
|
||||
#ca c'est pour tester mtn va les enlever
|
||||
echo $leVerbose
|
||||
echo $leInclude
|
||||
echo $repertoire
|
||||
echo ""
|
||||
|
||||
cd $repertoire
|
||||
for i in *.c
|
||||
do
|
||||
echo "gcc -c $i"
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
cd /home/sj801446/Documents/M111/TP_11_bash_projet_make/appli_A/
|
3
appli_A/redir
Executable file
3
appli_A/redir
Executable file
@ -0,0 +1,3 @@
|
||||
1.c
|
||||
2.c
|
||||
3.c
|
Reference in New Issue
Block a user