teapot-starkit2exe-makefile

 BINS = testapp-linux-x86 testapp-solaris-sparc
 EXTENSIONS = pki pki::pkcs11

 all: $(BINS)

 testapp-%: testapp.vfs/main.tcl testapp.vfs/testapp.tcl
        rm -rf testapp.vfs/lib
        teapot-client get testapp.vfs $(shell echo "$@" | sed 's@^testapp-@@;s@-@ @g') $(EXTENSIONS)
        starkit2exe testapp.vfs "$@" $(shell echo "$@" | sed 's@^testapp-@@')
        rm -rf testapp.vfs/lib