diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..33d39b8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +# Vim temporary and backup files +.*.swp +*~ + +# autoreconf output files +Makefile.in +aclocal.m4 +autom4te.cache/ +build-aux/ +configure +src/config.h.in + +# build directory +build/ diff --git a/DEVELOP.md b/DEVELOP.md new file mode 100644 index 0000000..2352d77 --- /dev/null +++ b/DEVELOP.md @@ -0,0 +1,28 @@ +# Instructions to build and develop eventlircd + +## Prerequisites + +``` +sudo apt install gcc libudev-dev +``` + +**NOTE:** there are surely more dependencies which were already installed on my workstation, so I wouldn't know. + +## Compile + +``` +autoreconf --install +mkdir build +cd build +../configure --sysconfdir=/etc +make +``` + +**TIP:** we use the build directory to avoid mixing generated and source files. + +## Install + +``` +cd build +sudo make install [DESTDIR=...] +``` diff --git a/src/main.c b/src/main.c index f6c50fa..ed836ea 100644 --- a/src/main.c +++ b/src/main.c @@ -105,6 +105,7 @@ int main(int argc,char **argv) { syslog(LOG_WARNING, "the highest verbosity level is -vvv\n"); } + /* FALLTHRU */ case 'f': foreground = true; break;