aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 04d7b2e..2d2f01a 100644
--- a/Makefile
+++ b/Makefile
@@ -2,13 +2,16 @@ CC ?= gcc
CFLAGS ?= -Os -g -std=c99
CFLAGS += -Wall
-TARGETS := drminfo drmtest
+TARGETS := drminfo drmtest gtktest
drminfo : CFLAGS += $(shell pkg-config --cflags libdrm)
drminfo : LDLIBS += $(shell pkg-config --libs libdrm)
-drmtest : CFLAGS += $(shell pkg-config --cflags libdrm gbm epoxy)
-drmtest : LDLIBS += $(shell pkg-config --libs libdrm gbm epoxy)
+drmtest : CFLAGS += $(shell pkg-config --cflags libdrm gbm epoxy cairo cairo-gl)
+drmtest : LDLIBS += $(shell pkg-config --libs libdrm gbm epoxy cairo cairo-gl)
+
+gtktest : CFLAGS += $(shell pkg-config --cflags gtk+-3.0 cairo)
+gtktest : LDLIBS += $(shell pkg-config --libs gtk+-3.0 cairo)
all: $(TARGETS)
@@ -17,4 +20,5 @@ clean:
rm -f *~
drminfo: drminfo.o drmtools.o
-drmtest: drmtest.o drmtools.o
+drmtest: drmtest.o drmtools.o render.o
+gtktest: gtktest.o render.o