All prebuilt libraries are available in the php-libs repositories
For PHP suitable sources and up-to-date information see https://github.com/winlibs/libxpm
The filename format is:
where x.y.z defines the version, vcversion which Visual C++ has been used.
LibXpm can be compiled using various modes. Only the following list can be used with PHP:
PHP uses “LIB Release” for the PHP builds.
One of these option has to be used while calling the makefile (VC6 only). VS solution files are given for VC8 and VC9.
Go to the .\windows subdir, choose and compile the appropriate VC solution.