aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile55
1 files changed, 0 insertions, 55 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 7768692..0000000
--- a/Makefile
+++ /dev/null
@@ -1,55 +0,0 @@
-MESON := $(shell which meson 2>/dev/null)
-NINJA := $(shell which ninja-build 2>/dev/null || which ninja 2>/dev/null)
-
-ifneq ($(MESON),)
-
-HOST := $(shell hostname -s)
-BDIR := build-meson-$(HOST)
-
-build: $(BDIR)/build.ninja
- $(NINJA) -C $(BDIR)
-
-install: build
- $(NINJA) -C $(BDIR) install
-
-clean:
- rm -rf $(BDIR)
-
-$(BDIR)/build.ninja:
- $(MESON) $(BDIR)
-
-else
-
-CC ?= gcc
-CFLAGS ?= -Os -g -std=c99
-CFLAGS += -Wall
-
-TARGETS := drminfo drmtest gtktest
-
-drminfo : CFLAGS += $(shell pkg-config --cflags libdrm cairo pixman-1)
-drminfo : LDLIBS += $(shell pkg-config --libs libdrm cairo pixman-1)
-
-drmtest : CFLAGS += $(shell pkg-config --cflags libdrm gbm epoxy cairo pixman-1)
-drmtest : LDLIBS += $(shell pkg-config --libs libdrm gbm epoxy cairo pixman-1)
-drmtest : LDLIBS += -ljpeg
-
-virtiotest : CFLAGS += $(shell pkg-config --cflags libdrm gbm epoxy cairo pixman-1)
-virtiotest : LDLIBS += $(shell pkg-config --libs libdrm gbm epoxy cairo pixman-1)
-virtiotest : LDLIBS += -ljpeg
-
-gtktest : CFLAGS += $(shell pkg-config --cflags gtk+-3.0 cairo pixman-1)
-gtktest : LDLIBS += $(shell pkg-config --libs gtk+-3.0 cairo pixman-1)
-gtktest : LDLIBS += -ljpeg
-
-all: $(TARGETS)
-
-clean:
- rm -f $(TARGETS)
- rm -f *~ *.o
-
-drminfo: drminfo.o drmtools.o
-drmtest: drmtest.o drmtools.o ttytools.o render.o image.o
-virtiotest: virtiotest.o drmtools.o ttytools.o render.o
-gtktest: gtktest.o render.o image.o
-
-endif