According to what I found, compiling with this command should work: make "LDFLAGS=-lX11 -lm -L/usr/lib/x86_64-linux-gnu/" full-clean all
I'm not sure though, since I'm on Manjaro and it puts the libraries in a different place.No, actually.
Run it manually, it should work:
rm -f main.o gfx.o game.o worldgen.o battle.o game
rm -f config.h
cp config.def.h config.h
cc -c -o main.o -std=c89 -Wall -pedantic -D_XOPEN_SOURCE=600 -g -Wno-deprecated-declarations main.c
cc -c -o gfx.o -std=c89 -Wall -pedantic -D_XOPEN_SOURCE=600 -g -Wno-deprecated-declarations gfx.c
cc -c -o game.o -std=c89 -Wall -pedantic -D_XOPEN_SOURCE=600 -g -Wno-deprecated-declarations game.c
cc -c -o worldgen.o -std=c89 -Wall -pedantic -D_XOPEN_SOURCE=600 -g -Wno-deprecated-declarations worldgen.c
cc -c -o battle.o -std=c89 -Wall -pedantic -D_XOPEN_SOURCE=600 -g -Wno-deprecated-declarations battle.c
cc -o game main.o gfx.o game.o worldgen.o battle.o -lX11 -lm