problem with make suffix rules
Doug Gwyn
gwyn at smoke.BRL.MIL
Tue Jul 24 06:51:04 AEST 1990
In article <862 at massey.ac.nz> ARaman at massey.ac.nz (A.V. Raman) writes:
-In the att universe,
-make tries
- cc -O program.c -o program
-instead of
- cc -c program.c
-which is what the suffix rule tells it to do.
No, the built-in .c: rule is used, not the .c.o: then .o: rules that
your Makefile specified. What you should probably do is to quit
trying to override the built-in rules and instead set CFLAGS=
-What's more, when I don't have a Makefile at all, and type
-`make program' (ucb)
-make doesn't apply the default suffix rule to run
-cc program.c -o program
-Instead, it comes up with the same message as before.
That's simply a difference in the behavior of the two versions of "make".
More information about the Comp.unix.questions
mailing list