[UP]


Manual Reference Pages  - makeout (1)

NAME

makeout(1f) - [DEVELOPER] Generate a Makefile from the sources (C, Fortran) in the current directory (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Environment
Examples
See Also
Author
License

SYNOPSIS

makeout program_files [ -o [filename]] [ -l LIBNAME] [ -v][ --version|--help]

DESCRIPTION

If all the source for a set of programs exists in a single directory, with a subdirectory containing the files with main programs, then makeout(1) creates a make(1) file for the current directory and the specified programs. A mixture of C and Fortran files is allowed. makeout(1) looks for dependencies created by INCLUDE(7f), "#include", and USE(3f) statements in their most common forms.

The resulting makefile is quite simple, with few comments. The targets and rules are explicit. The goal is to provide a well defined starting point for your Fortran makefile. You might need to customize the resultant makefile, but doing so is intended to be quite simple.

For more complex dependencies see your compiler information, as several compilers have switches that will generate a very complete list of dependencies.

       gfortran  -M        # GNU/Linux GCC, Free Software Foundation, Inc.
       ifort     -gen-dep  # Intel Compiler Suite

OPTIONS

program_files
  optional name of program files. Defaults to current directory.
-o output file. If not present, defaults to stdout. If present but no value is given "Makefile" is used.
-v verbose mode. Shows lines in input files that were used to create the dependencies.
-mode profile|production|debug If the default gfortran options are being used (ie. environment variables overide defaults) different compile and loader options are selected.
profile
  adds -pg option for gprof(1)
production
  good options for optimized performance
debug typical debug options
-l LIBNAME
  optional library name to merge all *.o files into
--help display command help and exit
--version
  output version information and exit EXAMPLES

ENVIRONMENT

CC defaults to "cc"
CFLAGS defaults to "-O"
F90 defaults to "gfortran"
F90FLAGS
  defaults to "-O"
FC defaults to "gfortran"
FFLAGS defaults to "-O"
LDFLAGS
  defaults to "-s"
LIBS defaults to "-lncurses -lsqlite3 -lreadline"

EXAMPLES

Common usage

    makeout PROGRAMS/testit.f90 -o
    make

SEE ALSO

If your project needs exceeds the capabilities of makeout(1), see the documentation for gmake(1), make(1), cmake(1), cpp(1), fpp(1), automake(1), create_makefile(1), create_makefiles(1), gccmakedep(1), imake(1), makedepend(1), xmkmf(1) and many resources on the WWW.

AUTHOR

John S. Urban

LICENSE

Public Domain


makeout (1) March 11, 2021
Generated by manServer 1.08 from 7155c0dd-1f8d-4450-ad35-f5d372352e6f using man macros.