<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<title>OMK Make-System Homepage</title>
</head>
-
+<style>
+.news td {
+ vertical-align: top;
+ padding-right: 0.5em;
+ padding-bottom: 0.5em;
+}
+
+</style>
<body>
<h1>OMK Make-System Homepage</h1>
<h2>News</h2>
-<ul>
- <li>2008-30-10: OMK repository has been migrated from Darcs to GIT (see bellow).</li>
- <li>2008-04-23: OMK version 0.1 released.</li>
-</ul>
+<table class="news">
+ <tr><td>2009-02-03</td> <td>We work on rewrite of OMK. The rewritten
+ version should be faster, easier to maintain and should recompile
+ files if compile command line changes. You can watch the development
+ in <a href="http://rtime.felk.cvut.cz/gitweb/omk.git?a=shortlog;h=refs/heads/devel">devel
+ branch</a> of OMK repository. In short time we release OMK 0.2
+ which will contain bug fixes and small enhancements to OMK
+ 0.1. Then OMK 0.3 will be the rewritten version.</td></tr>
+
+ <tr><td>2008-10-30</td><td>OMK repository has been migrated from
+ Darcs to GIT (see bellow).</td></tr>
+
+ <tr><td>2008-04-23</td><td>OMK version 0.1 released.</td></tr>
+</table>
<h2>Download</h2>
--- /dev/null
+#!/bin/sh
+
+# Helper script to run OMK from directories without the leaf OMK Makefile
+
+omk_rules=$(
+old_pwd=""
+while [ ! -e Makefile.rules ]; do
+ if [ "$old_pwd" = `pwd` ]; then
+ echo "Makefile.rules has not been found in this or parent directory" >&2; exit 1;
+ else
+ old_pwd=`pwd`;
+ cd -L .. 2>/dev/null;
+ fi;
+done;
+echo `pwd`/Makefile.rules
+)
+
+[ "$omk_rules" ] && make -f $omk_rules "$@"
$(eval $(call omk_pass_template,clean,$(USER_OBJS_DIR),,always))
-check-dir:
+check-dir::
@$(call mkdir_def,$(USER_INCLUDE_DIR))
@$(call mkdir_def,$(USER_LIB_DIR))
@$(call mkdir_def,$(USER_BIN_DIR))
if [ -e $(confh) ] ; then touch -t 200001010101 $(confh) ; fi ; \
)
-check-dir:
+check-dir::
@$(call mkdir_def,$(USER_OBJS_DIR))
@$(call mkdir_def,$(USER_INCLUDE_DIR))
@$(call mkdir_def,$(USER_LIB_DIR))
$(USER_OBJS_DIR)/*.map \
$(LOCAL_CONFIG_H:%=$(USER_OBJS_DIR)/%)
-check-dir:
+check-dir::
@$(call mkdir_def,$(USER_INCLUDE_DIR))
@$(call mkdir_def,$(USER_LIB_DIR))
@$(call mkdir_def,$(USER_BIN_DIR))
$(eval $(call omk_pass_template, library-pass,$(USER_OBJS_DIR),USER_RULE_TEMPLATES=y,$(lib_LIBRARIES)$(shared_LIBRARIES)))
$(eval $(call omk_pass_template, binary-pass, $(USER_OBJS_DIR),USER_RULE_TEMPLATES=y,$(bin_PROGRAMS)$(utils_PROGRAMS)$(test_PROGRAMS)))
-check-dir:
+check-dir::
@$(call mkdir_def,$(USER_BUILD_DIR))
@$(call mkdir_def,$(USER_INCLUDE_DIR))
@$(call mkdir_def,$(USER_LIB_DIR))
--- /dev/null
+SUBDIRS = somelib qtapp
--- /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
+QT_PROJECTS=qtapp.pro
cp Makefile1.omk Makefile.omk
make || error "QT compilation"
-[ -x qtapp/qtapp ] || error "QT application was not compiled"
+[ -x _compiled/bin/qtapp ] || error "QT application was not compiled"
-make distclean || error "QT distclean"
+make clean || error "QT clean 1"
cp Makefile2.omk Makefile.omk
make || error "QT Compilation in subdir"
-[ -x qtapp/qtapp ] || error "QT application was not compiled"
+[ -x _compiled/bin/qtapp ] || error "QT application was not compiled"
+
+make clean || error "QT clean 2"
+
+cp Makefile3.omk Makefile.omk
+make || error "QT_PROJECT test "
+[ -x _compiled/bin/qtapp ] || error "QT application was not compiled"
+
+make clean || error "QT clean 3"
include_HEADERS = header.h
-lib_LIBRARIES = somelib
+shared_LIBRARIES = somelib
+
somelib_SOURCES = somelib.c