sconfig - A simple configuration program

sconfig is an extremely simple alternative to the GNU auto tools.

Download sconfig and try it out. To use it, put something similar to this in your makefile, just after the default target:

sconfig.mk: sconfig.conf
	./sconfig --conf=$< --output=$@

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),distclean)
-include sconfig.mk
endif
endif

Also, create a file called sconfig.conf containing sconfig commands. (Actually, this file is just a shell script run by sconfig, so you can put any commands in there.) There are two sconfig commands:

usepkg name
Use this to create a dependency on a library that uses pkg-config.
uselib name include
Use this to depend on a traditional C library. Name is the name of the library to link in, and include is the header file.