diff options
| author | Manuel Traut <manut@linutronix.de> | 2014-01-09 11:11:53 +0100 |
|---|---|---|
| committer | Manuel Traut <manut@linutronix.de> | 2014-01-09 11:11:53 +0100 |
| commit | 0996948c27a1c3668bf36fa6ada78ed99da3b561 (patch) | |
| tree | 9efa195b8c6de0de4e8ed441303b61a051c6e466 /distribution/elbe-example/myapp | |
| parent | d7da5da17cad611293c655860b9656d4156eaa1f (diff) | |
add elbe example
and hands-on slides
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'distribution/elbe-example/myapp')
| -rw-r--r-- | distribution/elbe-example/myapp/AUTHORS | 0 | ||||
| -rw-r--r-- | distribution/elbe-example/myapp/ChangeLog | 0 | ||||
| -rw-r--r-- | distribution/elbe-example/myapp/Makefile.am | 5 | ||||
| -rw-r--r-- | distribution/elbe-example/myapp/NEWS | 0 | ||||
| -rw-r--r-- | distribution/elbe-example/myapp/README | 0 | ||||
| -rwxr-xr-x | distribution/elbe-example/myapp/autogen.sh | 2 | ||||
| -rw-r--r-- | distribution/elbe-example/myapp/configure.ac | 23 | ||||
| -rw-r--r-- | distribution/elbe-example/myapp/myapp.c | 12 |
8 files changed, 42 insertions, 0 deletions
diff --git a/distribution/elbe-example/myapp/AUTHORS b/distribution/elbe-example/myapp/AUTHORS new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/distribution/elbe-example/myapp/AUTHORS diff --git a/distribution/elbe-example/myapp/ChangeLog b/distribution/elbe-example/myapp/ChangeLog new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/distribution/elbe-example/myapp/ChangeLog diff --git a/distribution/elbe-example/myapp/Makefile.am b/distribution/elbe-example/myapp/Makefile.am new file mode 100644 index 0000000..73ff4e8 --- /dev/null +++ b/distribution/elbe-example/myapp/Makefile.am @@ -0,0 +1,5 @@ +bin_PROGRAMS = myapp +myapp_SOURCES = myapp.c + +EXTRA_DIST = debian/changelog debian/compat debian/control debian/rules \ + debian/source/format diff --git a/distribution/elbe-example/myapp/NEWS b/distribution/elbe-example/myapp/NEWS new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/distribution/elbe-example/myapp/NEWS diff --git a/distribution/elbe-example/myapp/README b/distribution/elbe-example/myapp/README new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/distribution/elbe-example/myapp/README diff --git a/distribution/elbe-example/myapp/autogen.sh b/distribution/elbe-example/myapp/autogen.sh new file mode 100755 index 0000000..9088512 --- /dev/null +++ b/distribution/elbe-example/myapp/autogen.sh @@ -0,0 +1,2 @@ +#!/bin/bash +autoreconf -sif diff --git a/distribution/elbe-example/myapp/configure.ac b/distribution/elbe-example/myapp/configure.ac new file mode 100644 index 0000000..109e8ea --- /dev/null +++ b/distribution/elbe-example/myapp/configure.ac @@ -0,0 +1,23 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.69]) +AC_INIT([myapp], [1.0], [manut@linutronix.de]) +AM_INIT_AUTOMAKE([-Wall -Werror]) +AC_CONFIG_SRCDIR([myapp.c]) +AC_CONFIG_HEADERS([config.h]) + +# Checks for programs. +AC_PROG_CC + +# Checks for libraries. + +# Checks for header files. + +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. + +AC_CONFIG_FILES([Makefile]) + +AC_OUTPUT diff --git a/distribution/elbe-example/myapp/myapp.c b/distribution/elbe-example/myapp/myapp.c new file mode 100644 index 0000000..4e39438 --- /dev/null +++ b/distribution/elbe-example/myapp/myapp.c @@ -0,0 +1,12 @@ +#include <stdio.h> +#include <time.h> + +int main (int argc, char **argv) +{ + while (1) { + printf ("Hello ELBE\n"); + sleep (1); + } + + return 0; +} |
