]> rtime.felk.cvut.cz Git - omk.git/log
omk.git
15 years agoomkbuild.py: Makefile.rules are constructed by replacing include directives in snippets
Michal Sojka [Mon, 29 Dec 2008 19:31:15 +0000 (20:31 +0100)]
omkbuild.py: Makefile.rules are constructed by replacing include directives in snippets

This allows for better structured rules and increases readability of
snippets. It is also possible to test rules without "compiling" them
by omkbuild.py as include directive is interpreted by make in the same way.

15 years agoomkbuild.py: The whole delimiter of legal part belongs to that part
Michal Sojka [Mon, 29 Dec 2008 19:27:12 +0000 (20:27 +0100)]
omkbuild.py: The whole delimiter of legal part belongs to that part

The delimiter is two empty comment lines.

15 years agoQT: Added QT_PROJECT variable
Michal Sojka [Tue, 17 Feb 2009 13:36:23 +0000 (14:36 +0100)]
QT: Added QT_PROJECT variable

This variable could be used as replacement for QT_SUBDIRS. Its purpose is
to specify QT .pro files in the current directory to compile. Therefore,
running make in a directory with QT application calls OMK, which in turn
calls qmake with correct parameters and compiles QT application under
_build tree.

15 years agoUpdated QT rules
Michal Sojka [Tue, 17 Feb 2009 12:50:15 +0000 (13:50 +0100)]
Updated QT rules

All temporary files are automatically put under _build and binaries under
_compiled. Also LDFLAGS are propagated to qmake-generated Makefile. Clean
target works correctly and no special target for distclean is needed as
everything is put under _build.

This behavior is problematic during development of QT application since it
cannot be compiled by running make in sources directory.

15 years agoAdded news to web page
Michal Sojka [Tue, 3 Feb 2009 13:13:17 +0000 (14:13 +0100)]
Added news to web page

15 years agoOMK shell alias replaced with a shell script
Michal Sojka [Thu, 29 Jan 2009 12:26:56 +0000 (13:26 +0100)]
OMK shell alias replaced with a shell script

The advantage of the script over alias is that it can be run from other
programs (e.g. editors).

15 years agoAdded shell alias for OMK invocation without leaf Makefile
Michal Sojka [Tue, 30 Dec 2008 08:04:10 +0000 (09:04 +0100)]
Added shell alias for OMK invocation without leaf Makefile

15 years agocheck-dir target converted to double-colon rule
Michal Sojka [Wed, 10 Dec 2008 21:38:54 +0000 (22:38 +0100)]
check-dir target converted to double-colon rule

This allows easy addition of other directories of commands in
config.target.

15 years agoFix linking of shared libraries on MinGW
Michal Sojka [Mon, 8 Dec 2008 10:53:31 +0000 (11:53 +0100)]
Fix linking of shared libraries on MinGW

For some reason find command didn't understand the command line. If
anything is prepended to the command line, it starts to work.

15 years agoConsider even cscope target as consumer of SOURCES_LIST.
Pavel Pisa [Tue, 11 Nov 2008 23:41:34 +0000 (00:41 +0100)]
Consider even cscope target as consumer of SOURCES_LIST.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
15 years agoBetter solution to linking binaries with shared libraries
Michal Sojka [Fri, 7 Nov 2008 09:52:19 +0000 (10:52 +0100)]
Better solution to linking binaries with shared libraries

Now, libraries do not contain absolute path to _compiled/lib directory.

15 years agoAdded .gitignore files
Michal Sojka [Thu, 30 Oct 2008 10:02:48 +0000 (11:02 +0100)]
Added .gitignore files

15 years agoMakefiles determine OMK version by "git describe"
Michal Sojka [Thu, 30 Oct 2008 09:46:29 +0000 (10:46 +0100)]
Makefiles determine OMK version by "git describe"

15 years agoWebpage update after migration to GIT
Michal Sojka [Thu, 30 Oct 2008 09:26:22 +0000 (10:26 +0100)]
Webpage update after migration to GIT

15 years agoAdded LD_RUN_PATH when linking shared libraries
Michal Sojka [Wed, 29 Oct 2008 23:42:43 +0000 (00:42 +0100)]
Added LD_RUN_PATH when linking shared libraries

This LD_RUN_PATH "hack" is the only way how I was able to link a program, which
depends in a shared library, which depends on another shared library. The
$ORIGIN didn't work here. The problem with this solution is that the absolute
path is compiled in the library.

15 years agoAdded experimental support for shared library dependencies
Michal Sojka [Wed, 29 Oct 2008 09:17:00 +0000 (09:17 +0000)]
Added experimental support for shared library dependencies

In fact, I'm not sure, whether dependency of shared libraries is the
real problem. Currently, the problem appears if a shared library depends
on a static library. Then this static library must be created before the
shared one.

