From fd89a1e5f728cc7c1123192262b5605824ce31eb Mon Sep 17 00:00:00 2001 From: "Chris.F" Date: Thu, 15 Oct 2026 21:13:42 +0200 Subject: [PATCH] makefile angepasst --- Startcode/input.c | 2 +- Startcode/makefile | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Startcode/input.c b/Startcode/input.c index 395d7af..cb76f11 100644 --- a/Startcode/input.c +++ b/Startcode/input.c @@ -9,7 +9,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) { char puffer[MAX_WORD_LEN]; - char *teiler = " ,;"; + char *teiler = " ,;\n"; char *token; unsigned int wordCount = 0; diff --git a/Startcode/makefile b/Startcode/makefile index 7cf1d4c..bc64e9f 100644 --- a/Startcode/makefile +++ b/Startcode/makefile @@ -25,6 +25,9 @@ wordsalad_initial: # -------------------------- # Normales Spiel bauen # -------------------------- +my_wordsalad: main. o input.o $(BINARIES)/libwordsalad_complete.a + $(CC) $(CFLAGS) -o my_wordsalad main.o input.o $(BINARIES)/libwordsalad_complete.a $(BINARIES)/libraylib.a $(LDFLAGS) + wordsalad: main.o input.o game.o graphicalGame.o $(BINARIES)/libraylib.a $(CC) $(CFLAGS) -o wordsalad main.o input.o game.o graphicalGame.o $(BINARIES)/libraylib.a $(LDFLAGS)