README.build
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 06 May 2016 11:38:35 +0300
changeset 1007 afb3974f8fb3
parent 1004 c25446920923
permissions -rw-r--r--
fix warning about overflow if matiec is running on 64-bit platform,
but the generated C code will cross-compiled for 32-bit platform

For example:
./build/config.c:29:39: error: large integer implicitly truncated to unsigned type [-Werror=overflow]
unsigned long greatest_tick_count__ = 18446744073709551611UL; /*tick*/
^
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors

Compile/Build 
=============

1) Compiling under Linux
------------------------
$ autoreconf -i
$ ./configure
$ make


2) Cross-Compiling under Linux, for Windows
-------------------------------------------
$ ./configure  --host=i586-pc-mingw32
(or, to use static linking, which does not require installing any mingw dll's on windows)
$ ./configure  --host=i586-pc-mingw32 LDFLAGS="-static"
$ make





Maintaining the Build Environment
=================================
-> Add new files to Makefile.am or add a new makefile
$ autoreconf


-> Prepare clean project
$ make distclean



-> Remember to add these files to your .hgignore
	Makefile
	config.*
	*.a
	.deps


-> Send me TODO list to complete build system.
	matteo.facchinetti@sirius-es.it