This change adds a new link-pseudo-pass, which is called after
library-pass and before binary-pass. This "pseudo" pass doesn't traverse
directories recursively, but instead it processes *.omkvar files
prepared during library-pass. Since the shared libraries are linked
after the static ones, we have no problems with dependencies described
in the previous paragraph.

In future, we will extend this approach to linking of libraries,
binaries and maybe even kernel modules. This allows to save at least
binary-pass and the compilation will be faster.

darcs-hash:20081029091745-f2ef6-daa7a8825364b2bbc40f1f00bfd51dd6676ea4d3.gz

15 years agoxxx_IDLFLAGS variable can be used to specify custom IDL flags for different files
Michal Sojka [Tue, 14 Oct 2008 20:29:00 +0000 (20:29 +0000)]
xxx_IDLFLAGS variable can be used to specify custom IDL flags for different files

darcs-hash:20081014202909-f2ef6-12141c88a54276d51064e7773d59aa3f468ffe7c.gz

15 years agoRemoved Linux variables which could not be obtained from kernelcfg2mk probe.
Pavel Pisa [Tue, 14 Oct 2008 08:09:00 +0000 (08:09 +0000)]
Removed Linux variables which could not be obtained from kernelcfg2mk probe.

These variables are only local for Makefile.modpost.
The modpost option -I has been introduced for 2.6.17 kernel.
The test used enables it only for 2.6.25+ kernels.

darcs-hash:20081014080915-ff715-781b3d63c6747bcd5fa171d390a8923e6bca533e.gz

15 years agoIncluded some more options to modpost according to kernel options configured.
Pavel Pisa [Tue, 14 Oct 2008 00:54:00 +0000 (00:54 +0000)]
Included some more options to modpost according to kernel options configured.

darcs-hash:20081014005448-ff715-265250d6d2fd9dbc92c978ecd94c10e1565ca909.gz

15 years agoSmall fix in documentation
Michal Sojka [Sun, 12 Oct 2008 13:10:00 +0000 (13:10 +0000)]
Small fix in documentation

darcs-hash:20081012131013-f2ef6-074f3521ffb5bdb556d7c94d6fcbbdd7283f0f6c.gz

15 years agoThe include path adjust to allow use of the LOCAL_CONFIG_H for modules build.
Pavel Pisa [Tue, 30 Sep 2008 21:34:00 +0000 (21:34 +0000)]
The include path adjust to allow use of the LOCAL_CONFIG_H for modules build.

darcs-hash:20080930213408-ff715-35da391853dd55fcd5a1742f61a337f0e4031d58.gz

15 years agoSuppress warning the address of __this_module will always evaluate as true.
Pavel Pisa [Tue, 30 Sep 2008 10:16:00 +0000 (10:16 +0000)]
Suppress warning the address of __this_module will always evaluate as true.

darcs-hash:20080930101609-ff715-5f35f260a2d9152e591d7ebd2b812d0512667f36.gz

15 years agoThe kernelcfg2mk updated to work with PowerPC 2.6.26+ kernels.
Pavel Pisa [Tue, 30 Sep 2008 09:44:00 +0000 (09:44 +0000)]
The kernelcfg2mk updated to work with PowerPC 2.6.26+ kernels.

darcs-hash:20080930094443-ff715-aa48eb6e5cdf3583781bb70ce37ff3067d1eb7b6.gz

15 years agoAdded export of TARGET_OS and BUILD_OS variables
Michal Sojka [Thu, 2 Oct 2008 12:54:00 +0000 (12:54 +0000)]
Added export of TARGET_OS and BUILD_OS variables

Not exporting these variables was a bug that caused ORTE not to compile
under Mingw.

darcs-hash:20081002125430-f2ef6-cd7e99062d403d69650839bfcba89c72237da96f.gz

15 years agoCompleted test for sources-list
Michal Sojka [Fri, 19 Sep 2008 07:17:00 +0000 (07:17 +0000)]
Completed test for sources-list

darcs-hash:20080919071722-f2ef6-8b214d07326b27f6bc942fef13c3d42bf7c3023b.gz

15 years agoFixed error sources-list targen when run on distcleaned sources
Michal Sojka [Thu, 18 Sep 2008 18:18:00 +0000 (18:18 +0000)]
Fixed error sources-list targen when run on distcleaned sources

darcs-hash:20080918181818-f2ef6-16f7c7a7d1512f6483c2a4fbbbaebee74132cb62.gz

15 years agoFinal fix and test-case for sources-list target
Michal Sojka [Thu, 18 Sep 2008 18:05:00 +0000 (18:05 +0000)]
Final fix and test-case for sources-list target

darcs-hash:20080918180538-f2ef6-6e4a21149d3fe194482c1e8a20e178ded234183d.gz

