summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJérôme Glisse <jglisse@redhat.com>2018-03-06 16:21:26 -0500
committerJérôme Glisse <jglisse@redhat.com>2018-03-06 16:21:26 -0500
commit2f73b7129501cc32c085651ba6e5fc1e30d2c7ed (patch)
treecbe0f58667adaeec8b64243a96fa0fb7f9f37896 /Makefile
parent75b6bec395ac8aefea5de22cfcc58b6346ea0cac (diff)
moche: initial basic testHEADmaster
This just write thread.idx to a buffer. Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..149488a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+# Copyright 2018 Jérôme Glisse <jglisse@redhat.com>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# version 2 as published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+CFLAGS = -std=c99 -Wall -O0 -g -D_GNU_SOURCE -I/usr/include/drm
+LFLAGS = -lm -ldrm -ldrm_nouveau
+CC = gcc
+
+all: moche
+
+moche: moche.o
+ $(CC) $(CFLAGS) $? -o $@ $(LFLAGS)
+
+clean:
+ rm moche *.o