From 0fd514592cae47f65ad8dd454c807ce9f4297fc6 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Tue, 12 Jun 2018 11:27:16 +0200 Subject: add build system Signed-off-by: Lucas Stach --- .gitignore | 17 +++++++++++++++++ Makefile.am | 13 +++++++++++++ autogen.sh | 2 ++ configure.ac | 19 +++++++++++++++++++ drm-sched-top.c | 22 ++++++++++++++++++++++ 5 files changed, 73 insertions(+) create mode 100644 Makefile.am create mode 100755 autogen.sh create mode 100644 configure.ac create mode 100644 drm-sched-top.c diff --git a/.gitignore b/.gitignore index e69de29..7a1d947 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,17 @@ +Makefile.in +aclocal.m4 +autom4te.cache/ +compile +config.guess +config.sub +configure +depcomp +install-sh +missing +.deps/ +Makefile +config.log +config.status +.* +drm-sched-top +drm-sched-top.o diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..423b989 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,13 @@ +bin_PROGRAMS = \ + drm-sched-top + +EXTRA_DIST = \ + autogen.sh + +MAINTAINERCLEANFILES = \ + configure \ + aclocal.m4 \ + Makefile.in + +drm_sched_top_SOURCES = \ + drm-sched-top.c diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..ce39a2d --- /dev/null +++ b/autogen.sh @@ -0,0 +1,2 @@ +#! /bin/sh +autoreconf -i diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..7a7e9b8 --- /dev/null +++ b/configure.ac @@ -0,0 +1,19 @@ +AC_PREREQ(2.59) + +AC_INIT([drm-sched-top], 0.1, [oss-tools@pengutronix.de]) +AC_CONFIG_SRCDIR([drm-sched-top.c]) +AC_CANONICAL_BUILD +AC_CANONICAL_HOST + +AM_MAINTAINER_MODE + +CFLAGS="${CFLAGS} -W -Wall" + +AC_PROG_CC + +AM_INIT_AUTOMAKE([foreign no-exeext dist-bzip2]) + +AC_CONFIG_FILES([ + Makefile +]) +AC_OUTPUT diff --git a/drm-sched-top.c b/drm-sched-top.c new file mode 100644 index 0000000..bdcccd3 --- /dev/null +++ b/drm-sched-top.c @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2018 Pengutronix, Lucas Stach + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ -- cgit v1.2.3