Skip to content

Commit

Permalink
Add configure script to generate mconfig
Browse files Browse the repository at this point in the history
Configure script for generating mconfig. Now used to automatically generate mconfig by makefiles when the platform isn't recognised (i.e. when no prewritten config exists for the platform detected via uname).

Signed-off-by: Mobin <[email protected]>
  • Loading branch information
mobin-2008 authored Feb 28, 2023
1 parent 4ea7d5d commit 7780b3a
Show file tree
Hide file tree
Showing 3 changed files with 413 additions and 5 deletions.
15 changes: 12 additions & 3 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,18 @@ suitable build configuration is provided and will be used automatically if no ma
is supplied - skip directly to running "make" (more details below) if you are on one of these
systems and are happy to use the default configuration.

For other systems, or to fine tune or correct the configuration, create and edit the
"mconfig" file (start by copying one for a particular OS from the "configs" directory) to choose
appropriate values for the configuration variables defined within. In particular:
For other systems, or to fine tune or correct the configuration, you need to create mconfig
manally. you can use experimental "configure" script. Also make use this script if suitable config
is not available by default. This script try to find C++ compiler and
auto-detects OS and checks some options are supported or not and finally create mconfig.
Also several options are available to control configuration, for more info use

./configure --help

command to see all options.
otherwise you can create and edit the "mconfig" file (start by copying one for a particular OS
from the "configs" directory) to choose appropriate values for the configuration variables defined
within. In particular:

CXX : should be set to the name of the C++ compiler (and link driver)
CXXFLAGS : are options passed to the compiler during compilation
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@ mconfig:
echo "*** Found configuration for OS: $$UNAME"; \
ln -sf "configs/mconfig.$$UNAME" mconfig; \
else \
echo "*** No config available. Please create suitable mconfig file."; \
exit 1; \
./configure; \
fi
Loading

0 comments on commit 7780b3a

Please sign in to comment.