summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>2018-03-05 16:32:35 -0500
committerLeo (Sunpeng) Li <sunpeng.li@amd.com>2018-05-02 10:13:30 -0400
commitfd3eb68772d2867f71fd72bd3732c97a0944ccc6 (patch)
tree18f445a1a3f1f11b3432a790b27cfc21edd9eb25 /Makefile
parent748f8d49a1fc0deb1c9d58e97598232707876ab3 (diff)
Adding makefile, Init app .c file.
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ff3019e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+CFLAGS=-g -Wall
+CC=gcc
+
+LDFLAGS=$(shell pkg-config --cflags --libs libdrm)
+LDLIBS = -lm
+
+SOURCES=$(wildcard *.c)
+EXECUTABLES=$(patsubst %.c,%,$(SOURCES))
+
+all: $(EXECUTABLES)
+
+clean:
+ rm -f $(EXECUTABLES)