Xref: utzoo comp.unix.microport:3827 comp.unix.i386:1138 Path: utzoo!attcan!uunet!wuarchive!udel!princeton!njsmu!mccc!monymsys!david From: david@monymsys.uucp (David Kozinn) Newsgroups: comp.unix.microport,comp.unix.i386 Subject: Default rules for make Message-ID: <1989Nov8.033800.5104@monymsys.uucp> Date: 8 Nov 89 03:38:00 GMT Reply-To: david@monymsys.UUCP (David Kozinn) Followup-To: comp.unix.microport Organization: MONY Financial Services, Microcomputer Systems, Teaneck, NJ Lines: 22 From somewhere in the dark recesses of my mind, I seem to remember that there's some way to specify what some of the rules are that make uses. I know that in the absence of a [Mm]akefile, there are a set of rules that are used to determine how to build a program. The default set of rules defines something like : .c.o: $(CC) ..... blah blah 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. 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. -- David Kozinn | UUCP: {rutgers | uunet}!cbmvax!cgh!monymys!david MONY Financial Services | UUCP: ...!rutgers!princeton!mccc!monymsys!david Glenpointe Center West | Internet: cgh!monymsys!david@manta.pha.pa.us Mail Drop 75-14 | GEnie: D.KOZINN Teaneck, NJ 07666-6888 | Telephone: +1-201-907-6990