[IPOL discuss] New tool to create Makefiles

Miguel Colom Miguel.Colom at cmla.ens-cachan.fr
Tue Oct 25 00:18:48 CEST 2011


Dear all,
I've created a small tool to help creating Makefiles to those who doesn't
know how to do it, or want to do it fastly.

It just needs that the program has all its source files in the same
directory. The it asks for additional C/C++ flags and the libraries the
program needs (-lpng -lfftw3f , for example).

It can be downloaded from:http://dev.ipol.im/~colom/tools/create_makefile.sh

This is a sample of its output when creating a Makefile for the
random_phase_noise_v1.3 IPOL program:

---------------------------------------------------------------
There were found 4 C files.
There were found 0 C++ files.

The following C flags will be used:
-O3 -ftree-vectorize -funroll-loops -fomit-frame-pointer -Wall -Wextra -ansi
Type additional flags or type ENTER:

C flags that will be used to compile:
-O3 -ftree-vectorize -funroll-loops -fomit-frame-pointer -Wall -Wextra -ansi

The following C++ flags will be used:
-O3 -ftree-vectorize -funroll-loops -fomit-frame-pointer -Wall -Wextra -ansi
Type additional flags or type ENTER:

C++ flags that will be used to compile:
-O3 -ftree-vectorize -funroll-loops -fomit-frame-pointer -Wall -Wextra -ansi

Type library options to use type ENTER. Ex: -lpng -lgomp -lfftw3f
-lpng -lfftw3f
Library to link flags:
-lpng -lfftw3f

Type the name of the executable name:
random_phase_noise
---------------------------------------------------------------

I hope this is helpful.
Miguel




More information about the discuss mailing list