diff --git a/Makefile.c b/Makefile.c new file mode 100644 index 0000000000000000000000000000000000000000..0c515f185cdc23e8aea5e885b94080ed8d1b3f2d --- /dev/null +++ b/Makefile.c @@ -0,0 +1,22 @@ +all : projet_3 + +projet_3 : projet_3.o test_projet_3.o + gcc -g -o projet_3 projet_3.o test_projet_3.o -I${HOME}/local/include -lcunit -L${HOME}/local/lib + + +projet_3.o : projet_3.c + gcc -g -o projet_3.o -c projet_3.c -W -Wall + + +test.o : test_projet_3.c projet_3.h + gcc -g -o test_projet_3.o -c test_projet_3.c -I${HOME}/local/include -W -Wall -lcunit + + +clean : + rm -rf *.o + +mrproper: clean + rm -rf projet_3 + +prog : projet_3 + ./projet_3