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

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

# All sources
SOURCES=demo.c
# The build directory
BUILD=build
# All executables to be cleaned
EXECUTABLES=$(BUILD)/demo

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

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