Path: utzoo!censor!geac!jtsv16!uunet!mcsun!unido!mikros!mwtech!martin From: martin@mwtech.UUCP (Martin Weitzel) Newsgroups: comp.unix.microport Subject: Re: Default rules for make Message-ID: <464@mwtech.UUCP> Date: 10 Nov 89 10:16:51 GMT References: <1989Nov8.033800.5104@monymsys.uucp> Reply-To: martin@mwtech.UUCP (Martin Weitzel) Organization: MIKROS Systemware, Darmstadt/W-Germany Lines: 16 In article <1989Nov8.033800.5104@monymsys.uucp> david@monymsys.UUCP (David Kozinn) writes: [stuff deleted] >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 [stuff deleted] To my knowledge, most implementations of make have this rules "compiled in". But besides defining CC as shell variable and *exporting* it (which makes it unnecessary to repeat it on every call to make), many implementations of make support an include mechanism (sometimes undocumented, but try, it might work though). Simply say: include filename (no # like in C, no "..." around filame). So, you may set up some central file with your prefered suffix rules anywhere and include it in project specific Makefiles. The latter approach is most useful, if you have to change something not yet "parametrized" by the use of make-macros (= exported shell variables).