15 years agoFix handling of renamed_include_HEADER in sources-list target
Michal Sojka [Tue, 16 Sep 2008 18:55:00 +0000 (18:55 +0000)]
Fix handling of renamed_include_HEADER in sources-list target

darcs-hash:20080916185514-f2ef6-35025d9e56b2958ea469ce571b811b463c2a089c.gz

15 years agoUpdated kernelcfg2mk to the current version
Michal Sojka [Thu, 11 Sep 2008 10:25:00 +0000 (10:25 +0000)]
Updated kernelcfg2mk to the current version

darcs-hash:20080911102523-f2ef6-d3273718885ca334162129e1eff4781bfb732ac2.gz

15 years agoAdded kernelcfg2mk to repository
Michal Sojka [Wed, 10 Sep 2008 04:49:00 +0000 (04:49 +0000)]
Added kernelcfg2mk to repository

I took the version from ocera's can repository.

darcs-hash:20080910044907-f2ef6-605d3dee33f964f4152d2b60e4bbb8a893c568da.gz

15 years agoHide command of extra rules make invocation
Michal Sojka [Sun, 7 Sep 2008 12:37:00 +0000 (12:37 +0000)]
Hide command of extra rules make invocation

darcs-hash:20080907123751-f2ef6-773855dc6211851452737020c26fa96bda2a653a.gz

15 years agoFix for EXTRA_RULES_SUBDIRS
Michal Sojka [Fri, 5 Sep 2008 16:24:00 +0000 (16:24 +0000)]
Fix for EXTRA_RULES_SUBDIRS

EXTRA_RULES_SUBDIRS was sometimes processed after other include
directories, which was bad, when the include-pass in the subdirectory
needed some tool compiled in EXTRA_RULES_SUBDIRS. Now, all
subdirectories have the extra subdir target as dependency, so it is
built always first.

darcs-hash:20080905162440-f2ef6-8157262677fde3c6bfa96db777666e6da993324f.gz

15 years agoAdded forgotten @ to hide debuggin output
Michal Sojka [Fri, 29 Aug 2008 12:54:00 +0000 (12:54 +0000)]
Added forgotten @ to hide debuggin output

darcs-hash:20080829125403-f2ef6-31f7c09ad4922c2243736d59ca1a5c1e0d55d441.gz

15 years agoFixed generation of sources-list
Michal Sojka [Thu, 28 Aug 2008 07:13:00 +0000 (07:13 +0000)]
Fixed generation of sources-list

Formerly, the sources in the toplevel directory started with '/' by
mistake. Also there was some problematic place with
renamed_include_HEADERS. All this is now fixed.

darcs-hash:20080828071315-f2ef6-fee5e2e31c87f148dbdeca9345802abeff5a566a.gz

15 years agosources-list-pass generates correct dependences in runtime
Michal Sojka [Thu, 28 Aug 2008 07:11:00 +0000 (07:11 +0000)]
sources-list-pass generates correct dependences in runtime

darcs-hash:20080828071147-f2ef6-d605237a2372bf61e72f56316bce69eac88d8e9b.gz

15 years agoAdded support for renamed_include_GEN_HEADERS
Michal Sojka [Tue, 26 Aug 2008 13:21:00 +0000 (13:21 +0000)]
Added support for renamed_include_GEN_HEADERS

The support for include files was reworked. Now, all *_GEN_HEADERS and
renamed_*_GEN_HEADERS targets are supported automatically by
instantiation of include-pass-template macro.

darcs-hash:20080826132143-f2ef6-64baabeb80bc97554fa008d1bb7fab3e78f53dd3.gz

15 years agoAdded support for exporting IDL-genrated headers
Michal Sojka [Mon, 25 Aug 2008 09:32:00 +0000 (09:32 +0000)]
Added support for exporting IDL-genrated headers

For this to work, IDL compilation must be triggered before include-pass.
Therefore, we cannot optimize include pass by not defining
USER_RULE_TEMPLATES.

This solution is a little hack. Bigger reorganization of OMK rules is
needed for proper solution.

darcs-hash:20080825093249-f2ef6-affb094c31d09de265b78e7fca20bdfe9a10228d.gz

15 years agoFixed bug in texinfo documentation
Michal Sojka [Sun, 24 Aug 2008 12:09:00 +0000 (12:09 +0000)]
Fixed bug in texinfo documentation

darcs-hash:20080824120914-f2ef6-0e740f73ce1fac0e87aba1960090265e91ec892d.gz

15 years agoclean target also cleans all generated .c and .h files
Michal Sojka [Sun, 24 Aug 2008 11:33:00 +0000 (11:33 +0000)]
clean target also cleans all generated .c and .h files

darcs-hash:20080824113308-f2ef6-24c9b3e69510631ad4ae10455e309fe7d638eddf.gz

15 years agoFixed test functions to work under dash shell
Michal Sojka [Sat, 23 Aug 2008 21:12:00 +0000 (21:12 +0000)]
Fixed test functions to work under dash shell

