diff --git a/.gitignore b/.gitignore index 82ec559d..a05e94ff 100644 --- a/.gitignore +++ b/.gitignore @@ -18,7 +18,7 @@ newlib/examples/hello newlib/examples/jacobi newlib/examples/echo newlib/examples/tests -newlib/examples/hangman +newlib/examples/mshell newlib/tmp/* newlib/x86/* metalsvm.elf diff --git a/newlib/examples/Makefile b/newlib/examples/Makefile index e184cbf0..ab38e44f 100644 --- a/newlib/examples/Makefile +++ b/newlib/examples/Makefile @@ -11,7 +11,7 @@ LDFLAGS = default: all -all: hello tests jacobi hangman mshell +all: hello tests jacobi mshell jacobi: jacobi.o $(CC_FOR_TARGET) -T link.ld -o $@ $(LDFLAGS) $< -lm @@ -31,12 +31,6 @@ hello: hello.o $(OBJCOPY_FOR_TARGET) $(STRIP_DEBUG) $@ chmod a-x $@.sym -hangman: hangman.o - $(CC_FOR_TARGET) -T link.ld -o $@ $(LDFLAGS) $< - $(OBJCOPY_FOR_TARGET) $(KEEP_DEBUG) $@ $@.sym - $(OBJCOPY_FOR_TARGET) $(STRIP_DEBUG) $@ - chmod a-x $@.sym - mshell: mshell.o $(CC_FOR_TARGET) -T link.ld -o $@ $(LDFLAGS) $< $(OBJCOPY_FOR_TARGET) $(KEEP_DEBUG) $@ $@.sym diff --git a/newlib/examples/hangman.c b/newlib/examples/hangman.c deleted file mode 100644 index e558b0ef..00000000 --- a/newlib/examples/hangman.c +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include -#include - -int Spiel () -{ - //Variablen - - char* Wort = malloc(100*sizeof(char)); - char* Raten = malloc(100*sizeof(char));; - int Versuche = 10; - - printf("Spieler 1 geben sie das Wort ein :"); - scanf("%s", Wort); - - printf("\n\nNun, Spieler 2 errate bitte das Wort\n"); - - while(Raten!=Wort && Versuche > 0){ - printf("Deine Antwort:"); - scanf("%s", Raten); - - - if(!strcmp(Raten,Wort)) - { - printf("ToLL! Das Wort ist richtig"); - return 0; - } - else - { - printf("Schade das Wort ist falsch"); - } - Versuche--; - } - return 0; -}//Spielen - -int main(int argc, char** argv) -{ - Spiel(); -} - diff --git a/newlib/examples/mshell b/newlib/examples/mshell deleted file mode 100755 index 84ece8f5..00000000 Binary files a/newlib/examples/mshell and /dev/null differ