Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!labrea!polya!hoelzle From: hoelzle@polya.Stanford.EDU (Urs Hoelzle) Newsgroups: comp.sys.mac.programmer Subject: MPW Make Keywords: Make directory dependencies MPW 3.0 Message-ID: <7084@polya.Stanford.EDU> Date: 22 Feb 89 23:49:25 GMT Organization: Stanford University Lines: 33 I have a large program and want to keep the source in several folders, the objects in another folder. For my make file, I tried the following: ># home directory >SELFDIR = Self:Self: ># object file directory >OBJ = {SELFDIR}bin: > ># directory dependency rule (left hand side = source directories) >{OBJ} f {SELFDIR}compiler: {SELFDIR}lookup: {SELFDIR}memory: 6 > {SELFDIR}parser: {SELFDIR}runtime: {SELFDIR}zone: > >.c.o f .c > CPlus {CPOptions} {Default}.c -o {OBJ}{Default}.c.o The idea is that when I have a dependency rule like {OBJ}abort.c.o f abort.c abort.h make would search for abort.c and abort.h in the source directories. However, this does not work; running make -s gives the dependencies >Self:Self:bin:abort.c.o > abort.c > abort.h > Self:Self:runtime:abort.c and make complains it doesn't find abort.c and abort.h. What's wrong??? aTdHvAaNnKcSe, -Urs