delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/03/09/04:15:19.1

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Martin Stromberg <eplmst AT lws256 DOT emw DOT erisoft DOT se>
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: <c2k0ki$g12$2@antares.lu.erisoft.se>
References: <c2jb0g$lkd$1 AT agate DOT berkeley DOT edu>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019