From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a2955b0d0322a323 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-16 06:30:23 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: [ot] making stuff Date: 16 Jul 2002 06:30:22 -0700 Organization: http://groups.google.com/ Message-ID: <4519e058.0207160530.622e02ba@posting.google.com> References: NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1026826223 31440 127.0.0.1 (16 Jul 2002 13:30:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 Jul 2002 13:30:23 GMT Xref: archiver1.google.com comp.lang.ada:27149 Date: 2002-07-16T13:30:23+00:00 List-Id: "chris.danx" wrote in message news:... > is it possible to generate makefiles that will work on both unix/linux and > windows? I wouldn't normally ask, but XML/Ada has to have separate files > for building on windows and unices and this has confused me. Why can't you > just have 1 makefile file for both targets? Is it some XML/Ada specific > issue or is there some other reason? It is quite possible. However, if you are doing anything complicated, it can get quite difficult. For one thing, windows uses a different character to separate directories in paths ('\' instead of '/'). Windows "make"s can generally do the translation, but if you need to call a DOS program, it will need '\'. Make doesn't generally like that much, since that is its escape character, so you will have to escape it a number of times (possibly 0) depending on where it appears and what version of windows make you are using. If you want to do anything really complicated, you will end up needing a shell. To make this portable, you either need a bunch of OS conditional make code, or you will probably have to stick to "sh" for external shells (which is generally the default on Unix, and not the default on PC's). In short, its possible for simple things, and a major pain in the kiester for anything complicated. That being said, I suspect the main reason you usually see multiple makes is that the Unix people don't have a Windows box to test their make's on, and the Windows people don't have a Unix box to test their makes on. -- T.E.D. Home - mailto:dennison@telepath.com (Yahoo: Ted_Dennison) Homepage - http://www.telepath.com/~dennison/Ted/TED.html