Hello there, I've been making a Text based rpg game in C and recently I started learning about Makefiles. When I tried making one for this project, I couldn't seem to get it to work. Any help would be appreciated.
Makefile-
bin/C-RPG.exe: bin/main.o
gcc bin/main.o -o bin/C-RPG.exe
bin/main.o: src/main.c
gcc src/main.c -o bin/main.o
You can take a look at the repo here if you need to know how i structured the files: https://github.com/Jiggly-Balls/C-RPG/tree/main
when i run make i run into this error: https://pastebin.com/tv2Bm2yx
GitHub
A text based RPG game made in C. Contribute to Jiggly-Balls/C-RPG development by creating an account on GitHub.
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.