darcs-hash:20080823211254-f2ef6-635eec55b952cde6ef665815133d0b487fcbd25a.gz

15 years agoLeaf makefiles in tests replaced with dash-friendly version
Michal Sojka [Sat, 23 Aug 2008 20:58:00 +0000 (20:58 +0000)]
Leaf makefiles in tests replaced with dash-friendly version

darcs-hash:20080823205847-f2ef6-641492e287b4d85955a04f1655276fe45fae0a22.gz

15 years agoIncluded test functions to programs runtest
Michal Sojka [Sat, 23 Aug 2008 20:46:00 +0000 (20:46 +0000)]
Included test functions to programs runtest

darcs-hash:20080823204626-f2ef6-1afa7f85357662166a3216029ba942688517a649.gz

15 years agoFixed printing of "Entering directory" messages with V=2
Michal Sojka [Sat, 23 Aug 2008 20:46:00 +0000 (20:46 +0000)]
Fixed printing of "Entering directory" messages with V=2

darcs-hash:20080823204608-f2ef6-ba9871e6568f012df2b03329d862a757f1dc76bf.gz

15 years agoThe kernelcfg2mk is located in MAKERULES_DIR and not OUTPUT_DIR.
Pavel Pisa [Mon, 7 Jul 2008 08:28:00 +0000 (08:28 +0000)]
The kernelcfg2mk is located in MAKERULES_DIR and not OUTPUT_DIR.

darcs-hash:20080707082818-ff715-c0f98d9a7a63ea6471944d3987dd74af9776961f.gz

15 years agoHandling of EXTRA_RULES_SUBDIRS added to some other rules
Michal Sojka [Mon, 14 Jul 2008 15:54:00 +0000 (15:54 +0000)]
Handling of EXTRA_RULES_SUBDIRS added to some other rules

Also included some small fixes

darcs-hash:20080714155425-f2ef6-020e47714ee5ca440af8ab21b707130aa6dd4be6.gz

15 years agoRemoved forgotten $(warning)
Michal Sojka [Mon, 14 Jul 2008 15:48:00 +0000 (15:48 +0000)]
Removed forgotten $(warning)

darcs-hash:20080714154859-f2ef6-0a1c45c8b6f6ffa73095f84dae473609355f0ed3.gz

15 years agoAdded some content to OMK Development section in manual
Michal Sojka [Mon, 14 Jul 2008 15:47:00 +0000 (15:47 +0000)]
Added some content to OMK Development section in manual

darcs-hash:20080714154750-f2ef6-5530b89f357e0377fd8594b3bae5d3bb049e37a1.gz

15 years agoFix for EXTRA_RULES_SUBDIR bug reported by Petr Smolik
Michal Sojka [Mon, 14 Jul 2008 15:33:00 +0000 (15:33 +0000)]
Fix for EXTRA_RULES_SUBDIR bug reported by Petr Smolik

The bug was that EXTRA_RULES_SUBDIR was ignored when declared in
different directory than the one where make was invoked.

darcs-hash:20080714153345-f2ef6-be7789b580d8736c0440ab71634f429de71a9cc7.gz

15 years agoAdded EXTRA_RULES_SUBDIRS feature
Michal Sojka [Wed, 25 Jun 2008 12:35:00 +0000 (12:35 +0000)]
Added EXTRA_RULES_SUBDIRS feature

By setting this variable in Makefile.omk, it is possible to compile some
part of the source tree using different rules. It is useful for
compilation of host tools which are needed to compile the rest of
project (e.g. IDL compilers).

darcs-hash:20080625123539-f2ef6-40ef4157c7098be9d851bae6ccf972ca90e69d23.gz

15 years agoDocumented some other variables in comments
Michal Sojka [Fri, 13 Jun 2008 12:27:00 +0000 (12:27 +0000)]
Documented some other variables in comments

darcs-hash:20080613122746-f2ef6-f5e69a5518f8e596cb3a259512dc49aeb7853fca.gz

15 years agoDoxumented xxx_LIBS in comments
Michal Sojka [Fri, 13 Jun 2008 12:23:00 +0000 (12:23 +0000)]
Doxumented xxx_LIBS in comments

darcs-hash:20080613122335-f2ef6-a46503f195000bd32f575cb9402d0952a3d20d5c.gz

15 years agoFixed Makefile for web update
Michal Sojka [Thu, 12 Jun 2008 14:36:00 +0000 (14:36 +0000)]
Fixed Makefile for web update

darcs-hash:20080612143617-f2ef6-152e256887cc6848a9fbc70a8a6f6de3d1f3d757.gz

15 years agoFixed documentation to be compilable by a broken version of TeXinfo
Michal Sojka [Thu, 12 Jun 2008 10:54:00 +0000 (10:54 +0000)]
Fixed documentation to be compilable by a broken version of TeXinfo

