Path: utzoo!utgpu!watserv1!watmath!att!ima!dirtydog!karl From: karl@ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Generating a demo version from production code Message-ID: <1990Nov18.004032.10424@dirtydog.ima.isc.com> Date: 18 Nov 90 00:40:32 GMT References: <6734@uceng.UC.EDU> Sender: news@dirtydog.ima.isc.com (NEWS ADMIN) Reply-To: karl@ima.isc.com (Karl Heuer) Organization: Interactive Systems Lines: 11 In article <6734@uceng.UC.EDU> dmocsny@minerva.che.uc.edu (Daniel Mocsny) writes: >Since I can't find a compiler flag that can create an object file with the >name demo_smurf.o from a source named smurf.c, is that what I have to do? No doubt someone is about to recommend "cc -c smurf.c -o demo_smurf.o" without realizing that it's a non-portable Berkeleyism. Yes, I recommend you use "cc -c smurf.c && mv smurf.o demo_smurf.o". Since this destroys any "smurf.o" you already have, you may want to consider making the other target with "cc -c smurf.c && mv smurf.o real_smurf.o" so there's no "smurf.o" target. Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint