build: use gnu autotools
authorRan Benita <ran234@gmail.com>
Sun, 27 Nov 2011 16:54:53 +0000 (18:54 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 1 Dec 2011 15:21:37 +0000 (16:21 +0100)
commit6d451a20157a34e5effc9191747af5b38f2daf57
tree33ae263effc7743153fbe69a6762b2ddffc71663
parent77963ec305453001dbc8c5a2aad5fced50da8119
build: use gnu autotools

This commit adds basic autoconf + automake files to build the project.
It also adds a main.c stub in order to simulate the main binary.

The configure script uses pkg-config to find the libraries. The usual
stuff should work. The only additional option right now is:
        ./configure --enable-debug [To enable debugging symbols]
The Makefile should also support the standard stuff:
        make [To build the kmscon binary]
        make check [To build the test_* binaries]
        make dist [To create a tarball]
        make clean
        make install
        etc.

To start from a clean tree (e.g. git clean -dfx), do something like the
following:
        ./autogen.sh
        ./configure --enable-debug CFLAGS=-O0
        make

It all should work well enough for now.

Signed-off-by: Ran Benita <ran234@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Makefile [deleted file]
Makefile.am [new file with mode: 0644]
autogen.sh [new file with mode: 0755]
configure.ac [new file with mode: 0644]
src/main.c [new file with mode: 0644]