From 642cf3f4ca515517712d1d9235efe3cc00064764 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 15 Mar 2006 22:52:00 +0000 Subject: none --- Mig/BuildingMIG.mdwn | 39 ++++++++++++++++++++++++++++++++------- 1 file changed, 32 insertions(+), 7 deletions(-) (limited to 'Mig') diff --git a/Mig/BuildingMIG.mdwn b/Mig/BuildingMIG.mdwn index 416bb23f..c12a3bd1 100644 --- a/Mig/BuildingMIG.mdwn +++ b/Mig/BuildingMIG.mdwn @@ -14,7 +14,7 @@ You can chose between getting the [sources from the developers's RCS](http://www Please see [[Distrib/DebianFAQ]] before using _apt-get source_. -The unpacked source tree is around [TODO]MiB, and the build tree is around [TODO]MiB. +The unpacked source tree is around 1 MiB, and the build tree also is around 1 MiB. ## Preparing for the Build @@ -27,20 +27,45 @@ Building the Mach Interface Generator requires the _build-essential_ and _fakero ### ... on non-Debian systems -[TODO] +Building the Mach Interface Generator requires a C compiler, a standard C library (with corresponding header files) and your favourite flavor of awk (gawk), yacc (bison), lex (flex) and make. -## Building +Additionally, you need to have GNU Mach's header files installed. See [[Mach/BuildingGNUMach]] about how to do that, then come back here. + +## Building and Installing ### ... a _.deb_ file -Change into the directory with the downloaded / unpacked MIG sources, e.g. +Change into the directory with the downloaded / unpacked MIG sources (\_mig-1.3.1): - $ cd mig-[TODO] + $ cd mig-1.3.1 -Start the build process with +Start the build process: $ dpkg-buildpackage -us -uc -b -rfakeroot +You can then install / distribute the _.deb_ file which will drop out one directory above the current one. + ### [TODO] -[TODO] +The Mach Interface Generator has to be built in a separate directory: + + $ mkdir mig-build + $ cd mig-build + +Find the root directory where you installed GNU Mach's header files and where you now intend to install the Mach Interface Generator (_~/gnu_) and the path to your Mach Interface Generator sources (\_[...]/mig) and configure it: + + $ GNU=~/gnu + $ TARGET_CPPFLAGS=-I"$GNU"/include [...]/mig/configure --prefix="$GNU" + +Build and install the Mach Interface Generator into _$GNU_, i.e. _~/gnu/_ in our example: + + $ make all install + +To make your _mig_ binary easily available, you should append something like the following to e.g. your _~/.bash\_profile_: + + PATH=~/gnu/bin:$PATH + export PATH + +If you already have e.g. _~/bin_ in your _$PATH_, you could also create a symbolic link: + + $ ln -s ~/gnu/bin/mig ~/bin/ -- cgit v1.2.3