include version in amd build as well

this adds a `PREAMBLE` var that can be reused in the `amd` target.