Akhy laisse le git

This commit is contained in:
Vieira Enzo 2022-01-25 12:46:19 +01:00
parent 0537cce4d6
commit 7a9c24b042
3 changed files with 62 additions and 0 deletions

6
utilitaire/.h test Normal file
View File

@ -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*/

31
utilitaire/makefile Normal file
View File

@ -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

25
utilitaire/makefile2 Normal file
View File

@ -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