darcs-hash:20080612105414-f2ef6-87ddaad6b6b2508687a809c025913828861a8517.gz

15 years agoFixed shared library generation as reported by Tommaso Cucinotta
Michal Sojka [Thu, 12 Jun 2008 10:14:00 +0000 (10:14 +0000)]
Fixed shared library generation as reported by Tommaso Cucinotta

See also http://www.mail-archive.com/bug-binutils@gnu.org/msg01097.html

darcs-hash:20080612101400-f2ef6-e5d3261a82e06de32b7def48ac3d7ee330db7636.gz

15 years agoAdded AUTOMATIC_SUBDIRS variable
Michal Sojka [Thu, 12 Jun 2008 10:11:00 +0000 (10:11 +0000)]
Added AUTOMATIC_SUBDIRS variable

This variable enables automatic settings of SUBDIRS if it is not set in
explicitly in Makefile.omk. (inspired by Tommaso Cucinotta)

darcs-hash:20080612101137-f2ef6-18c34a9733b6ab588ec3aff5a8e84c82e93af392.gz

15 years agoFixed (undocumented) sources-list target to work with new config files
Michal Sojka [Tue, 13 May 2008 22:03:00 +0000 (22:03 +0000)]
Fixed (undocumented) sources-list target to work with new config files

darcs-hash:20080513220334-f2ef6-e65766ee52ea5989e8df5d2d24e211741e4e1d52.gz

15 years agoFixed error on inclusion of config.omk if it is broken symlink
Michal Sojka [Wed, 7 May 2008 20:07:00 +0000 (20:07 +0000)]
Fixed error on inclusion of config.omk if it is broken symlink

darcs-hash:20080507200725-f2ef6-3457c372982a518f98885742f437096444e475e4.gz

16 years agoGenerated header files didn't depend on all config.files.
Michal Sojka [Thu, 1 May 2008 02:43:00 +0000 (02:43 +0000)]
Generated header files didn't depend on all config.files.

darcs-hash:20080501024350-f2ef6-6843dd83fa476fab51ffb37cd8d3ecbb414cff4e.gz

16 years agoFixed typos in documentation
Michal Sojka [Mon, 28 Apr 2008 11:08:00 +0000 (11:08 +0000)]
Fixed typos in documentation

darcs-hash:20080428110810-f2ef6-a2130a2f8fc87e50ded24c1b129ecedd8744ef6e.gz

16 years agoAdded MAMOK projet to webpage
Michal Sojka [Mon, 28 Apr 2008 11:05:00 +0000 (11:05 +0000)]
Added MAMOK projet to webpage

darcs-hash:20080428110510-f2ef6-7e6fdc6532dabc74838789ba3d3edadb5d2f91f6.gz

16 years agoWWW page updates for release v0.1
Michal Sojka [Wed, 23 Apr 2008 20:44:00 +0000 (20:44 +0000)]
WWW page updates for release

darcs-hash:20080423204453-f2ef6-e75bc5822d550450b620a4e560f0e95b57315f98.gz

16 years agoAdded release target to OMK makefile
Michal Sojka [Wed, 23 Apr 2008 20:42:00 +0000 (20:42 +0000)]
Added release target to OMK makefile

darcs-hash:20080423204204-f2ef6-2215b765179837a154ad51ad8199e8ecaefc61ba.gz

16 years agoAdded GNU GPLv2
Michal Sojka [Wed, 23 Apr 2008 20:20:00 +0000 (20:20 +0000)]
Added GNU GPLv2

darcs-hash:20080423202011-f2ef6-e84a7989601a435794761b174fd81d0ef38a5faa.gz

16 years agoPreparing documentation for release
Michal Sojka [Wed, 23 Apr 2008 20:07:00 +0000 (20:07 +0000)]
Preparing documentation for release

darcs-hash:20080423200729-f2ef6-f105a825b8e6fdf1aaf6179b164ac80e4b15914a.gz

16 years agoAdded TARFLAGS variable for x_EMBEDTARFILES targets generation.
Pavel Pisa [Sat, 19 Apr 2008 01:11:00 +0000 (01:11 +0000)]
Added TARFLAGS variable for x_EMBEDTARFILES targets generation.

The TARFLAGS variable allows to include flag --dereference
to follow symbolic links.

darcs-hash:20080419011142-ff715-ed6163b0fd3d572da172d8dda932f3ba0d6b9b22.gz

16 years agoUpdates and fixes to documentation
Michal Sojka [Fri, 18 Apr 2008 19:24:00 +0000 (19:24 +0000)]
Updates and fixes to documentation

darcs-hash:20080418192402-f2ef6-305f192e04e58888ed9bb342147a640d45624640.gz

