Hi
I am trying to create my own executable using makefile concepts.
I have followed steps as mention in this thread:
All files like makefile.am, makefile.in etc are created.
But when I try to run make... it give me following errors:
The makefile.am is as follow in src:make[1]: Entering directory `/home/nick/Desktop/myprogram'
Making all in src
make[2]: Entering directory `/home/nick/Desktop/myprogram/src'
make[2]: *** No rule to make target `test.o', needed by `test'. Stop.
make[2]: Leaving directory `/home/nick/Desktop/myprogram/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nick/Desktop/myprogram'
make: *** [all] Error 2
And the makefile.am in myprogram folder:bin_PROGRAMS = test
test_SOURCES = test.c
The configure.ac is:SUBDIRS = src
I think that I have mention somewhere for test.o.# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT(test.c, VERSION, BUG-REPORT-ADDRESS)
AC_CONFIG_SRCDIR([test.c])
AC_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([makefile
src/makefile])
AM_INIT_AUTOMAKE
AC_OUTPUT
Can anybody help me in this?
Thanks
Nick