Package libconfig was not found in the pkg-config search path

Does anyone have any ideas about how to solve the following problem?

~/Downloads/xob-0.2/xob-0.2$ sudo make
[sudo] password: 
Package libconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `libconfig.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libconfig' found
cc  -std=c99 -Wall -Wextra -pedantic -DSYSCONFDIR='"/usr/local/etc"' -c -o src/display.o src/display.c
Package libconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `libconfig.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libconfig' found
cc  -std=c99 -Wall -Wextra -pedantic -DSYSCONFDIR='"/usr/local/etc"' -c -o src/conf.o src/conf.c
src/conf.c:20:10: fatal error: libconfig.h: No such file or directory
20 | #include <libconfig.h>
    |          ^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:27: src/conf.o] Error 1