16 years agoSmall fixes in documentation
Michal Sojka [Fri, 18 Apr 2008 18:59:00 +0000 (18:59 +0000)]
Small fixes in documentation

darcs-hash:20080418185920-f2ef6-760190acc27523fb1b6b3857ea0572765d478a51.gz

16 years agoAdded some menus to texinfo documentation
Michal Sojka [Fri, 18 Apr 2008 18:53:00 +0000 (18:53 +0000)]
Added some menus to texinfo documentation

darcs-hash:20080418185305-f2ef6-76a7d1b58d2eebd51dc20ea328852e7626da01fc.gz

16 years agoFixed QT compilation from subdirectory and documented QT_SUBDIRS variable
Michal Sojka [Fri, 18 Apr 2008 18:51:00 +0000 (18:51 +0000)]
Fixed QT compilation from subdirectory and documented QT_SUBDIRS variable

darcs-hash:20080418185129-f2ef6-52c01a0f1cd4d998a783ea8e8738e5667a1680bb.gz

16 years agoFixed parallel_make test to test only serialized targets
Michal Sojka [Fri, 18 Apr 2008 18:16:00 +0000 (18:16 +0000)]
Fixed parallel_make test to test only serialized targets

darcs-hash:20080418181614-f2ef6-6a9681d617a9825c81c55f2b0b4c6a6a9dac02cd.gz

16 years agoAdded support for pass hooks in Makefile.omk
Michal Sojka [Fri, 18 Apr 2008 17:21:00 +0000 (17:21 +0000)]
Added support for pass hooks in Makefile.omk

Setting of <pass-name>_HOOKS causes specified targets to be executed
during compilation of a pass. See documentation for details.

darcs-hash:20080418172146-f2ef6-8e02d43f066f74bb017188f4ba1af01c42cf1704.gz

16 years agoSmall fixes in test cases
Michal Sojka [Fri, 18 Apr 2008 17:20:00 +0000 (17:20 +0000)]
Small fixes in test cases

darcs-hash:20080418172032-f2ef6-f536325aef6ce5d605e8e46b3c4d8fd51c78e714.gz

16 years agoPass names varables was stripped from spaces
Michal Sojka [Fri, 18 Apr 2008 16:15:00 +0000 (16:15 +0000)]
Pass names varables was stripped from spaces

darcs-hash:20080418161527-f2ef6-b650ef6ca88a1ab37f9e1ba5559bfa7660dc056d.gz

16 years agoFixed problem with parallel make (-j) caused by the previous change
Michal Sojka [Fri, 18 Apr 2008 15:47:00 +0000 (15:47 +0000)]
Fixed problem with parallel make (-j) caused by the previous change

If compilation was invoked as make -j, pass serialization didn't work.
In other words, it was possible that, for example, some library-pass
targets was made before all include-pass targets was finished. This
meant all include files were not available for compilation of libraries.

This behavior was caused the fact that recently introduced <pass>-XXX-subdir
targets was direct dependencies of <pass>. Since pass serialization is
done by putting one pass as dependency of another pass, this
serialization dependencies was on the "same level" as -subdir
dependencies and make -j executed them in parallel.

This was fixed by adding another target called <pass>-submakes which is
called recursively from <pass> target after all "serialization
dependencies" are processed. All -subdir targets are dependencies of
only -submakes target and hence are not intermixed with serialization
dependencies.

To avoid overhead caused by this additional recursive make invocation,
all recursive makes are invoked directly with the new -submakes target
as their goal. Hence, the original pass target is called only in the
top-level make.

This change can influence some "nonstandard" constructs used sometimes
in Makefile.omk that count upon invocation of the original pass in every
directory. This issue will be solved by upcoming patches.

darcs-hash:20080418154711-f2ef6-365337cb69c6aeb0eb659c6f2ad74605d80de1d8.gz

16 years agoRenamed test directory ("-" changed to "_")
Michal Sojka [Fri, 18 Apr 2008 07:02:00 +0000 (07:02 +0000)]
Renamed test directory ("-" changed to "_")

darcs-hash:20080418070211-f2ef6-3449109feaeda0a3f190a544ee2597af52863dde.gz

16 years agoAdded/corrected support to compile assembly (.S) sources for Linux rules.
Pavel Pisa [Thu, 17 Apr 2008 23:04:00 +0000 (23:04 +0000)]
Added/corrected support to compile assembly (.S) sources for Linux rules.

darcs-hash:20080417230427-ff715-5a7af9c33ceb2018b2f4a6abdf8d50b8ebb21977.gz

16 years agoAdded forgotten file in shlibs test
Michal Sojka [Thu, 17 Apr 2008 11:57:00 +0000 (11:57 +0000)]
Added forgotten file in shlibs test

darcs-hash:20080417115759-f2ef6-cd6a1b48bfe3e97dd24b5dc2cabe88ffdd9145fb.gz

