I've never done gui programming, so I can't help you with the qt specific stuff.
But normally you should do it like this.
Have an Makefile.am in each directory of your project. The syntax is not like a normal Makefile. More like a list of source files, where to install the program and name of the program.
Then use autoscan to generate a configure.scan, change the stuff you need to change and rename the file to configure.ac
You need 4 more files called Makefile.in,config.h.in,alocal.m4 and configure
you create those with alocal, automake -ac, autoheader and autoconf.
This is the way to use automake, I don't think you can use the object files deployed by qt directly.
btw, the minimum you can get away with is, make a subdir called src, move all your .c .cpp to this folder. Make a Makefile.am in your src which contains
bin_PROGRAMS = yoyo
yoyo_SOURCES = main.c
make a Makefile in your ../src that looks like
SUBDIRS = src
dist_doc_DATA = README
write a empty README in ../src [PHP] AC_INIT([lalala], [0.1], [contact@gnu.org]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_PROG_CC AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([ Makefile src/Makefile ]) AC_OUTPUT [/PHP] You generate your scrip and create missing files with autoreconf --install good luck