From 7a9c24b04267caf7db5c54a0bd65bc2bfc706e34 Mon Sep 17 00:00:00 2001 From: Vieira Date: Tue, 25 Jan 2022 12:46:19 +0100 Subject: [PATCH] Akhy laisse le git --- utilitaire/.h test | 6 ++++++ utilitaire/makefile | 31 +++++++++++++++++++++++++++++++ utilitaire/makefile2 | 25 +++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 utilitaire/.h test create mode 100644 utilitaire/makefile create mode 100644 utilitaire/makefile2 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