Mail Archives: djgpp/1996/09/06/03:57:36
Xref: | news2.mv.net comp.os.msdos.djgpp:8339
|
From: | Roland Exler <R DOT Exler AT jk DOT uni-linz DOT ac DOT at>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Makefiles on DOS
|
Date: | Fri, 06 Sep 1996 08:19:15 -0700
|
Organization: | Institute for el. Measurement, University of Linz, Austria
|
Lines: | 26
|
Message-ID: | <323040F3.2DF0@jk.uni-linz.ac.at>
|
References: | <50nndq$kv9 AT newsgate DOT sps DOT mot DOT com>
|
NNTP-Posting-Host: | sensor4.emt.uni-linz.ac.at
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Richard Memory wrote:
> If I don't use macros in the command (ie. hardcode everything), and
> have everything all in one directory it works fine. If I try to
> start using mutiple directorys for everything, for example, a source
> directory, an object file directory, an executable directory, etc.
> the make utility will stop. I have tried a variety of different
> things with no success. My guess is that make doesn't like the
> backslash that dos uses, but I don't know how to get around it.
'make' coming with djgpp is a unix-like program, so using slashes is the
better way. You should also use slashes in your programs eg. for
#include directives, they compile fine with most dos C-compilers and
you've less to change switching to unix-environment.
Roland
PS: on calls to dos-commands like copy use the 'subst' feature of make
like this: copy $(subst /,\,$^) $(subst /,\,$@)
+---------------------------------------+---------------------------+
I Roland Exler I EMAIL: I
I Universitaet Linz I R DOT Exler AT jk DOT uni-linz DOT ac DOT at I
I Institut fuer Elektrische Messtechnik I I
I Altenbergerstr. 69 I Phone: I
I A-4040 Linz, AUSTRIA I + 43 732 2468 9205 I
+---------------------------------------+---------------------------+
- Raw text -