summaryrefslogtreecommitdiff
path: root/Makefile
blob: 149488a9e80a2ec26c903fc73f8fa9e392d4679c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2018 Jérôme Glisse <jglisse@redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
CFLAGS = -std=c99 -Wall -O0 -g -D_GNU_SOURCE -I/usr/include/drm
LFLAGS = -lm -ldrm -ldrm_nouveau
CC = gcc

all: moche

moche: moche.o
	$(CC) $(CFLAGS) $? -o $@ $(LFLAGS)

clean:
	rm moche *.o