Path: utzoo!censor!geac!jtsv16!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.microport Subject: Re: Default rules for make Message-ID: <1989Nov10.011145.1229@virtech.uucp> Date: 10 Nov 89 01:11:45 GMT References: <1989Nov8.033800.5104@monymsys.uucp> Organization: Virtual Technologies Inc. Lines: 27 In article <1989Nov8.033800.5104@monymsys.uucp>, david@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 | +-----------------------------------------------------------------------+