From e6d99cf9f0e405a6f099ff985791b657f2649ad8 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Thu, 26 May 2016 21:29:57 +0100 Subject: [PATCH] Add the initial non-functional steam shim Signed-off-by: Ikey Doherty --- .gitignore | 5 +++++ Makefile.am | 14 ++++++++++++++ src/shim.c | 19 +++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 src/shim.c diff --git a/.gitignore b/.gitignore index 72f3c7a..992d920 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,8 @@ configure libtool stamp-h1 m4/*.m4 +.deps +.dirstamp +*.o + +/steam diff --git a/Makefile.am b/Makefile.am index f6a2812..b8828cc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,17 @@ EXTRA_DIST = \ LICENSE.LGPL2.1 \ README.md + +AM_CFLAGS = \ + -fstack-protector -Wall -pedantic \ + -Wstrict-prototypes -Wundef -fno-common \ + -Werror-implicit-function-declaration \ + -Wformat -Wformat-security -Werror=format-security \ + -Wno-conversion -Wunused-variable -Wunreachable-code \ + -Wall -W -D_FORTIFY_SOURCE=2 -std=c99 + +bin_PROGRAMS = \ + steam + +steam_SOURCES = \ + src/shim.c diff --git a/src/shim.c b/src/shim.c new file mode 100644 index 0000000..f245f96 --- /dev/null +++ b/src/shim.c @@ -0,0 +1,19 @@ +/* + * This file is part of linux-steam-integration. + * + * Copyright (C) 2016 Ikey Doherty + * + * linux-steam-integration is free software; you can redistribute it and/or + * modifyit under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 + * of the License, or (at your option) any later version. + */ + +#include + +#define __lsi_unused__ __attribute__ ((unused)) + +int main(__lsi_unused__ int argc, __lsi_unused__ char **argv) +{ + return EXIT_FAILURE; +}