--- /dev/null
+# Generic directory or leaf node makefile for OCERA make framework
+
+ifndef MAKERULES_DIR
+MAKERULES_DIR := $(shell ( old_pwd="" ; while [ ! -e Makefile.rules ] ; do if [ "$$old_pwd" = `pwd` ] ; then exit 1 ; else old_pwd=`pwd` ; cd -L .. 2>/dev/null ; fi ; done ; pwd ) )
+endif
+
+ifeq ($(MAKERULES_DIR),)
+all : default
+.DEFAULT::
+ @echo -e "\nThe Makefile.rules has not been found in this or partent directory\n"
+else
+include $(MAKERULES_DIR)/Makefile.rules
+endif
+
--- /dev/null
+SUBDIRS = somelib
+QT_SUBDIRS = qtapp
--- /dev/null
+#include <QApplication>
+#include <QPushButton>
+#include <header.h>
+
+ int main(int argc, char *argv[])
+ {
+ QApplication app(argc, argv);
+
+ some_function(SOME_CONST);
+ QPushButton hello("Hello world!");
+ hello.resize(100, 30);
+
+ hello.show();
+ return app.exec();
+ }
--- /dev/null
+######################################################################
+# Automatically generated by qmake (2.01a) po ?rc 16 18:49:31 2007
+######################################################################
+
+TEMPLATE = app
+TARGET =
+DEPENDPATH += .
+INCLUDEPATH += .
+
+# Input
+SOURCES += qtapp.cxx
+LIBS+=-lsomelib
\ No newline at end of file
--- /dev/null
+linux
\ No newline at end of file
--- /dev/null
+#!/bin/sh
+
+. $OMK_TESTSROOT/functions.sh
+
+touch config.omk-default
+QTDIR=/usr/share/qt4
+[ -d $QTDIR ] || canttest "Can't find QT4 instalation"
+make QTDIR=$QTDIR
--- /dev/null
+# Generic directory or leaf node makefile for OCERA make framework
+
+ifndef MAKERULES_DIR
+MAKERULES_DIR := $(shell ( old_pwd="" ; while [ ! -e Makefile.rules ] ; do if [ "$$old_pwd" = `pwd` ] ; then exit 1 ; else old_pwd=`pwd` ; cd -L .. 2>/dev/null ; fi ; done ; pwd ) )
+endif
+
+ifeq ($(MAKERULES_DIR),)
+all : default
+.DEFAULT::
+ @echo -e "\nThe Makefile.rules has not been found in this or partent directory\n"
+else
+include $(MAKERULES_DIR)/Makefile.rules
+endif
+
--- /dev/null
+include_HEADERS = header.h
+lib_LIBRARIES = somelib
+
+somelib_SOURCES = somelib.c
--- /dev/null
+#ifndef HEADER_H
+#define HEADER_H
+
+#define SOME_CONST 123
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int some_function(int);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
--- /dev/null
+#include <header.h>
+
+int some_function(int num)
+{
+ return SOME_CONST - num;
+}