aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-03-22 13:29:47 +0100
committerGerd Hoffmann <kraxel@redhat.com>2016-03-22 13:29:47 +0100
commit6af0fb2c69e06df9476393fc57aae7b9d649560d (patch)
tree91e428522ae06eb54be24b05017680563ff3394f /Makefile
downloaddrminfo-6af0fb2c69e06df9476393fc57aae7b9d649560d.tar.gz
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ca8d539
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+CC ?= gcc
+CFLAGS ?= -Os -g -std=c99
+CFLAGS += -Wall
+
+TARGETS := drminfo
+
+CFLAGS += $(shell pkg-config --cflags libdrm)
+LDLIBS += $(shell pkg-config --libs libdrm)
+
+all: $(TARGETS)
+
+clean:
+ rm -f $(TARGETS)
+ rm -f *~
+
+drminfo: drminfo.o