X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Martin Stromberg Newsgroups: comp.os.msdos.djgpp Subject: Re: makefile, how to compile into bin directory? Date: 9 Mar 2004 08:52:34 GMT Organization: Ericsson Erisoft AB, Sweden Lines: 26 Message-ID: References: NNTP-Posting-Host: lws256.emw.erisoft.se User-Agent: tin/1.4.7-20030322 ("Suggestions") (UNIX) (SunOS/5.6 (sun4u)) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com nospam AT none DOT com wrote: : I have a simple makefile as follow: : ================================== : all: $(MAIN_TARGET) : $(MAIN_TARGET): hello.o : hello.o: hello.c : VPATH = include src bin : ================================== : how do i configure this makefile so that the output files, .o and .exe : files goes into a bin sub directory? my .c files are in src directory I think the idea is to be in the bin directory when you compile and let make find the sources with the help of VPATH. Right, MartinS