• Antelope Release 5.10 Linux CentOS release 7.6.1810 (Core) 3.10.0 2020-05-12

 

NAME

mkmk - print prototype Antelope makefile

SYNOPSIS

mkmk [ - ]

DESCRIPTION

This command just prints the prototype Makefile from $ANTELOPE/data/templates/antelopemakefile_template. It is useful when a creating a new Makefile; from within vi, for instance, type :!mkmk -<cr>.

This prototype Makefile has a lot of comments, to assist in customizing it to your specifications. These comments need to be removed from the ultimate Makefile. If you specify an option (any option) to mkmk, only the rules are printed; most of the comments are omitted.

The prototype Makefile has sections for creating a simple c application, a simple Fortran application, a static library and a dynamic library. Man pages, and perl and tcl/tk scripts need no special commands in the Makefile to create them, they need only be mentioned in the MAN= and BIN= macro so they get made and installed.

For example, in a Makefile for a perl script pearl, use following lines:

BIN=pearl
MAN1=pearl.1
include $(ANTELOPEMAKE)

Name the perl source file pearl.xpl, and this Makefile will create the executable and install it and its man page.

Simple, single source file c and fortran programs don't need an explicit rule either -- all that's really required are the following:

BIN=fort
MAN1=fort.1
ldlibs=$(DBLIBS)
include $(ANTELOPEMAKE)

FILES

$ANTELOPE/data/templates/Makefile

SEE ALSO

antelopemakefile(5)

BUGS AND CAVEATS

You must delete some of the lines (and all of the comments) from the generated makefile.

AUTHOR

Daniel Quinlan
Printer icon