16 years agoAdded test for not using leaf makefiles
Michal Sojka [Thu, 17 Apr 2008 11:51:00 +0000 (11:51 +0000)]
Added test for not using leaf makefiles

This test was written some time ago, but I forget to commit it.

darcs-hash:20080417115111-f2ef6-fdaef8511db1ab33cab6ba4e0fa6ab5f9a753715.gz

16 years agoAdded test for checking that subdirectories are processed first
Michal Sojka [Thu, 17 Apr 2008 06:29:00 +0000 (06:29 +0000)]
Added test for checking that subdirectories are processed first

darcs-hash:20080417062949-f2ef6-2539acae31fc7b94c2abf72039475b3987f50639.gz

16 years agoFixed behaviour of make -k if there is an error in a subdirectory
Michal Sojka [Thu, 17 Apr 2008 06:25:00 +0000 (06:25 +0000)]
Fixed behaviour of make -k if there is an error in a subdirectory

The previous implementation of recursive invocation of make in
subdirectories didn't obey the -k flag. If there was an error in some
subdirectory, the other directories were not made.

This patch creates a separate targets for each subdirectory and pass and
add them as a dependencies to the main pass target. This way the
compilation errors are handled correctly with the -k flag.

darcs-hash:20080417062508-f2ef6-d049eff642e8c33ee1822d8b321bf1365ed80869.gz

16 years agoFixed typo in messages from -check targets
Michal Sojka [Wed, 16 Apr 2008 20:42:00 +0000 (20:42 +0000)]
Fixed typo in messages from -check targets

darcs-hash:20080416204216-f2ef6-122cb3d29d8ad28bd56ff13226a329dcc761bab9.gz

16 years agoAdded support for "exporting" generated headers from _build tree
Michal Sojka [Wed, 16 Apr 2008 19:12:00 +0000 (19:12 +0000)]
Added support for "exporting" generated headers from _build tree

darcs-hash:20080416191219-f2ef6-cdbf439ef164b629a3ae55f3fe3b13d47a159272.gz

16 years agoFixed parallel invocation of make (with -j)
Michal Sojka [Wed, 9 Apr 2008 06:27:00 +0000 (06:27 +0000)]
Fixed parallel invocation of make (with -j)

In order for sub-makes to communicate with jobserver, it is necessary
to add + in front of line invoking the sub-make.

darcs-hash:20080409062706-f2ef6-fd8972c4d95155f278068cecf151f2f63ae36bac.gz

16 years agoAdded OMK_RULES_TYPE variable
Michal Sojka [Thu, 3 Apr 2008 10:54:00 +0000 (10:54 +0000)]
Added OMK_RULES_TYPE variable

This variable is automatically generated by the omkbuild.py on top of
the Makefile.rules. Its value is the name of rules target. It can be
used for example in config.target to distinguish between targets.

darcs-hash:20080403105414-f2ef6-acb33cb34ac1dc08ed93ad57d7978c7761bac647.gz

16 years agoFixed loading of test_PROGRAMS
Michal Sojka [Thu, 3 Apr 2008 08:59:00 +0000 (08:59 +0000)]
Fixed loading of test_PROGRAMS

darcs-hash:20080403085910-f2ef6-7ff4cff1dc326a9d417fa88b90d063d007346055.gz

16 years agoFixed omkize target.
Michal Sojka [Tue, 1 Apr 2008 16:24:00 +0000 (16:24 +0000)]
Fixed omkize target.

Now omkize does not overwrite Makefiles in directories with
Makefile.rules present and where no change is necessary.

darcs-hash:20080401162432-f2ef6-e2b3f52bfd7696497d3ee8a91c6fc3aa17a7f024.gz

16 years agoFixed typo in .PHONY declaration.
Michal Sojka [Sun, 30 Mar 2008 16:53:00 +0000 (16:53 +0000)]
Fixed typo in .PHONY declaration.

darcs-hash:20080330165316-f2ef6-98091cc5cdb962e8e1ed8643babec4feacd38788.gz

16 years agoFixed check for load command in sysless.
Michal Sojka [Fri, 28 Mar 2008 12:41:00 +0000 (12:41 +0000)]
Fixed check for load command in sysless.

darcs-hash:20080328124140-f2ef6-7a5553aadc95f31dda3877106bc0964530c4dc91.gz

16 years agoAdded test for correct overriding of variables in different configs.
Michal Sojka [Wed, 26 Mar 2008 17:51:00 +0000 (17:51 +0000)]
Added test for correct overriding of variables in different configs.

This test checks whether variables are overriden according to the user
manual.

darcs-hash:20080326175154-f2ef6-958beebf698c31c34b052edf8f864f29443dd915.gz

16 years agoFixed bug, when links to header files were created even if headers did not exist.
Michal Sojka [Tue, 18 Mar 2008 16:02:00 +0000 (16:02 +0000)]
Fixed bug, when links to header files were created even if headers did not exist.

