commit 0c8975daec0b583ebce12d70b1ff37a18dd92835 Author: Alex Kotov Date: Tue Jun 7 04:09:06 2022 +0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..78cdbb5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,55 @@ +########################## +# Common generated files # +########################## + +*.a +*.c.d +*.o + +.deps/ +.dirstamp + +############################ +# 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 +/missing +/test-driver + +# Custom + +/Makefile.in + +########################################### +# Only generated when configuring in root # +########################################### + +/config.h +/config.log +/config.status +/stamp-h1 +/test-suite.log + +/tests/test*.log +/tests/test*.trs + +# Custom + +/Makefile + +/autotools-project diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..cfea86c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "vendor/cross"] + path = vendor/cross + url = https://github.com/tailix/cross.git + ignore = dirty diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..3a0bbea --- /dev/null +++ b/AUTHORS @@ -0,0 +1 @@ +Alex Kotov diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..88ab6c0 --- /dev/null +++ b/COPYING @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 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. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..e69de29 diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..ac95c4b --- /dev/null +++ b/Makefile.am @@ -0,0 +1,10 @@ +AM_CFLAGS = \ + -std=c99 \ + -pedantic \ + -Wall \ + -Wextra + +bin_PROGRAMS = autotools-project + +autotools_project_SOURCES = \ + src/main.c diff --git a/NEWS b/NEWS new file mode 120000 index 0000000..7b97b99 --- /dev/null +++ b/NEWS @@ -0,0 +1 @@ +NEWS.md \ No newline at end of file diff --git a/NEWS.md b/NEWS.md new file mode 100644 index 0000000..e69de29 diff --git a/README b/README new file mode 120000 index 0000000..42061c0 --- /dev/null +++ b/README @@ -0,0 +1 @@ +README.md \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..ab331e7 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +Autotools project +================= + +This is a template of an Autotools project. + +Don't forget to change the following files: + +* `AUTHORS` +* `configure.ac` +* `COPYING` +* `Makefile.am` +* `README.md` + +Remove submodule `vendor/cross` if you don't need it. diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..91107fc --- /dev/null +++ b/autogen.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +set -eux + +exec autoreconf -isf diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..42b9e76 --- /dev/null +++ b/configure.ac @@ -0,0 +1,33 @@ +AC_PREREQ([2.68]) +AC_INIT([autotools-project], + [0.0.0], + [https://github.com/tailix/autotools-project/issues], + [autotools-project], + [https://github.com/tailix/autotools-project]) + +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_SRCDIR([src/main.c]) + +AC_CANONICAL_BUILD +AC_CANONICAL_HOST + + + +AM_INIT_AUTOMAKE([1.9 subdir-objects]) + +AC_CONFIG_FILES([ + Makefile +]) + +AC_LANG([C]) + +AM_PROG_AR +AM_PROG_AS +AC_PROG_CC +AC_PROG_CC_C99 +AC_PROG_RANLIB +AC_C_INLINE +AC_CHECK_HEADER_STDBOOL +AC_CHECK_HEADERS([stdarg.h stddef.h stdint.h]) + +AC_OUTPUT diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..de1e707 --- /dev/null +++ b/src/main.c @@ -0,0 +1,4 @@ +int main(const int argc __attribute__((unused)), char **const argv __attribute__((unused))) +{ + return 0; +} diff --git a/vendor/cross b/vendor/cross new file mode 160000 index 0000000..0f8696e --- /dev/null +++ b/vendor/cross @@ -0,0 +1 @@ +Subproject commit 0f8696e6cca8ea7ab6adf22cfcc6b53c819fa516