Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!ccu.umanitoba.ca!herald.usask.ca!alberta!ubc-cs!uw-beaver!mit-eddie!wuarchive!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!msuinfo!news From: lutak@kira.msu.edu (Tak-Ko Lu) Newsgroups: comp.unix.questions Subject: Specifying path in MAKE facility Message-ID: <1991Feb13.185418.19069@msuinfo.cl.msu.edu> Date: 13 Feb 91 18:54:18 GMT Sender: news@msuinfo.cl.msu.edu Organization: Michigan State University, College of Engineering Lines: 20 I need to put my source codes in three different directories, say d1, d2, and d3 and put my makefile in one of those directories, say d1. My questions are: 1) How can I specify the paths so that make knows some files were put in d2 and d3 instead of d1? 2) How can I force the output of the compiler, i.e. the object files, to be put in the working directory, i.e. d1, if I use implicit rules to specify the dependencies? 3) How can I force the linker to link files under the working directory, i.e. d1? Please mail me the answer if anbody knows how to solve my problems? Thanks in advance!!! I really appreciate your help!!! p.s. my email address: lutak@frith.egr.msu.edu