Node:Alternative builds, Next:Glucas compiler options, Previous:Configure Make and Install, Up:Installing Glucas
This section is for users who want to build Glucas using other than the
default settings in the configure
script or try tuning Glucas
for their specific hardware.
You will need to know about your compiler settings, especially the
optimization flags. You will also need to know about Glucas and
YEAFFT configuration flags and ini
files.
Makefile.Glucas
is a skeleton of the Makefile
. You have to
edit the proper flags and macro definitions in that file. This file is
commented and also has examples for several architectures. Here is an
excerpt of the top of this file. You have to edit it and fill CC, O, LINK,
C, OUT, CFLAGS, CFLAGS1, CFLAGS0, and DEFINE_GLUCAS.
(See Glucas compiler options.)
# HOW TO CALL THE COMPILER. SELECT HERE YOUR COMPILER CC= # YOU CAN CHANGE HERE THE SUFFIXES FOR OBJECT O= # HOW TO LINK LINK= #ONLY COMPILE FLAG C= #OUTPUT FLAG OUT= # EXAMPLE for GNU/GCC compiler #CC=gcc #O=o #LINK=$(CC) #C=-c #OUT=-o # # SET THE OPTIMAL COMPILER FLAGS AND GLUCAS DEFINE HERE # CFLAGS= # # SOME COMPILERS DON'T WORK WELL WITH CFLAGS, SO WE NEED A LESSER # OPTIMIZATION FLAGS # CFLAGS1= # # tricky.c file needs even lesser optimization flag # CFLAGS0= # # SET THE OPTIMAL MACROS FOR GLUCAS # DEFINE_GLUCAS=
Only DEFINE_GLUCAS is specific for Glucas, the other flags depend on the users compiler/architecture.