s/INCLUDES/AM_CPPFLAGS/g I <3 sed :)
No guarantees it works, but it should be able to convert a bunch of pcx images into a sprite.