mirror of
https://github.com/tailix/drivers.git
synced 2024-11-20 11:06:32 -05:00
Initial commit
This commit is contained in:
commit
4658be866b
17 changed files with 209 additions and 0 deletions
59
.gitignore
vendored
Normal file
59
.gitignore
vendored
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
##########################
|
||||||
|
# Common generated files #
|
||||||
|
##########################
|
||||||
|
|
||||||
|
*.a
|
||||||
|
*.c.d
|
||||||
|
*.la
|
||||||
|
*.lo
|
||||||
|
*.o
|
||||||
|
|
||||||
|
.deps/
|
||||||
|
.dirstamp
|
||||||
|
.libs/
|
||||||
|
|
||||||
|
############################
|
||||||
|
# Always generated in root #
|
||||||
|
############################
|
||||||
|
|
||||||
|
/INSTALL
|
||||||
|
/aclocal.m4
|
||||||
|
/ar-lib
|
||||||
|
/autom4te.cache/
|
||||||
|
/autoscan.log
|
||||||
|
/compile
|
||||||
|
/config.guess
|
||||||
|
/config.h.in
|
||||||
|
/config.h.in~
|
||||||
|
/config.sub
|
||||||
|
/configure
|
||||||
|
/configure.ac~
|
||||||
|
/configure~
|
||||||
|
/depcomp
|
||||||
|
/install-sh
|
||||||
|
/ltmain.sh
|
||||||
|
/missing
|
||||||
|
/test-driver
|
||||||
|
|
||||||
|
/m4/*
|
||||||
|
!/m4/.keep
|
||||||
|
|
||||||
|
# Custom
|
||||||
|
|
||||||
|
/Makefile.in
|
||||||
|
/include/Makefile.in
|
||||||
|
|
||||||
|
###########################################
|
||||||
|
# Only generated when configuring in root #
|
||||||
|
###########################################
|
||||||
|
|
||||||
|
/config.h
|
||||||
|
/config.log
|
||||||
|
/config.status
|
||||||
|
/libtool
|
||||||
|
/stamp-h1
|
||||||
|
|
||||||
|
# Custom
|
||||||
|
|
||||||
|
/Makefile
|
||||||
|
/include/Makefile
|
1
AUTHORS
Normal file
1
AUTHORS
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Alex Kotov <kotovalexarian@gmail.com>
|
21
COPYING
Normal file
21
COPYING
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2020-2022 Alex Kotov
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
0
ChangeLog
Normal file
0
ChangeLog
Normal file
11
Makefile.am
Normal file
11
Makefile.am
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
include $(top_srcdir)/make/shared.am
|
||||||
|
|
||||||
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
EXTRA_DIST = autogen.sh
|
||||||
|
|
||||||
|
SUBDIRS = include
|
||||||
|
|
||||||
|
lib_LTLIBRARIES = libdrivers.la
|
||||||
|
|
||||||
|
libdrivers_la_SOURCES = \
|
||||||
|
src/foobar.c
|
1
NEWS
Symbolic link
1
NEWS
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
NEWS.md
|
0
NEWS.md
Normal file
0
NEWS.md
Normal file
1
README
Symbolic link
1
README
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
README.md
|
10
README.md
Normal file
10
README.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
Drivers
|
||||||
|
=======
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Table of contents
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
* [Overview](#drivers)
|
||||||
|
* [Table of contents](#table-of-contents)
|
1
VERSION
Normal file
1
VERSION
Normal file
|
@ -0,0 +1 @@
|
||||||
|
0.0.0
|
5
autogen.sh
Executable file
5
autogen.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eux
|
||||||
|
|
||||||
|
exec autoreconf -isf -Wall
|
63
configure.ac
Normal file
63
configure.ac
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
############################
|
||||||
|
# Specify program versions #
|
||||||
|
############################
|
||||||
|
|
||||||
|
AC_PREREQ([2.68])
|
||||||
|
LT_PREREQ([2.4.6])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
##################################
|
||||||
|
# Initialize Autoconf & Automake #
|
||||||
|
##################################
|
||||||
|
|
||||||
|
AC_INIT([drivers],
|
||||||
|
m4_normalize(m4_include([VERSION])),
|
||||||
|
[https://github.com/tailix/drivers/issues],
|
||||||
|
[drivers],
|
||||||
|
[https://github.com/tailix/drivers])
|
||||||
|
|
||||||
|
AC_CANONICAL_BUILD
|
||||||
|
AC_CANONICAL_HOST
|
||||||
|
|
||||||
|
AC_CONFIG_MACRO_DIRS([m4])
|
||||||
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
AC_CONFIG_SRCDIR([src/foobar.c])
|
||||||
|
AC_CONFIG_FILES([
|
||||||
|
Makefile
|
||||||
|
include/Makefile
|
||||||
|
])
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE([1.16 subdir-objects])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
##############
|
||||||
|
# Run checks #
|
||||||
|
##############
|
||||||
|
|
||||||
|
AC_LANG([C])
|
||||||
|
|
||||||
|
AM_PROG_AR
|
||||||
|
AM_PROG_AS
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_PROG_CC_C99
|
||||||
|
AC_C_INLINE
|
||||||
|
AC_CHECK_HEADER_STDBOOL
|
||||||
|
AC_CHECK_HEADERS([stdarg.h stddef.h stdint.h])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
######################
|
||||||
|
# Initialize Libtool #
|
||||||
|
######################
|
||||||
|
|
||||||
|
LT_INIT([disable-shared])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
##########
|
||||||
|
# Finish #
|
||||||
|
##########
|
||||||
|
|
||||||
|
AC_OUTPUT
|
2
include/Makefile.am
Normal file
2
include/Makefile.am
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
nobase_include_HEADERS = \
|
||||||
|
drivers.h
|
14
include/drivers.h
Normal file
14
include/drivers.h
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#ifndef DRIVERS_INCLUDED
|
||||||
|
#define DRIVERS_INCLUDED
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int drivers_foobar(int a, int b);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
0
m4/.keep
Normal file
0
m4/.keep
Normal file
10
make/shared.am
Normal file
10
make/shared.am
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# vim: set syntax=automake:
|
||||||
|
|
||||||
|
AM_CFLAGS = \
|
||||||
|
-std=c99 \
|
||||||
|
-pedantic \
|
||||||
|
-Wall \
|
||||||
|
-Wextra \
|
||||||
|
-I$(top_builddir)/include \
|
||||||
|
-I$(top_srcdir)/include \
|
||||||
|
-D_POSIX_C_SOURCE=200809L
|
10
src/foobar.c
Normal file
10
src/foobar.c
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <drivers.h>
|
||||||
|
|
||||||
|
int drivers_foobar(const int a, const int b)
|
||||||
|
{
|
||||||
|
return a + b;
|
||||||
|
}
|
Loading…
Reference in a new issue