Default rules for make
Conor P. Cahill
cpcahil at virtech.uucp
Fri Nov 10 12:11:45 AEST 1989
In article <1989Nov8.033800.5104 at monymsys.uucp>, david at monymsys.uucp (David Kozinn) writes:
> Here's the problem: I'm running Microport Sys V/386 and using the Green Hills
> C compiler. I would prefer that instead of the default value of "cc" being
> used for the $CC macro that gcc be used instead. For the time being, when I
> make something I've done something like "make CC=gcc foobar", which works just
> fine, but is a minor annoyance.
How about: CC=gcc; export CC # in your .profile.
So: make fobar # will use gcc for $(CC)
This should work fine under system V/386.
> I've looked around for a makefile in some
> place logical (like /etc or /usr/lib) but can't find one. Aside from creating
> an alias (or equivalent) for make, is there some simple way that I can change
> these defaults? Thanks.
There isn't a default makefile on the system, the other rules are built into
make itself, so to modify them you need to be able to recompile make.
--
+-----------------------------------------------------------------------+
| Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 !
| Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 |
+-----------------------------------------------------------------------+
More information about the Comp.unix.microport
mailing list