Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #3

Merged
merged 3 commits into from
Feb 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions headers/Generator/generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@
#define NBMAX 50

void aff_specif();
int main(int argc, char *argv[]);

#endif
int main(int argc, char *argv[]);
5 changes: 1 addition & 4 deletions headers/boite.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ void reception_boite(boite *box);
typedef struct{
int largeur;
int hauteur;
}boite;


#endif
}boite;
5 changes: 1 addition & 4 deletions headers/objets.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,4 @@ typedef struct{
int hauteur;
int x;
int y;
} objet;


#endif
} objet;
56 changes: 56 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
CC = gcc
CCFLAGS = -g -Wall
OBJ = algo.o boite.o debug.o objets.o interfaceC.o interface.o
OBJ2 = Ofiles/algo.o Ofiles/boite.o Ofiles/debug.o Ofiles/objets.o Ofiles/interfaceC.o Ofiles/interface.o
PATHSRC = src/
PATHHEADER = headers/
DEPINT = Interface/
DEPGEN = Generator/
OUTO = -o Ofiles/$*.o

vpath
vpath %.h headers
vpath %.h headers/Interface
vpath %.h headers/Generator

vpath %.c src
vpath %.c src/Interface
vpath %.c src/Generator

vpath %.o Ofiles

all: xX_projet_Xx generator

xX_projet_Xx : main.c $(OBJ)
$(CC) $(CCFLAGS) -o xX_projet_Xx $(PATHSRC)main.c $(OBJ2)

generator : generator.c
$(CC) $(CCFLAGS) -o generator $(PATHSRC)$(DEPGEN)generator.c

algo.o : algo.c algo.h boite.h objets.h interfaceC.h
$(CC) $(CCFLAGS) -c $(PATHSRC)algo.c $(OUTO)

boite.o : boite.c boite.h
$(CC) $(CCFLAGS) -c $(PATHSRC)boite.c $(OUTO)

objets.o : objets.c objets.h
$(CC) $(CCFLAGS) -c $(PATHSRC)objets.c $(OUTO)

interface.o : interface.c interface.h interfaceC.h
$(CC) $(CCFLAGS) -c $(PATHSRC)$(DEPINT)interface.c $(OUTO)

interfaceC.o : interfaceC.c interfaceC.h debug.h
$(CC) $(CCFLAGS) -c $(PATHSRC)$(DEPINT)interfaceC.c $(OUTO)

debug.o : debug.c debug.h
$(CC) $(CCFLAGS) -c $(PATHSRC)$(DEPINT)debug.c $(OUTO)

clean :
- rm xX_projet_Xx
- rm -f *.o






1 change: 0 additions & 1 deletion src/Generator/generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@ int main(int argc, char *argv[]){
printf("\n");
return 0;
}

4 changes: 4 additions & 0 deletions src/Generator/generator.c~
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include<stdlio.h>
#include<stdlib.h>


4 changes: 1 addition & 3 deletions src/Interface/debug.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#include<stdlio.h>
#include<stdlib.h>


#include<stdlib.h>
4 changes: 4 additions & 0 deletions src/Interface/debug.c~
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include<stdlio.h>
#include<stdlib.h>


4 changes: 1 addition & 3 deletions src/Interface/interface.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#include<stdlio.h>
#include<stdlib.h>


#include<stdlib.h>
4 changes: 4 additions & 0 deletions src/Interface/interface.c~
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include<stdlio.h>
#include<stdlib.h>


4 changes: 1 addition & 3 deletions src/Interface/interfaceC.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#include<stdlio.h>
#include<stdlib.h>


#include<stdlib.h>
4 changes: 4 additions & 0 deletions src/Interface/interfaceC.c~
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include<stdlio.h>
#include<stdlib.h>


4 changes: 1 addition & 3 deletions src/Interface/interfaceG.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#include<stdlio.h>
#include<stdlib.h>


#include<stdlib.h>
4 changes: 4 additions & 0 deletions src/Interface/interfaceG.c~
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include<stdlio.h>
#include<stdlib.h>


4 changes: 1 addition & 3 deletions src/algo.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#include<stdlio.h>
#include<stdlib.h>


#include<stdlib.h>
2 changes: 1 addition & 1 deletion src/boite.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ void initialiser_boite(boite *box){
void reception_boite(boite *box){
scanf("%d",&box->largeur);
scanf("%d",&box->hauteur);
}
}
4 changes: 1 addition & 3 deletions src/main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#include<stdlio.h>
#include<stdlib.h>


#include<stdlib.h>
2 changes: 1 addition & 1 deletion src/objets.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ void ajouter_objet(Liste *a, char nom ,int x, int y){
a->objet[nb_objets-1].nom=nom;
a->objet[nb_objets-1].x=x;
a->objet[nb_objets-1].y=y;
}
}