build: replace custom make file with autotools

Only cgpt related code is built now. Note that in-tree builds do not
work because the cgpt directory conflicts with the output cgpt binary.
The old Makefile handled this by always outputting to `build`.

    mkdir build
    cd build
    ../configure
    make
    make check
6 files changed