summaryrefslogtreecommitdiffstats
path: root/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src')
-rw-r--r--plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Basename.c9
-rw-r--r--plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Basename.desktop.in.src9
-rw-r--r--plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/ChangeLog0
-rw-r--r--plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/INSTALL9
-rw-r--r--plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Makefile.am.src8
-rw-r--r--plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Makefile.am.top7
-rw-r--r--plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/NEWS0
-rw-r--r--plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/README25
-rwxr-xr-xplugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/autogen.sh10
-rw-r--r--plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/configure.ac.top37
10 files changed, 114 insertions, 0 deletions
diff --git a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Basename.c b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Basename.c
new file mode 100644
index 0000000..862467a
--- /dev/null
+++ b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Basename.c
@@ -0,0 +1,9 @@
1
2
3#include <stdlib.h>
4#include <stdio.h>
5
6int main(void) {
7 puts("Hello World"); /* prints Hello World */
8 return 0;
9}
diff --git a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Basename.desktop.in.src b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Basename.desktop.in.src
new file mode 100644
index 0000000..e96420f
--- /dev/null
+++ b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Basename.desktop.in.src
@@ -0,0 +1,9 @@
1[Desktop Entry]
2Version=@VERSION@
3Encoding=UTF-8
4Name=$(projectName)
5Comment=A "$(message)"
6Type=Application
7Categories=Application
8Exec=$(projectName)
9Name[en_US]=$(message)
diff --git a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/ChangeLog b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/ChangeLog
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/ChangeLog
diff --git a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/INSTALL b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/INSTALL
new file mode 100644
index 0000000..b8b0535
--- /dev/null
+++ b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/INSTALL
@@ -0,0 +1,9 @@
1Building:
2 $ ./autogen.sh [--enable-gtk-doc] [--prefix=/usr]
3 $ make
4
5Installing:
6 $ sudo make install
7
8Running:
9 $ $(projectName) \ No newline at end of file
diff --git a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Makefile.am.src b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Makefile.am.src
new file mode 100644
index 0000000..fc3bc8c
--- /dev/null
+++ b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Makefile.am.src
@@ -0,0 +1,8 @@
1
2bin_PROGRAMS = $(projectName)
3$(projectName)_SOURCES = $(projectName).c
4
5AM_CFLAGS = @$(projectName)_CFLAGS@
6AM_LDFLAGS = @$(projectName)_LIBS@
7
8CLEANFILES = *~
diff --git a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Makefile.am.top b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Makefile.am.top
new file mode 100644
index 0000000..7bee2b7
--- /dev/null
+++ b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/Makefile.am.top
@@ -0,0 +1,7 @@
1SUBDIRS = $(sourceDir)
2
3MAINTAINERCLEANFILES = aclocal.m4 compile config.guess \
4 config.sub configure depcomp install-sh \
5 ltmain.sh Makefile.in missing
6
7
diff --git a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/NEWS b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/NEWS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/NEWS
diff --git a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/README b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/README
new file mode 100644
index 0000000..ec15541
--- /dev/null
+++ b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/README
@@ -0,0 +1,25 @@
1$(projectName)
2Copyright (C) $(copyright).
3
4Brief description of project....
5
6-----------------------------------------------------------------------------
7 Build
8-----------------------------------------------------------------------------
9$ ./autogen.sh $CONFIGURE_FLAGS
10$ make
11
12-----------------------------------------------------------------------------
13 Build with documentation generated (usually for libraries)
14-----------------------------------------------------------------------------
15$ ./autogen.sh --enable-gtk-doc
16$ make
17
18( If built with the --enable-gtk-doc flag above you can view the index.html
19 file in your web browser. )
20$ firefox ./docs/reference/index.html
21
22-----------------------------------------------------------------------------
23 Install
24-----------------------------------------------------------------------------
25$ sudo make install
diff --git a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/autogen.sh b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/autogen.sh
new file mode 100755
index 0000000..7fd81e2
--- /dev/null
+++ b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/autogen.sh
@@ -0,0 +1,10 @@
1#! /bin/sh
2[ -e config.cache ] && rm -f config.cache
3
4libtoolize --automake
5aclocal ${OECORE_ACLOCAL_OPTS}
6autoconf
7autoheader
8automake -a
9./configure $@
10exit
diff --git a/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/configure.ac.top b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/configure.ac.top
new file mode 100644
index 0000000..234ab99
--- /dev/null
+++ b/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/src/configure.ac.top
@@ -0,0 +1,37 @@
1AC_PREREQ(2.61)
2
3# package version number (not shared library version)
4# odd micro numbers indicate in-progress development
5# even micro numbers indicate released versions
6m4_define($(projectName)_version_major, 0)
7m4_define($(projectName)_version_minor, 1)
8m4_define($(projectName)_version_micro, 0)
9
10m4_define([$(projectName)_version],
11 [$(projectName)_version_major.$(projectName)_version_minor.$(projectName)_version_micro])
12m4_define([$(projectName)_api_version],
13 [$(projectName)_version_major.$(projectName)_version_minor])
14
15AC_INIT($(projectName), $(projectName)_version)
16AM_INIT_AUTOMAKE($(projectName), $(projectName)_version)
17AC_CONFIG_HEADERS(config.h)
18
19# Checks for programs.
20AC_PROG_LIBTOOL
21AM_PROG_CC_C_O
22AC_PROG_INSTALL
23
24AC_SUBST($(projectName)_CFLAGS)
25AC_SUBST($(projectName)_LIBS)
26
27AC_OUTPUT([
28Makefile
29$(sourceDir)/Makefile
30])
31
32echo ""
33echo " $(projectName) $VERSION"
34echo " ====================="
35echo ""
36echo " To build the project, run \"make\""
37echo ""