diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..149488a --- /dev/null +++ b/Makefile @@ -0,0 +1,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 |