diff --git a/utilitaire/.h test b/utilitaire/.h test new file mode 100644 index 0000000..edc25ad --- /dev/null +++ b/utilitaire/.h test @@ -0,0 +1,6 @@ +#ifndef CONVERSION_H +#define CONVERSION_H +void argument(char *arg, long long *mem, long long *val); +long long int conversion(char *inst); + +#endif /*CONVERSION_H*/ \ No newline at end of file diff --git a/utilitaire/makefile b/utilitaire/makefile new file mode 100644 index 0000000..094dd18 --- /dev/null +++ b/utilitaire/makefile @@ -0,0 +1,31 @@ +but : taquin + +OFILES = menu.o \ + partie.o\ + main_taquin.o + +CC = gcc + + + +CFLAGS = -pedantic -g -lgraph + +menu.o : menu.h + + +main_taquin.o : menu.h partie.h + + + +taquin : $(OFILES) + $(CC) $(CFLAGS) -o taquin $(OFILES) + + +clean : + -rm -f $(OFILES) taquin + +run: + ./taquin + + +.PHONY : but clean \ No newline at end of file diff --git a/utilitaire/makefile2 b/utilitaire/makefile2 new file mode 100644 index 0000000..40f561d --- /dev/null +++ b/utilitaire/makefile2 @@ -0,0 +1,25 @@ +but :core_wars + +OFILES = conversion.o\ + main_core_wars.o +CC=gcc + + + +CFLAGS= -pedantic -g + +main_core_wars : conversion.o + + + +core_wars : $(OFILES) + $(CC) $(CFLAGS) -o core_wars $(OFILES) + +clean : + -rm -f $(OFILES) core_wars redcode.mars + +run: + ./core_wars + + +.PHONY : but clean