🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c++
Article #19

Re: Make and C++

#19
From: Ken Latham
Date: Thu, 20 Feb 1986 06:45
25 lines
1300 bytes
> How do you tell make to use the C++ translator instead
> of the C compiler if both C and C++ programs end in
> the same suffix (.c).  I wouldn't want to run my
> C programs through the C++ translator unless it produced
> identical results.
> -- 
> 
> Larry Cipriani	cbsck!lvc


	If you look at the internal rules of make, ( you know those
strange looking rules like .c~.a :-) )  They all use ${CC} as the name of
the processor for any  .c  files.  All you have to do is set.

CC=C++; export CC

before you make and Voila!

			Ken Latham ( a MAKE artist )

			AT&T-IS (via AGS Inc.), Orlando , FL
			uucp: ihnp4!bsdpkh!latham

P.S.
    For more extraordinary circumstances you could replace CC by a shell.
Technical Details
Message-ID: <170@bsdpkh.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!akguc!codas!bsdpkh!latham
References: <1984@cbsck.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site bsdpkh.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!akguc!codas!bsdpkh!latham
From: latham@bsdpkh.UUCP (Ken Latham)
Newsgroups: net.lang.c++
Subject: Re: Make and C++
Message-ID: <170@bsdpkh.UUCP>
Date: Thu, 20-Feb-86 01:45:55 EST
Article-I.D.: bsdpkh.170
Posted: Thu Feb 20 01:45:55 1986
Date-Received: Fri, 21-Feb-86 07:24:22 EST
References: <1984@cbsck.UUCP>
Organization: AT&T-IS (SDSS), Orlando Fl.
Lines: 25