From: geoffr2 AT aol DOT com (Geoff Robinson) Newsgroups: comp.os.msdos.djgpp Subject: How Can Makefiles Handle Source File in Extraneous Directories? Date: 13 Aug 2003 08:07:44 -0700 Organization: http://groups.google.com/ Lines: 47 Message-ID: <978b35e2.0308130707.1f7d42bf@posting.google.com> NNTP-Posting-Host: 192.35.35.34 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1060787265 29594 127.0.0.1 (13 Aug 2003 15:07:45 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 13 Aug 2003 15:07:45 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello all, I am trying to compile a number of source code files into one executable. They cross multiple directories. Using the makefile template I have for djgpp, I'm having problems. I have to fully specify the file not in my local directory. The object file created from that source file is moved into my local directory. The compiler assumes the object file is in the other directory instead. Does anyone know how I would resolve this issue? I appreciate any help in advance. Snippets of my makefile to follow. regards, Geoff SYSDIR= C:\djgpp # CINC1= $(SYSDIR)\include CINC2= $(SYSDIR)\include\libc CINC3= $(SYSDIR)\include\libm CINC4= $(SYSDIR)\include\machine CINC5= $(SYSDIR)\include\netinet CINC6= $(SYSDIR)\include\sys CCINC= $(SYSDIR)\lang\cxx CLIB= $(SYSDIR)\lib CBIN= $(SYSDIR)\bin # VAR = directory path # #MV4INC= $(VAR)\include_windows MV4INC= h:\dir\include MV4INCPROJECT= D:\projects\TestProject DEFAULTUSERDIR= d:\data\gsrobins MV4LIB= h:\dir\lib # TARGET= TestProject.exe # CSOURCES=\ TestProject.C\ d:\data\geoff\MyModelName.C # SOURCES= $(CSOURCES) # OBJECTS=$(CSOURCES:.C=.o)