makefile command description

TH Foregger thf at bentley.UUCP
Mon Mar 25 08:25:40 AEST 1985


The author of makefile is Mike Bianchi and he has asked me to post the following
more detailed description of what his command actually
does. 


The "makefile" command in the AT&T toolchest does provide include file
dependencies, but it also does more.
	If the following conditions are met, it will construct a correct
makefile:
<>	The current directory contains *.c, *.s, *.l, *.y and include files
which compile without error.
<>	There is one or more *.[csly] which creates a main() routine.
<>	The main routines are named for the file they are in;  e.g. glurp.c
contains main() and creates the glurp command.

	The resultant make file will glue together the approriate *.o's to
create the commands.
	A commenting convention allows the top and bottom of the makefile
to be preserved, so you can define make variables and targets of your own.
					Mike Bianchi


Tom Foregger at bentley!thf



More information about the Comp.lang.c mailing list