home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD2.mdf
/
c
/
tools
/
make
/
nmake
/
rules.h
< prev
Wrap
Text File
|
1987-07-21
|
1KB
|
37 lines
/* default rules for make */
/*
1. Modifiy NDRULES to reflect the total number of rules...
2. Enter rules in the following format
"source-extension","object-extension","rule",NULL,
Example: for a one pass fortran compiler, equivalent to the
rule in a makefile .for.obj :; profort $(FFLAGS) $*
use --
"for","obj","profort $(FFLAGS) $* ",NULL,
and update NDRULES.
3. Note that the default rules are searched from top to bottom in this
list, and that within default rules, macros are ignored if not defined
(You may specify FFLAGS in the rule without requiring the user to
define FFLAGS in his/her makefile)
4. You may specify a multiple pass compiler with these rules for .c.obj
rules only. To specify other multiple pass compilers, see the
documentation.
*/
#define NDRULES 3
struct rulerec dflt_rules[NDRULES];
char *def_list[] =
{
#if MSC
"c","obj","msc $(CFLAGS) $*;",NULL,
#else
"c","obj","cc $(CFLAGS) $*",NULL,
#endif
"asm","obj","masm $* ,$*; $(MFLAGS)",NULL,
"exe","com","exe2bin $*","copy $*.bin $*.com",NULL
};