darcs-hash:20080318160206-f2ef6-c2f527f11facc439c5603ee9dafbc06c86117099.gz

16 years agoSet MAKERULES_DIR in not defined.
Michal Sojka [Wed, 12 Mar 2008 16:43:00 +0000 (16:43 +0000)]
Set MAKERULES_DIR in not defined.

If OMK is not called by leaf Makefile but instead by
make -f <path>/Makefile.rules, MAKERULES_DIR variable is set automatically to the
correct value.

darcs-hash:20080312164306-f2ef6-639d249a10e7b763ff61413d86a6894a723fc750.gz

16 years agoDocumented srcdir variable
Michal Sojka [Tue, 11 Mar 2008 16:57:00 +0000 (16:57 +0000)]
Documented srcdir variable

darcs-hash:20080311165731-f2ef6-e3f272dfdef617a7ad41f17b53e30818aab3b4e5.gz

16 years agoReturn back "srcdir" variable. The VPATH cleanup has been too intrusive.
Pavel Pisa [Sun, 2 Mar 2008 00:06:00 +0000 (00:06 +0000)]
Return back "srcdir" variable. The VPATH cleanup has been too intrusive.

The "srcdir" variable notation is compatible with automake tools
and it is already used by some projects in Makefile.omk files.
Removal breaks build of ORTE library code for example.

darcs-hash:20080302000619-ff715-4f45c56027d0d4d5c146a3eb1600da3042c1eb64.gz

16 years agoAdded documentatio and test of SOURCES_DIR variable.
Michal Sojka [Tue, 11 Mar 2008 16:49:00 +0000 (16:49 +0000)]
Added documentatio and test of SOURCES_DIR variable.

darcs-hash:20080311164949-f2ef6-9a6499fad99abe0706a798839867e6b0af1ab431.gz

16 years agoFixed serialization of passes when W=1 is used.
Michal Sojka [Tue, 29 Jan 2008 08:11:00 +0000 (08:11 +0000)]
Fixed serialization of passes when W=1 is used.

darcs-hash:20080129081109-f2ef6-b39fbfb3ecb88ef2237c5da514b316ea7f0d2b7e.gz

16 years agoPropagated correction of MinGW madness workaround to Sysless rules.
Pavel Pisa [Mon, 28 Jan 2008 15:08:00 +0000 (15:08 +0000)]
Propagated correction of MinGW madness workaround to Sysless rules.

darcs-hash:20080128150815-ff715-fc963e644951829a0b1647ad4306decd6ce88990.gz

16 years agoconfig.target is included already in base.
Michal Sojka [Mon, 28 Jan 2008 10:19:00 +0000 (10:19 +0000)]
config.target is included already in base.

This is necessary if there USE_LEAF_MAKEFILES is set there.

darcs-hash:20080128101915-f2ef6-708f41a37bd14ca62ec8844ee99a75499fd870a7.gz

16 years agoMakefile.rules can now tell the OMK tester that the test cannot be executed.
Michal Sojka [Mon, 28 Jan 2008 08:30:00 +0000 (08:30 +0000)]
Makefile.rules can now tell the OMK tester that the test cannot be executed.

If OMK is executed by tester.py, base snippet calls -check targets for
each pass and defines macro 'canttest'. The canttest macro can be used
by the -check targets or at other places. It notifies the tester that
this test cannot be executed because of something is missing for
example.

This way, the check for "canttest" don't have to be in runtest
scripts, which allows to execute more tests and skip only those, which
relly need some unavailable feature.

Tester application was enhanced to produce results not only by
testcase but also by rules. The results also contains links to test
script and directory, so it is easy to see quicky what a given error
mean.

darcs-hash:20080128083057-f2ef6-ac647bd06ea8ce9c047190bf15441c95f50b8006.gz

16 years agoSetup snippets merged with the corresponding non-setup rules.
Michal Sojka [Sun, 27 Jan 2008 21:30:00 +0000 (21:30 +0000)]
Setup snippets merged with the corresponding non-setup rules.

It seems that setup rules are no longer necessary."

darcs-hash:20080127213002-f2ef6-97845afaa90d4cc15e81f09ccf60226a391b1224.gz

16 years agoVPATH variable completely removed from rules.
Michal Sojka [Sun, 27 Jan 2008 15:42:00 +0000 (15:42 +0000)]
VPATH variable completely removed from rules.

If the VPATH variable was set to SOURCES_DIR, it caused problems, when
there were .o files in SOURCES_DIR. OMK thoughts the prerequisites
existed and link command failed, because no .o file were found in
_build tree. This behavior was problematic if OMK was used in
projects with multiple make systems.

darcs-hash:20080127154245-f2ef6-69dbb419870250dfc8c8dfabe81e805e80145eb5.gz