summaryrefslogtreecommitdiff
path: root/Makefile
blob: 617f3b38aadbcad75c69a69b9326c22285082d9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CFLAGS=-g -Wall
CC=gcc

LDFLAGS=$(shell pkg-config --cflags libdrm)
LDLIBS = $(shell pkg-config --libs libdrm x11 xrandr) -lm

# All sources
SOURCES=demo.c
# All executables to be cleaned
EXECUTABLES=demo

demo: demo.c
	$(CC) $(CFLAGS) $(LDFLAGS) $< $(LDLIBS) -o $@

.PHONY: clean
clean:
	rm -f $(EXECUTABLES)