Swantbl is a utility that creates SWITCHES and ANIMATED lumps to put in your wad.
By editing the DEFSWANI.dat you add new image (name frames) to it, and then compile it with Swantbl, which then outputs the 2 animation lumps to put in your wad.
You'll get the idea..

And then run:

Swantbl.exe DEFSWANI.DAT