I am trying to create my own executable using makefile concepts.
I have followed steps as mention in this thread:
But when I try to run make... it give me following errors:
The makefile.am is as follow in src:make: Entering directory `/home/nick/Desktop/myprogram'
Making all in src
make: Entering directory `/home/nick/Desktop/myprogram/src'
make: *** No rule to make target `test.o', needed by `test'. Stop.
make: Leaving directory `/home/nick/Desktop/myprogram/src'
make: *** [all-recursive] Error 1
make: 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_INIT(test.c, VERSION, BUG-REPORT-ADDRESS)
# Checks for programs.
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
Can anybody help me in this?