Add temporary Makefile
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 19 Nov 2011 23:21:49 +0000 (00:21 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 19 Nov 2011 23:21:49 +0000 (00:21 +0100)
This makefile can be used to build kmscon and the test suite. It is quite rough
and will later or sooner be replaced by a proper build-tool like autotools.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..b818d18
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+#
+# kmscon - Makefile
+# Written 2011 by David Herrmann <dh.herrmann@googlemail.com>
+#
+
+#
+# To compile the kmscon application, use:
+#   $ make
+# To compile the test suites, use:
+#   $ make tests
+#
+# This makefile is in no way complete nor sophisticated. If you have time to
+# replace it with autotools, I would be glad to apply your patches.
+#
+
+CFLAGS=-g -O0 -Wall `pkg-config --cflags --libs egl gbm gl` -Isrc
+
+all:
+       gcc -o kmscon src/*.c $(CFLAGS)
+
+tests:
+       gcc -o test_output tests/test_output.c src/output.c $(CFLAGS)
+
+clean:
+       @rm -vf kmscon test_output
+
+.PHONY: all tests clean