diff --git a/.gitignore b/.gitignore index e629b185..34bf6ec9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ *.o *.bin +*.la +*.lo autom4te.cache .deps @@ -32,3 +34,9 @@ ckpool ltmain.sh *.m4 + +.libs/ + +libtool + + diff --git a/src/Makefile.am b/src/Makefile.am index 00529772..7c60ab1c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,8 @@ ACLOCAL_AMFLAGS = -I m4 +lib_LTLIBRARIES = libckpool.la +libckpool_la_SOURCES = libckpool.c + bin_PROGRAMS = ckpool ckpool_SOURCES = ckpool.c +ckpool_LDADD = libckpool.la diff --git a/src/ckpool.c b/src/ckpool.c index 31dbf45b..4815aa44 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -1,3 +1,18 @@ +#include +#include +#include + +#include "libckpool.h" + +/* + * Copyright 2011-2014 Con Kolivas + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 3 of the License, or (at your option) + * any later version. See COPYING for more details. + */ + int main(void) { return 0; diff --git a/src/libckpool.c b/src/libckpool.c new file mode 100644 index 00000000..f13af11e --- /dev/null +++ b/src/libckpool.c @@ -0,0 +1,8 @@ +/* + * Copyright 2011-2014 Con Kolivas + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 3 of the License, or (at your option) + * any later version. See COPYING for more details. + */ diff --git a/src/libckpool.h b/src/libckpool.h new file mode 100644 index 00000000..9bf4fa0a --- /dev/null +++ b/src/libckpool.h @@ -0,0 +1,15 @@ +/* + * Copyright 2014 Con Kolivas + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 3 of the License, or (at your option) + * any later version. See COPYING for more details. + */ + +/* This file should contain all exported functions of libckpool */ + +#ifndef LIBCKPOOL_H +#define LIBCKPOOL_H + +#endif /* LIBCKPOOL_H */