forked from freudenreichan/info2Praktikum-Wortsalat
main TODO und makefile
This commit is contained in:
1 parent
46ba65eaa5
commit
3172ff8143
2 files changed
+12
No files matched your search
@@ -40,6 +40,15 @@ int main(int argc, char *argv[])
|
||||
// Check if all words were successfully placed
|
||||
// Start the game if successful
|
||||
// error message if some words couldn't be placed
|
||||
if (wordCount == placedWords)
|
||||
{
|
||||
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800);
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "Could not start, because not all words placed (%u of %u placed).\n", placedWords, wordCount);
|
||||
exitCode = EXIT_FAILURE;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
|
||||
@@ -40,6 +40,9 @@ game.o: $(codefolder)/game.c
|
||||
graphicalGame.o: $(codefolder)/graphicalGame.c
|
||||
$(CC) -I$(raylibfolder) -c $(CFLAGS) $(codefolder)/graphicalGame.c
|
||||
|
||||
wordsalad_myversion: main.o
|
||||
$(CC) -o wordsalad_myversion -L. $(BINARIES)/libwordsalad_complete.a $(BINARIES)/libraylib.a $(LDFLAGS)
|
||||
|
||||
|
||||
# --------------------------
|
||||
# Unit Tests
|
||||
|
||||
Reference in new issue
Block a user