Add a minimal automake project for testing purposes

Change-Id: If2127f2baf79716517e85661a3c657d689d84d67
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2017-11-07 18:17:04 +01:00
parent e51683412b
commit 0955eefb8a
5 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
ACLOCAL_AMFLAGS = -I m4
lib_LTLIBRARIES = libfoo.la
libfoo_la_SOURCES = foo.c
bin_PROGRAMS = main
main_SOURCES = main.c
main_LDADD = libfoo.la

View File

@@ -0,0 +1,7 @@
#!/bin/sh
libtoolize
aclocal
automake --add-missing
autoconf
./configure

View File

@@ -0,0 +1,8 @@
AC_INIT([amtest], [1.0])
AC_CONFIG_SRCDIR([foo.c])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_MACRO_DIRS([m4])
AC_PROG_CC
LT_INIT
AC_CONFIG_FILES([Makefile])
AC_OUTPUT

View File

@@ -0,0 +1,8 @@
#include <stdio.h>
int foo(void)
{
puts("Hi!");
return 43;
}

View File

@@ -0,0 +1,7 @@
int foo(void);
int main()
{
return foo();
}