Browse Source

Add basic library creation rules

master
Con Kolivas 11 years ago
parent
commit
2f961cc489
  1. 8
      .gitignore
  2. 4
      src/Makefile.am
  3. 15
      src/ckpool.c
  4. 8
      src/libckpool.c
  5. 15
      src/libckpool.h

8
.gitignore vendored

@ -1,5 +1,7 @@
*.o
*.bin
*.la
*.lo
autom4te.cache
.deps
@ -32,3 +34,9 @@ ckpool
ltmain.sh
*.m4
.libs/
libtool

4
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

15
src/ckpool.c

@ -1,3 +1,18 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#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;

8
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.
*/

15
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 */
Loading…
Cancel
Save