blob: fc5e3bd97cf16311f081a05b7aee40f13ee4e300 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
CFLAGS=-g -Wall
CC=gcc
LDFLAGS=$(shell pkg-config --cflags libdrm)
# Required libs are libdrm, x11, and xrandr. The math library is used for
# generating some example gamma LUTs.
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)
|