Skip to content

Commit 0a0ba83

Browse files
committed
Initial commit
1 parent cf8de1f commit 0a0ba83

11 files changed

+83
-2
lines changed

AUTHORS

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Example: http://git.savannah.gnu.org/cgit/make.git/tree/AUTHORS
2+
3+
GNU Coding Standards 6.3: Recording Contributors
4+
http://www.gnu.org/prep/maintain/html_node/Recording-Contributors.html
5+
6+
First version of all files by Ruben Laguna <ruben.laguna at gmail.com>

LICENSE COPYING

File renamed without changes.

ChangeLog

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
GNU Coding Standards 6.8 ChangeLogs:
2+
http://www.gnu.org/prep/standards/html_node/Change-Logs.html#Change-Logs
3+
4+
2014-01-25 Ruben laguna <ruben.laguna at gmail.com>
5+
6+
* main.c (some_function) : Fix something.

Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SUBDIRS = src

NEWS

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Read GNU Coding Standards 6.7
2+
http://www.gnu.org/prep/standards/html_node/NEWS-File.html#NEWS-File
3+
4+
Example: http://git.savannah.gnu.org/cgit/make.git/tree/NEWS
5+
6+
YourProject NEWS
7+
History of user-visible changes
8+
25 Jan 2015
9+
10+
See the end of this file for copyrights and conditions.
11+
12+
13+
Version 1.0.0
14+
15+
* New features: XXXX
16+
Description of the feature
17+
18+
19+

README

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# autotools-template
2+
Template for an autotools (autoconf, automake) project
3+
4+
# Files provided:
5+
* autogen.sh: will generate the .configure and Makefile.in templates
6+
from configure.ac and the Makefile.am files

README.md

-2
This file was deleted.

autogen.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
# As seen on
3+
# Autotools A Practitioner's Guide to GNU Autoconf,
4+
# Automake, and Libtool by John Calcote
5+
#
6+
# autoreconf runs all the autotool configuration tools in the right order
7+
# and will avoid regenerating files.
8+
#
9+
autoreconf --install # install missing files
10+
automake --add-missing --copy >/dev/null 2>&1 # add install-sh

configure.ac

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# -*- Autoconf -*-
2+
# Process this file with autoconf to produce a configure script.
3+
4+
AC_PREREQ([2.69])
5+
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
6+
AM_INIT_AUTOMAKE
7+
AC_CONFIG_SRCDIR([src/main.c])
8+
AC_CONFIG_HEADERS([config.h])
9+
10+
# Checks for programs.
11+
AC_PROG_CC
12+
AC_PROG_INSTALL
13+
14+
# Checks for libraries.
15+
16+
# Checks for header files.
17+
AC_CHECK_HEADERS([stdlib.h])
18+
19+
# Checks for typedefs, structures, and compiler characteristics.
20+
21+
# Checks for library functions.
22+
23+
24+
AC_CONFIG_FILES([Makefile
25+
src/Makefile])
26+
AC_OUTPUT

src/Makefile.am

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin_PROGRAMS = myexecutable
2+
myexecutable_SOURCES = main.c

src/main.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <stdio.h>
2+
3+
int main(int argc, char *argv[])
4+
{
5+
printf ("Hello world\n");
6+
return 0;
7+
}

0 commit comments

Comments
 (0)