Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!mit-eddie!uw-beaver!tektronix!orca!tekecs!doghouse!snoopy From: snoopy@doghouse.gwd.tek.com (Snoopy) Newsgroups: comp.unix.wizards Subject: Re: Symbolic Links Message-ID: <9141@tekecs.TEK.COM> Date: Tue, 15-Sep-87 16:26:37 EDT Article-I.D.: tekecs.9141 Posted: Tue Sep 15 16:26:37 1987 Date-Received: Fri, 18-Sep-87 06:09:37 EDT References: <8731@brl-adm.ARPA> <2789@ulysses.homer.nj.att.com> Sender: nobody@tekecs.TEK.COM Reply-To: snoopy@doghouse.gwd.tek.com (Snoopy) Organization: The Daisy Hill Puppy Farm Lines: 28 Keywords: Makefile In article <2927@ulysses.homer.nj.att.com> ekrell@hector (Eduardo Krell) writes: >In article <9091@tekecs.TEK.COM> snoopy@doghouse.gwd.tek.com (Snoopy) writes: >>Why is -I the "right" way and #define [s.b. #ifdef] the "wrong" way? >Because it doesn't require the "#ifdef KERNEL" kludge It may be a kludge, it may also be necessary at times. What if you really want/need to have a #include depend on a define? In the KERNEL case, -I is easy, since the non-kernel case is typically a standalone utility which has a seperate makefile (or at *least* a seperate target) Doing if/then/else in a makefile isn't as easy (assuming it's even possible) as doing it in C. Having a seperate target is a worse kludge than the #ifdef you were trying to avoid in the first place. >Why, you ask?. Because if you have Reisser's cpp (as most do), then the >rules for searching "" files is different from the one in K&R. Sounds like it's Reisser's cpp that is broken. (Seems like I've heard that before...) We're getting a bit off the track gang, time for: ln -s discussion link/symbolic/bsd.vs.korn Snoopy tektronix!doghouse.gwd!snoopy snoopy@doghouse.gwd.tek.com