forked from qt-creator/qt-creator
Add a minimal automake project for testing purposes
Change-Id: If2127f2baf79716517e85661a3c657d689d84d67 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
8
tests/manual/autotoolsprojectmanager/Makefile.am
Normal file
8
tests/manual/autotoolsprojectmanager/Makefile.am
Normal 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
|
7
tests/manual/autotoolsprojectmanager/autogen.sh
Executable file
7
tests/manual/autotoolsprojectmanager/autogen.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
libtoolize
|
||||||
|
aclocal
|
||||||
|
automake --add-missing
|
||||||
|
autoconf
|
||||||
|
./configure
|
8
tests/manual/autotoolsprojectmanager/configure.ac
Normal file
8
tests/manual/autotoolsprojectmanager/configure.ac
Normal 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
|
8
tests/manual/autotoolsprojectmanager/foo.c
Normal file
8
tests/manual/autotoolsprojectmanager/foo.c
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int foo(void)
|
||||||
|
{
|
||||||
|
puts("Hi!");
|
||||||
|
return 43;
|
||||||
|
}
|
7
tests/manual/autotoolsprojectmanager/main.c
Normal file
7
tests/manual/autotoolsprojectmanager/main.c
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
int foo(void);
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return foo();
|
||||||
|
}
|
Reference in New Issue
Block a user