test4 has some of the same header files as pcmcia-cs, but without the same contents. If I try to build, dump_cis fails because it can't find all sorts of things. Changing config.mk to -I ../include before the linux kernel directory seems to cure it (although I haven't tried using it yet).
make: Entering directory `/usr/src/pcmcia-cs-3.1.18/debug-tools' cc -MD -O -Wall -Wstrict-prototypes -pipe -I../include/static -I/usr/src/linux/include -I../include -I../modules -c dump_cis.c dump_cis.c:785: parse error before `*' dump_cis.c:786: warning: function declaration isn't a prototype dump_cis.c: In function `print_format': dump_cis.c:787: `fmt' undeclared (first use in this function) dump_cis.c:787: (Each undeclared identifier is reported only once dump_cis.c:787: for each function it appears in.) dump_cis.c:787: `CISTPL_FORMAT_DISK' undeclared (first use in this function) dump_cis.c:789: `CISTPL_FORMAT_MEM' undeclared (first use in this function)