From esmooth9117@yahoo.com Tue Jan 02 10:15:09 2001 Received: from web11101.mail.yahoo.com ([216.136.131.148]) by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian)) id 14DT9Z-0006mr-00 for ; Tue, 02 Jan 2001 10:15:09 -0500 Message-ID: <20010102151507.93879.qmail@web11101.mail.yahoo.com> Received: from [128.217.83.5] by web11101.mail.yahoo.com; Tue, 02 Jan 2001 07:15:07 PST Date: Tue, 2 Jan 2001 07:15:07 -0800 (PST) From: Eric Herring Subject: Gnu Make To: help-make@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: I have a problem with calling makefiles within a makefile. The toplevel makefile is calling these makefile using a for loop. The problem is whenever a low level makefile has an error and reports an error, the top level make continues with the next make in the loop. I need the top level makefile to stop inside the for loop when a low level make has an error. Thanks In Advance __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ From fjh@cs.mu.oz.au Tue Jan 02 10:44:38 2001 Received: from mumnunah.cs.mu.oz.au ([203.19.244.130]) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14DTc4-00087t-00 for ; Tue, 02 Jan 2001 10:44:37 -0500 Received: from hg.cs.mu.oz.au (root@hg.cs.mu.OZ.AU [128.250.25.19]) by mumnunah.cs.mu.OZ.AU with ESMTP id CAA29535; Wed, 3 Jan 2001 02:44:30 +1100 (EST) Received: (from fjh@localhost) by hg.cs.mu.oz.au (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id CAA19592; Wed, 3 Jan 2001 02:44:30 +1100 Date: Wed, 3 Jan 2001 02:44:30 +1100 From: Fergus Henderson To: Eric Herring Cc: help-make@gnu.org Subject: Re: Gnu Make Message-ID: <20010103024429.A16933@hg.cs.mu.oz.au> References: <20010102151507.93879.qmail@web11101.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <20010102151507.93879.qmail@web11101.mail.yahoo.com> Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: On 02-Jan-2001, Eric Herring wrote: > I have a problem with calling makefiles within a > makefile. The toplevel makefile is calling these > makefile using a for loop. The problem is whenever a > low level makefile has an error and reports an error, > the top level make continues with the next make in the > loop. I need the top level makefile to stop inside the > for loop when a low level make has an error. Simple solution: SUBDIRS = a b c d subdirs: for $$dir in $(SUBDIRS); do \ cd $$dir && $(MAKE) || exit 1; \ done Note the "|| exit 1", which terminates the loop. Now, the problem with the simple solution is that it stops too early in the case of `make -k'. So another solution is as follows: SUBDIRS = a b c d subdirs: $(SUBDIRS:%=%.subdir) %.subdir: cd $* && $(MAKE) -- Fergus Henderson | "I have always known that the pursuit | of excellence is a lethal habit" WWW: | -- the last words of T. S. Garp. From psmith@baynetworks.com Tue Jan 02 11:54:10 2001 Received: from ns1.baynetworks.com ([134.177.3.20] helo=baynet.baynetworks.com) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14DUhN-0002Xw-00 for ; Tue, 02 Jan 2001 11:54:09 -0500 Received: from mailhost.BayNetworks.COM (h8754.s84f5.BayNetworks.COM [132.245.135.84]) by baynet.baynetworks.com (8.9.1/8.9.1) with ESMTP id IAA21827 for ; Tue, 2 Jan 2001 08:52:32 -0800 (PST) Received: from pobox.engeast.BayNetworks.COM (pobox.engeast.baynetworks.com [192.32.61.6]) by mailhost.BayNetworks.COM (8.9.1/8.8.8) with ESMTP id LAA24958 for ; Tue, 2 Jan 2001 11:54:07 -0500 (EST) Received: from lemming.engeast.baynetworks.com (lemming [192.32.150.127]) by pobox.engeast.BayNetworks.COM (SMI-8.6/BNET-97/04/24-S) with SMTP id LAA01535; Tue, 2 Jan 2001 11:54:06 -0500 for Received: from psmith by lemming.engeast.baynetworks.com with local (Exim 3.16 #1 (Debian)) id 14DUgY-0002JA-00; Tue, 02 Jan 2001 11:53:18 -0500 From: "Paul D. Smith" To: Eric Herring Cc: help-make@gnu.org Subject: Re: Gnu Make References: <20010102151507.93879.qmail@web11101.mail.yahoo.com> In-Reply-To: Eric Herring's message of "Tue, 2 Jan 2001 07:15:07 -0800 (PST)" Reply-To: psmith@gnu.org Organization: GNU's Not Unix! Date: 02 Jan 2001 11:53:18 -0500 Message-ID: Lines: 46 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: %% Eric Herring writes: eh> I have a problem with calling makefiles within a eh> makefile. The toplevel makefile is calling these eh> makefile using a for loop. The problem is whenever a eh> low level makefile has an error and reports an error, eh> the top level make continues with the next make in the eh> loop. I need the top level makefile to stop inside the eh> for loop when a low level make has an error. The answer is, don't do it with a for loop. Use make features! Instead of this: SUBDIRS = foo bar biz baz all: @for d in $(SUBDIRS); do cd $$d && $(MAKE); done Do this: SUBDIRS = foo bar biz baz .PHONY: $(SUBDIRS) all: $(SUBDIRS) $(SUBDIRS): cd $@ && $(MAKE) This will fail as soon as something breaks under normal use, and will also work correctly with -k. And, as an added bonus, it will work _much_ better with parallel builds should you ever want to try them. If you have some dependency between the directories, just declare them as you normally would; if you can't build directory foo until after directory bar, add: foo: bar to the makefile. -- ------------------------------------------------------------------------------- Paul D. Smith Find some GNU make tips at: http://www.gnu.org http://www.paulandlesley.org/gmake/ "Please remain calm...I may be mad, but I am a professional." --Mad Scientist From VardhanVarma@mailandnews.com Tue Jan 02 22:08:40 2001 Received: from mailgate2.cadence.com ([158.140.2.31]) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14DeI4-0004bE-00 for ; Tue, 02 Jan 2001 22:08:40 -0500 Received: from basant.cadence.com (basant.Cadence.COM [158.140.222.73]) by mailgate2.Cadence.COM (8.9.3/8.9.3) with ESMTP id TAA02504; Tue, 2 Jan 2001 19:08:35 -0800 (PST) From: VardhanVarma@mailandnews.com Received: from basant (basant [158.140.222.73]) by basant.cadence.com (8.8.8/8.8.5) with ESMTP id IAA23289; Wed, 3 Jan 2001 08:38:39 +0531 (IST) Message-Id: <200101030307.IAA23289@basant.cadence.com> To: Eric Herring cc: help-make@gnu.org Reply-To: VardhanVarma@mailandnews.com Subject: Re: Gnu Make In-Reply-To: Your message of "Tue, 02 Jan 2001 07:15:07 PST." <20010102151507.93879.qmail@web11101.mail.yahoo.com> Date: Wed, 03 Jan 2001 08:38:39 +0531 X-Received: By mailgate2.Cadence.COM as TAA02504 at Tue Jan 2 19:08:35 2001 Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: > makefile using a for loop. The problem is whenever a > low level makefile has an error and reports an error, > the top level make continues with the next make in the > loop. I need the top level makefile to stop inside the > for loop when a low level make has an error. After the obvious suggestion to search the net for a paper titled "Recursive Make Considered Harmful", i have a few feelings: 1. Check your makefile. Most probably you are using a shell script like this all: for x in $DIRS\ (cd $x ; make) This will of course not work, since lowerlevel's make's retgurn code is being ignored. Instead try something like this: (cd $x ; make ; if $? != 0 exit 1 ) (suit to your particular /bin/sh ) 2. something like this i write a macro to have each directory in $DIRS with a _dir extension ( e.g. (src lib) ==> (src_dir lib_dir) And have rule such as all_dir: $(DIRS_dir) $(DIRS_dir): cd $@ && make @@ $@ is name of target, if my memory serves me right. > I have a problem with calling makefiles within a > makefile. The toplevel makefile is calling these > > Thanks In Advance > > __________________________________________________ > Do You Yahoo!? > Yahoo! Photos - Share your holiday photos online! > http://photos.yahoo.com/ > > _______________________________________________ > Help-make mailing list > Help-make@gnu.org > http://mail.gnu.org/mailman/listinfo/help-make From sankar@divine.migv.mot.com Wed Jan 03 09:23:49 2001 Received: from motgate.mot.com ([129.188.136.100]) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14DopR-0004NP-00 for ; Wed, 03 Jan 2001 09:23:49 -0500 Received: [from pobox4.mot.com (pobox4.mot.com [10.64.251.243]) by motgate.mot.com (motgate 2.1) with ESMTP id HAA03262 for ; Wed, 3 Jan 2001 07:23:48 -0700 (MST)] Received: [from nadhi.migv.mot.com ([217.2.42.15]) by pobox4.mot.com (MOT-pobox4 2.0) with ESMTP id HAA15359 for ; Wed, 3 Jan 2001 07:23:46 -0700 (MST)] Received: from divine.migv.mot.com (divine.migv.mot.com [217.2.42.20]) by migv.mot.com (8.9.3/8.9.3) with ESMTP id TAA28233 for ; Wed, 3 Jan 2001 19:58:37 +0530 (IST) Received: (from sankar@localhost) by divine.migv.mot.com (8.9.1/8.9.1) id TAA28935 for help-make@gnu.org; Wed, 3 Jan 2001 19:57:30 +0530 (IST) Date: Wed, 3 Jan 2001 19:57:30 +0530 From: Sankaranarayanan K V To: help-make@gnu.org Subject: Multi-arch builds and the -n option Message-ID: <20010103195730.B12846@divine.migv.mot.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: Motorola India Electronics Ltd. X-Address: Golf View Campus, Wind Tunnel Road, Murugesh Palya, Bangalore, Karnataka, India 560 017" X-Phone: +91-80-527-1613 ext 3046 X-Fax: +91-80-527-1611 Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: Hi, I was trying out the example referred to from http://paulandlesley.org/gmake/multi-arch.html and available as: http://paulandlesley.org/gmake/multi-example.tar.gz I am using GNU make 3.79.1 on a Solaris 2.6. 'gmake -n' gives errors. Why is this so? Output below: $ gmake -n [ -d _common ] || mkdir -p _common gmake --no-print-directory -C _common -f /users/sankar/BACKUP/work/learning/make/paul/example/Makefile SRCDIR=/users/sankar/BACKUP/work/learning/make/paul/example sed 's/@VERSION@/1.0/g' /users/sankar/BACKUP/work/learning/make/paul/example/version.c.in > version.c : [ -d _SunOS ] || mkdir -p _SunOS gmake --no-print-directory -C _SunOS -f /users/sankar/BACKUP/work/learning/make/paul/example/Makefile SRCDIR=/users/sankar/BACKUP/work/learning/make/paul/example gmake[1]: *** No rule to make target `version', needed by `all'. Stop. gmake: *** [_SunOS] Error 2 Regards Sankar -- Sankaranarayanan K. V. | sankar@miel.mot.com Motorola India Electronics Ltd | http://www.mot.com/miel From sankar@divine.migv.mot.com Thu Jan 04 00:37:47 2001 Received: from motgate.mot.com ([129.188.136.100]) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14E35u-0004oK-00 for ; Thu, 04 Jan 2001 00:37:46 -0500 Received: [from pobox2.mot.com (pobox2.mot.com [136.182.15.8]) by motgate.mot.com (motgate 2.1) with ESMTP id WAA11534 for ; Wed, 3 Jan 2001 22:37:45 -0700 (MST)] Received: [from nadhi.migv.mot.com ([217.2.42.15]) by pobox2.mot.com (MOT-pobox2 2.0) with ESMTP id WAA12765 for ; Wed, 3 Jan 2001 22:37:43 -0700 (MST)] Received: from divine.migv.mot.com (divine.migv.mot.com [217.2.42.20]) by migv.mot.com (8.9.3/8.9.3) with ESMTP id LAA05729 for ; Thu, 4 Jan 2001 11:12:35 +0530 (IST) Received: (from sankar@localhost) by divine.migv.mot.com (8.9.1/8.9.1) id LAA07153 for help-make@gnu.org; Thu, 4 Jan 2001 11:11:29 +0530 (IST) Date: Thu, 4 Jan 2001 11:11:28 +0530 From: Sankaranarayanan K V To: help-make@gnu.org Subject: Generated Makefiles and multi-arch builds Message-ID: <20010104111128.C12846@divine.migv.mot.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: Motorola India Electronics Ltd. X-Address: Golf View Campus, Wind Tunnel Road, Murugesh Palya, Bangalore, Karnataka, India 560 017 X-Phone: +91-80-527-1613 ext 3046 X-Fax: +91-80-527-1611 Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: Hi, I am trying to use the multi-architecture build scheme described in http://paulandlesley.org/gmake/multi-arch.html coupled with Makefile generation. I am facing problems getting it right. For example, the following change wreaks havoc: Instead of Makefile: ; in the target.mk file, I tried to put: Makefile: Makefile.in cp Makefile.in Makefile and things stop working. The lines above cause the following % :: ; rule to get fired. Is there a way out? Regards Sankar -- Sankaranarayanan K. V. | sankar@miel.mot.com Motorola India Electronics Ltd | http://www.mot.com/miel From surfstud@san.rr.com Fri Jan 05 15:30:40 2001 Received: from pop2.san.rr.com ([24.25.193.33] helo=pop1.san.rr.com) by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian)) id 14EdVY-0006yM-00 for ; Fri, 05 Jan 2001 15:30:40 -0500 Received: from excalibur ([204.210.50.231]) by pop1.san.rr.com (Post.Office MTA v3.5.3 release 223 ID# 0-59787U250000L250000S0V35) with SMTP id com for ; Fri, 5 Jan 2001 12:29:57 -0800 From: "Derick" To: Subject: Multiple Results for One Dependency Date: Fri, 5 Jan 2001 12:29:14 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: Hello... I was wondering if anyone could give me some insight (==help). I am writing a makefile that has a SINGLE command that generates multiple output files. The difficulty I am running into is that the command is executed for each dependency, where the command actually takes care of all of them in one run. Specifically (simplified greatly): all: MyStuff.a GENERATED_CXX=MyStuff.cpp MyStuff_skel.cpp $(GENERATED_CXX) : MyStuff.idl $(IDLGEN) $(IDLGENFLAGS) $< MyStuff.a : $(patsubst %.cpp,%.o,$(GENERATED_CXX)) # archive them here with the usual %.o:%.cpp rule elsewhere. What ends up happening is that $(IDLGEN) is run twice (once for MyStuff.cpp, once for MyStuff_skel.cpp), where I only want it done once. Thanks Derick From psmith@baynetworks.com Fri Jan 05 15:42:23 2001 Received: from ns5.baynetworks.com ([194.133.90.101] helo=scallop.baynetworks.com) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14Edgs-0007fX-00 for ; Fri, 05 Jan 2001 15:42:22 -0500 Received: from mailhost.BayNetworks.COM (h8754.s84f5.BayNetworks.COM [132.245.135.84]) by scallop.baynetworks.com (8.9.1/8.9.1) with ESMTP id VAA19274 for ; Fri, 5 Jan 2001 21:49:09 +0100 (MET) Received: from pobox.engeast.BayNetworks.COM (pobox.engeast.baynetworks.com [192.32.61.6]) by mailhost.BayNetworks.COM (8.9.1/8.8.8) with ESMTP id PAA18856 for ; Fri, 5 Jan 2001 15:41:42 -0500 (EST) Received: from lemming.engeast.baynetworks.com (lemming [192.32.150.127]) by pobox.engeast.BayNetworks.COM (SMI-8.6/BNET-97/04/24-S) with SMTP id PAA06197; Fri, 5 Jan 2001 15:41:41 -0500 for Received: from psmith by lemming.engeast.baynetworks.com with local (Exim 3.16 #1 (Debian)) id 14Edg6-0005Bh-00; Fri, 05 Jan 2001 15:41:34 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14934.12669.951539.913581@lemming.engeast.baynetworks.com> Date: Fri, 5 Jan 2001 15:41:33 -0500 To: "Derick" Cc: Subject: Re: Multiple Results for One Dependency In-Reply-To: References: X-Mailer: VM 6.89 under Emacs 20.7.2 From: "Paul D. Smith" Reply-To: "Paul D. Smith" Organization: GNU's Not Unix! Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: %% "Derick" writes: d> Hello... I was wondering if anyone could give me some insight d> (==help). I am writing a makefile that has a SINGLE command that d> generates multiple output files. The difficulty I am running into d> is that the command is executed for each dependency, where the d> command actually takes care of all of them in one run. d> Specifically (simplified greatly): d> all: MyStuff.a d> GENERATED_CXX=MyStuff.cpp MyStuff_skel.cpp d> $(GENERATED_CXX) : MyStuff.idl d> $(IDLGEN) $(IDLGENFLAGS) $< That's what this syntax is defined to do; multiple targets in a single rule don't specify all are made from a single invocation, they specify that each target can be built using the same script (but individual invocations). IOW, this: foo bar: baz some command is just syntactic sugar for this: foo: baz some command bar: baz some command See the GNU make manual. d> with the usual %.o:%.cpp rule elsewhere. What ends up happening is that d> $(IDLGEN) is run twice (once for MyStuff.cpp, once for MyStuff_skel.cpp), d> where I only want it done once. You have to use pattern rules for this. GNU make (and only GNU make) has a special feature where multiple patterns on the left-hand side of a pattern rule means that a single invocation of the command creates all the targets at once, just as you want: %.cpp %_skel.cpp : %.idl $(IDLGEN) $(IDLGENFLAGS) $< all: MyStuff.a GENERATED_CXX=MyStuff.cpp MyStuff_skel.cpp MyStuff.a : $(GENERATED_CXX:.cpp=.o) # archive them here will do what you want. Again, see the GNU make manual. -- ------------------------------------------------------------------------------- Paul D. Smith Find some GNU make tips at: http://www.gnu.org http://www.paulandlesley.org/gmake/ "Please remain calm...I may be mad, but I am a professional." --Mad Scientist From sankar@divine.migv.mot.com Mon Jan 08 01:11:33 2001 Received: from ftpbox.mot.com ([129.188.136.101]) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14FVWn-0000XN-00 for ; Mon, 08 Jan 2001 01:11:33 -0500 Received: [from mothost.mot.com (mothost.mot.com [129.188.137.101]) by ftpbox.mot.com (ftpbox 2.1) with ESMTP id XAA29211 for ; Sun, 7 Jan 2001 23:11:31 -0700 (MST)] Received: [from nadhi.migv.mot.com ([217.2.42.15]) by mothost.mot.com (MOT-mothost 2.0) with ESMTP id XAA28995 for ; Sun, 7 Jan 2001 23:11:30 -0700 (MST)] Received: from divine.migv.mot.com (divine.migv.mot.com [217.2.42.20]) by migv.mot.com (8.9.3/8.9.3) with ESMTP id LAA18896 for ; Mon, 8 Jan 2001 11:46:24 +0530 (IST) Received: (from sankar@localhost) by divine.migv.mot.com (8.9.1/8.9.1) id LAA21386 for help-make@gnu.org; Mon, 8 Jan 2001 11:45:17 +0530 (IST) Date: Mon, 8 Jan 2001 11:45:17 +0530 From: Sankaranarayanan K V To: help-make@gnu.org Subject: Re: Generated Makefiles and multi-arch builds Message-ID: <20010108114517.N18136@divine.migv.mot.com> References: <20010104111128.C12846@divine.migv.mot.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010104111128.C12846@divine.migv.mot.com>; from sankar@miel.mot.com on Thu, Jan 04, 2001 at 11:11:28AM +0530 Organization: Motorola India Electronics Ltd. X-Address: Golf View Campus, Wind Tunnel Road, Murugesh Palya, Bangalore, Karnataka, India 560 017" X-Phone: +91-80-527-1613 ext 3046 X-Fax: +91-80-527-1611 Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: Hi, On Thu, Jan 04, 2001 at 11:11:28AM +0530, Sankaranarayanan K V wrote: [[ On multi-arch builds using Paul Smith's method and using that scheme together with Makefile generation. ]] > Instead of > > Makefile: ; > > in the target.mk file, I tried to put: > > Makefile: Makefile.in > cp Makefile.in Makefile > > and things stop working. > > The lines above cause the following > > % :: ; > > rule to get fired. > > Is there a way out? The catch-all rule was being invoked for Makefile.in as well. I have put a rule: Makefile.in: ; to prevent that and things are working fine. I hope this is the correct way to do it. Regards Sankar -- Sankaranarayanan K. V. | sankar@migv.mot.com Motorola India Electronics Ltd | http://www.mot.com/miel From psmith@baynetworks.com Mon Jan 08 12:00:56 2001 Received: from ns1.baynetworks.com ([134.177.3.20] helo=baynet.baynetworks.com) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14FffD-0005MD-00 for ; Mon, 08 Jan 2001 12:00:56 -0500 Received: from mailhost.BayNetworks.COM (h8754.s84f5.BayNetworks.COM [132.245.135.84]) by baynet.baynetworks.com (8.9.1/8.9.1) with ESMTP id IAA17075 for ; Mon, 8 Jan 2001 08:59:18 -0800 (PST) Received: from pobox.engeast.BayNetworks.COM (pobox.engeast.baynetworks.com [192.32.61.6]) by mailhost.BayNetworks.COM (8.9.1/8.8.8) with ESMTP id LAA10976 for ; Mon, 8 Jan 2001 11:30:57 -0500 (EST) Received: from lemming.engeast.baynetworks.com (lemming [192.32.150.127]) by pobox.engeast.BayNetworks.COM (SMI-8.6/BNET-97/04/24-S) with SMTP id LAA10424; Mon, 8 Jan 2001 11:30:57 -0500 for Received: from psmith by lemming.engeast.baynetworks.com with local (Exim 3.16 #1 (Debian)) id 14FfC5-0001hv-00; Mon, 08 Jan 2001 11:30:49 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14937.60216.825598.908004@lemming.engeast.baynetworks.com> Date: Mon, 8 Jan 2001 11:30:48 -0500 To: Sankaranarayanan K V Cc: help-make@gnu.org Subject: Re: Multi-arch builds and the -n option In-Reply-To: <20010103195730.B12846@divine.migv.mot.com> References: <20010103195730.B12846@divine.migv.mot.com> X-Mailer: VM 6.89 under Emacs 20.7.2 From: "Paul D. Smith" Reply-To: "Paul D. Smith" Organization: GNU's Not Unix! Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: %% Sankaranarayanan K V writes: skv> 'gmake -n' gives errors. Why is this so? skv> Output below: skv> $ gmake -n skv> [ -d _common ] || mkdir -p _common skv> gmake --no-print-directory -C _common -f /users/sankar/BACKUP/work/learning/make/paul/example/Makefile SRCDIR=/users/sankar/BACKUP/work/learning/make/paul/example skv> sed 's/@VERSION@/1.0/g' /users/sankar/BACKUP/work/learning/make/paul/example/version.c.in > version.c skv> : skv> [ -d _SunOS ] || mkdir -p _SunOS skv> gmake --no-print-directory -C _SunOS -f /users/sankar/BACKUP/work/learning/make/paul/example/Makefile SRCDIR=/users/sankar/BACKUP/work/learning/make/paul/example skv> gmake[1]: *** No rule to make target `version', needed by `all'. Stop. skv> gmake: *** [_SunOS] Error 2 Sure. The target "version" requires version.c to exist before it can be built. But, version.c doesn't exist because, since you used -n, the rule to create it wasn't run. Since there's no version.c and no rule to build it, make can't envision any way to build "version". -- ------------------------------------------------------------------------------- Paul D. Smith Find some GNU make tips at: http://www.gnu.org http://www.paulandlesley.org/gmake/ "Please remain calm...I may be mad, but I am a professional." --Mad Scientist From webmaster@circes-isle.com Mon Jan 08 13:07:21 2001 Received: from w034.z208036152.sjc-ca.dsl.cnc.net ([208.36.152.34] helo=server01.concentric.net) by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian)) id 14FghV-0000pK-00 for ; Mon, 08 Jan 2001 13:07:21 -0500 Received: from [208.36.152.34] ([207.171.201.2]) by server01.concentric.net (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with SMTP id net for ; Mon, 8 Jan 2001 10:01:35 -0800 To: help-make@gnu.org From: webmaster@circes-isle.com (LolitaXXX) Date: Mon, 8 Jan 2001 10:08:06 -0800 Subject: are you STILL renting Adult videos from the store? X-Mailer: 208.36.152.34 Message-ID: <20010108180135886.AHC306@server01.concentric.net@[207.171.201.2]> X-RBL-Warning: (relays.mail-abuse.org) Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: if so ... then www.Circes-Isle.com is waiting for you:) Streaming FULL-LENGTH videos of your favorite porn stars waiting for your viewing pleasure! SEE the BEST of the XXX movies TONIGHT in the comfort of your own home ... NEVER AGAIN rent tapes from stores !!!! many MANY titles to be posted .... www.Circes-Isle.com From MayanW@gilat.com Tue Jan 09 02:28:17 2001 Received: from [199.203.209.2] (helo=mimesw.gilat.com) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14FtCa-000744-00 for ; Tue, 09 Jan 2001 02:28:16 -0500 Received: from mail.gilat.com (unverified) by mimesw.gilat.com (Content Technologies SMTPRS 4.1.5) with ESMTP id for ; Tue, 9 Jan 2001 09:25:19 +0200 Received: by mail.gilat.com with Internet Mail Service (5.5.2650.21) id ; Tue, 9 Jan 2001 09:26:41 +0200 Message-ID: <1ED1DEFB051AD311AEA20008C70D2F7E0387F654@mail.gilat.com> From: Mayan Wise - Israel To: "'help-make@gnu.org'" Subject: GNU problems Date: Tue, 9 Jan 2001 09:26:39 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="windows-1255" Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: Hi There are two issues I have problems with 1. I use GNU make for '.c' , ' .cc' , '.cpp' , '.s' files and when I try to use pattern rules to separate them ( '%.obj : %.cc' or any other text function on the prerequisite) it doesn't work and don't get into no rule. 2. It seems that text functions don't work in a ifeq( here ) or in the prerequisites, is that so? Hope you can help me with those issues. thanks Mayan Wise From eric.asperheim@intel.com Tue Jan 09 15:47:30 2001 Received: from thalia.fm.intel.com ([132.233.247.11]) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14G5g2-0000WD-00 for ; Tue, 09 Jan 2001 15:47:30 -0500 Received: from SMTP (fmsmsxvs02-1.fm.intel.com [132.233.42.202]) by thalia.fm.intel.com (8.9.1a+p1/8.9.1/d: relay.m4,v 1.33 2000/11/21 19:27:27 smothers Exp $) with SMTP id UAA11664 for ; Tue, 9 Jan 2001 20:48:50 GMT Received: from fmsmsx29.FM.INTEL.COM ([132.233.48.29]) by 132.233.48.202 (Norton AntiVirus for Internet Email Gateways 1.0) ; Tue, 09 Jan 2001 20:47:28 0000 (GMT) Received: by fmsmsx29.fm.intel.com with Internet Mail Service (5.5.2650.21) id ; Tue, 9 Jan 2001 12:47:26 -0800 Message-ID: From: "Asperheim, Eric" To: "'help-make@gnu.org'" Subject: Target-specific variables Date: Tue, 9 Jan 2001 12:47:24 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: All, Does anyone know if "Target-specific variables" are supported in gmake version 3.74-96q4? fhi2009:easperhe gmake -v GNU Make version 3.74-96q4, by Richard Stallman and Roland McGrath. I'm trying to use target-specific variables and it doesn't seem to be working. I'm using the exact example from the gmake 3.79.1 documentation (the latest): prog : CFLAGS = -g prog : prog.o foo.o bar.o @echo $(CFLAGS) When I type "gmake prog", I get the following fhi2009:easperhe gmake prog gmake: *** No rule to make target `CFLAGS', needed by `prog'. Stop. What am I doing wrong if it's not the version? If it is the version, how can I get a list of features and it which version the feature was added? Thanks, Eric From psmith@baynetworks.com Tue Jan 09 15:52:24 2001 Received: from ns4.baynetworks.com ([192.32.253.7] helo=shrimp.baynetworks.com) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14G5km-0000cV-00 for ; Tue, 09 Jan 2001 15:52:24 -0500 Received: from mailhost.BayNetworks.COM (ns4.baynetworks.com [132.245.135.84]) by shrimp.baynetworks.com (8.9.1/8.9.1) with ESMTP id PAA15306 for ; Tue, 9 Jan 2001 15:44:39 -0500 (EST) Received: from pobox.engeast.BayNetworks.COM (pobox.engeast.baynetworks.com [192.32.61.6]) by mailhost.BayNetworks.COM (8.9.1/8.8.8) with ESMTP id PAA14338 for ; Tue, 9 Jan 2001 15:52:23 -0500 (EST) Received: from lemming.engeast.baynetworks.com (lemming [192.32.150.127]) by pobox.engeast.BayNetworks.COM (SMI-8.6/BNET-97/04/24-S) with SMTP id PAA02151; Tue, 9 Jan 2001 15:52:22 -0500 for Received: from psmith by lemming.engeast.baynetworks.com with local (Exim 3.16 #1 (Debian)) id 14G5kb-00087N-00; Tue, 09 Jan 2001 15:52:13 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14939.31229.118284.51560@lemming.engeast.baynetworks.com> Date: Tue, 9 Jan 2001 15:52:13 -0500 To: "Asperheim, Eric" Cc: "'help-make@gnu.org'" Subject: Re: Target-specific variables In-Reply-To: References: X-Mailer: VM 6.89 under Emacs 20.7.2 From: "Paul D. Smith" Reply-To: "Paul D. Smith" Organization: GNU's Not Unix! Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: %% "Asperheim, Eric" writes: ae> Does anyone know if "Target-specific variables" are supported in gmake ae> version 3.74-96q4? No. They were added in GNU make 3.77. There have been various issues with them such that my advise is to get the latest version (3.79.1) and not use 3.77 itself. ae> What am I doing wrong if it's not the version? If it is the ae> version, how can I get a list of features and it which version the ae> feature was added? The NEWS file that comes with each distribution of GNU make contains a comprehensive list of the user-visible features that were added to each version. -- ------------------------------------------------------------------------------- Paul D. Smith Find some GNU make tips at: http://www.gnu.org http://www.paulandlesley.org/gmake/ "Please remain calm...I may be mad, but I am a professional." --Mad Scientist From mmartin@rbd.com Tue Jan 09 19:53:54 2001 Received: from mail.mry.rbd.com ([207.204.192.35] helo=mry.rbd.com) by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian)) id 14G9WT-00046m-00 for ; Tue, 09 Jan 2001 19:53:53 -0500 Received: (qmail 20574 invoked from network); 10 Jan 2001 00:44:31 -0000 Received: from unknown (HELO developer) (208.61.212.245) by mry.rbd.com with SMTP; 10 Jan 2001 00:44:31 -0000 From: "Marcus A Martin" To: Subject: Odd make question Date: Tue, 9 Jan 2001 19:56:26 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Importance: Normal Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: I am working on a gmake makefile set that needs to compile on several platforms using the native compiler of each host platform. This includes several differant unix boxes, each with its own set of problems. However, I am also required to get this make system to work on an M$ machine using cygwin. I have stumbled, tripped and staggered but percivered and finally got it to work with M$ - mostly. I do not know if you are familiar with the ins and out of the M$ compilers, but as with any process that occurs on a M$ machine starting and stopping is expensive. As such, the M$ compiler has batch rules that allow you to pass multiple c/cpp files to the compiler and it compiles them all as a single process. While this is natively handled in M$'s nmake, I have yet to find a simple way to handle this in gmake. What I need to do is be able to pass only the source files that have been changed into the compile command. So far I have only found a way to add in all or none. The gmake structure is basicly this this: SOURCE = foo.c bar.c $(OBJS): $(SOURCES) $(CC) $^ foobar.a : $(OBJS) $(SHARED_LIB_LINKER) $(OBJS) $(OUTFILE) In theory, the $^ should only get source files that have been changed since the last compile, but it always evaluates to null. If I replace it with $(SOURCES) I can pass all the source files to the M$ compiler like I want, but it will always recompile everything. Does anyone know how to handle this case? I can always just let it compile 1 file at a time using basic suffix rules or pattern rules, but this is very time consumming on a M$ machine. Marcus From psmith@baynetworks.com Tue Jan 09 21:09:09 2001 Received: from ns5.baynetworks.com ([194.133.90.101] helo=scallop.baynetworks.com) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14GAhI-0007ai-00 for ; Tue, 09 Jan 2001 21:09:09 -0500 Received: from mailhost.BayNetworks.COM (h8754.s84f5.BayNetworks.COM [132.245.135.84]) by scallop.baynetworks.com (8.9.1/8.9.1) with ESMTP id DAA08048 for ; Wed, 10 Jan 2001 03:16:00 +0100 (MET) Received: from pobox.engeast.BayNetworks.COM (pobox.engeast.baynetworks.com [192.32.61.6]) by mailhost.BayNetworks.COM (8.9.1/8.8.8) with ESMTP id VAA24029 for ; Tue, 9 Jan 2001 21:08:30 -0500 (EST) Received: from lemming.engeast.baynetworks.com (lemming [192.32.150.127]) by pobox.engeast.BayNetworks.COM (SMI-8.6/BNET-97/04/24-S) with SMTP id VAA19603; Tue, 9 Jan 2001 21:08:29 -0500 for Received: from psmith by lemming.engeast.baynetworks.com with local (Exim 3.16 #1 (Debian)) id 14GAgX-0008Us-00; Tue, 09 Jan 2001 21:08:21 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14939.50197.900517.43464@lemming.engeast.baynetworks.com> Date: Tue, 9 Jan 2001 21:08:21 -0500 To: "Marcus A Martin" Cc: Subject: Re: Odd make question In-Reply-To: References: X-Mailer: VM 6.89 under Emacs 20.7.2 From: "Paul D. Smith" Reply-To: "Paul D. Smith" Organization: GNU's Not Unix! Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: %% "Marcus A Martin" writes: mam> What I need to do is be able to pass only the source files that mam> have been changed into the compile command. So far I have only mam> found a way to add in all or none. The gmake structure is basicly mam> this this: mam> SOURCE = foo.c bar.c mam> $(OBJS): $(SOURCES) mam> $(CC) $^ First, this isn't what you want. Multiple targets on the left side of the ":" mean that each one can be built with the same rule. So, the above line (assuming OBJS is "foo.o bar.o") is the same as writing: foo.o: foo.c bar.c $(CC) $^ bar.o: foo.c bar.c $(CC) $^ which is clearly _not_ what you want. This will be even slower, since it will recompile every .o whenever _any_ .c changes. mam> In theory, the $^ should only get source files that have been mam> changed since the last compile, but it always evaluates to mam> null. I don't see how that can be. The "$^" does _NOT_ evaluate to the files that have changed, it evaluates to _all_ the prerequisites defined for that target. It should always be equal to the value of $(SOURCES). Note this assumes you're using GNU make; some other makes don't define the automatic variables like $<, etc. for explicit rules (for some completely incomprehensible reason). The variable you want is "$?", which resolves to just the files that have changed. See the GNU make manual section on automatic variables. To do what you want you'll have to use a dummy file. Something like this might work: dummy.x: $(SOURCES) $(CC) -c $? touch dummy.x foobar.a: dummy.x $(SHARED_LIB_LINKER) $(OBJS) $(OUTFILE) Obviously this is using UNIX syntax; I'm not familiar enough with Windows to translate stuff like "touch". -- ------------------------------------------------------------------------------- Paul D. Smith Find some GNU make tips at: http://www.gnu.org http://www.paulandlesley.org/gmake/ "Please remain calm...I may be mad, but I am a professional." --Mad Scientist From tdrouet@yahoo.fr Thu Jan 11 09:31:22 2001 Received: from mars.sogitec.fr ([62.161.171.73]) by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian)) id 14Gil6-0005y9-00 for ; Thu, 11 Jan 2001 09:31:21 -0500 Received: by mars.sogitec.fr; id PAA05720; Thu, 11 Jan 2001 15:38:42 +0100 (CET) Received: from unknown(81.0.2.2) by mars.sogitec.fr via smap (4.0) id xma005713; Thu, 11 Jan 2001 15:38:30 +0100 Received: from yahoo.fr (localhost [127.0.0.1]) by sgpiwi (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id PAA01984 for ; Thu, 11 Jan 2001 15:31:16 +0100 (MET) Message-ID: <3A5DC3B3.546EED10@yahoo.fr> Date: Thu, 11 Jan 2001 15:31:15 +0100 From: Drouet Thierry Organization: SOGITEC X-Mailer: Mozilla 4.61C-SGI [en] (X11; I; IRIX 6.5 IP22) X-Accept-Language: en MIME-Version: 1.0 To: help-make@gnu.org Subject: gmake 3.78.1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: Hi, For my application, I need the gmake program (release 3.78.1). When I install the make-3.78.1 that I found on the ftp site prep.ai.mit.au, it does not create any gmake program. Is there a problem? Where can I find this release of gmake. Sincerely, Thierry Drouet. From joostvb@mdcc.cx Thu Jan 11 09:40:45 2001 Received: from d4052.upc-d.chello.nl ([213.46.4.52] helo=mdcc.cx) by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian)) id 14GiuB-0006dw-00 for ; Thu, 11 Jan 2001 09:40:44 -0500 Received: (qmail 30994 invoked by uid 1000); 11 Jan 2001 14:40:41 -0000 Date: Thu, 11 Jan 2001 15:40:41 +0100 From: Joost van Baal To: Drouet Thierry Cc: help-make@gnu.org Subject: Re: gmake 3.78.1 Message-ID: <20010111154041.R1726@gelfand> References: <3A5DC3B3.546EED10@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A5DC3B3.546EED10@yahoo.fr>; from tdrouet@yahoo.fr on Thu, Jan 11, 2001 at 03:31:15PM +0100 X-PGP-Fingerprint: 8FC6 A40E 31B8 7E0E 2270 D7A9 0606 9CF2 9694 57F0 X-PGP-Key-ID: 0x969457F0 X-Accept-Language: nl, en Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: On Thu, Jan 11, 2001 at 03:31:15PM +0100, Drouet Thierry wrote: > > For my application, I need the gmake program (release 3.78.1). When I > install the make-3.78.1 that I found on the ftp site prep.ai.mit.au, it > does not create any gmake program. > Is there a problem? Where can I find this release of gmake. The binary is called `make' by default. You can change the name of the installed binary during the configure phase. Bye, Joost -- . . Joost van Baal . . . . http://mdcc.cx/ . . From ggerade@mailandnews.com Mon Jan 15 10:55:36 2001 Received: from mailandnews.com ([199.29.68.161]) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14IByp-0006G1-00 for ; Mon, 15 Jan 2001 10:55:35 -0500 Received: from gradynt [208.195.254.1] (ggerade@mailandnews.com) by MailAndNews.com; Mon, 15 Jan 2001 10:54:47 -0500 X-WM-Posted-At: MailAndNews.com; Mon, 15 Jan 01 10:54:47 -0500 Message-ID: <005801c07f0b$7cfa4c40$459cd7cc@gradynt> Reply-To: "Grady Gerade" From: "Grady Gerade" To: Subject: Looking for tips on generating dependencies with Visual C++ Date: Mon, 15 Jan 2001 10:54:43 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: Hello All, I was hoping someone might be able to point me in the right direction for some information regarding auto generating dependency information using Visual C++ (5.0/6.0). I've seen references to makedepend which can be built on Win32, but I suspect it's going to have some nuances when run against VC sources... Anyone using a script that processes the pre-proc output? Any help on the subject greatly appreciated, Grady Gerade ggerade@pobox.com From anjan@impetus.com Fri Jan 19 19:27:46 2001 Received: from impetus.com ([128.121.227.86]) by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian)) id 14Jlsg-0000RK-00 for ; Fri, 19 Jan 2001 19:27:46 -0500 Received: from impetus.com ([207.199.254.2]) by impetus.com (8.8.8) id RAA39739 for ; Fri, 19 Jan 2001 17:27:45 -0700 (MST) Message-ID: <3A68DB7C.20505@impetus.com> Date: Fri, 19 Jan 2001 16:27:40 -0800 From: Anjan Bacchu Organization: Impetus User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; m18) Gecko/20001108 Netscape6/6.0 X-Accept-Language: en MIME-Version: 1.0 To: help-make@gnu.org Subject: problems building GNU MAKE 3.79 on win32 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: Hi All!, I have windows 2000. I downloaded gnu make source from the gnu ftp site( to build some java code). I am building this source using visual C++ 6.0 (no service pack). when i tried to build the make by executing the "build_w32.bat" script. I am getting the following warnings and 1 ERROR in main.c ================ G:\work\test\gnumake\make-3.79>cl.exe /nologo /MT /W3 /GX /Zi /YX /Od /I . /I glob /I w32/include /D _DEBUG /D WINDOWS32 /D WIN32 /D _CONSOLE /D HAVE_CONFIG_H /FR.\WinDebug/ /Fp.\WinDebug/gnumake.pch /Fo.\WinDebug/ /Fd.\WinDebug/gnumake.pdb /c main.c main.c main.c(739) : warning C4101: 'fd' : unreferenced local variable main.c(820) : error C2065: 'LOCALEDIR' : undeclared identifier main.c(854) : warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(int )' main.c(855) : warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(int )' main.c(1561) : warning C4308: negative integral constant converted to unsigned type main.c(1561) : warning C4308: negative integral constant converted to unsigned type main.c(1732) : warning C4018: '<' : signed/unsigned mismatch main.c(1814) : warning C4013: 'close' undefined; assuming extern returning int ================ Can someone suggest how to fix it ? I tried to define LOCALEDIR as c:\\temp but that gave another series of errors. I ran configure.bat but that also did not make a difference -- it gave more errors. Is there a way out ? I don't mind going through a FAQ only I don't know where to locate it. Thanks for all help, BR, ~A From psmith@baynetworks.com Fri Jan 19 21:18:29 2001 Received: from ns1.baynetworks.com ([134.177.3.20] helo=baynet.baynetworks.com) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14Jnbp-0006jJ-00 for ; Fri, 19 Jan 2001 21:18:29 -0500 Received: from mailhost.BayNetworks.COM (h8754.s84f5.BayNetworks.COM [132.245.135.84]) by baynet.baynetworks.com (8.9.1/8.9.1) with ESMTP id SAA15882 for ; Fri, 19 Jan 2001 18:16:46 -0800 (PST) Received: from pobox.engeast.BayNetworks.COM (pobox.engeast.baynetworks.com [192.32.61.6]) by mailhost.BayNetworks.COM (8.9.1/8.8.8) with ESMTP id VAA20871 for ; Fri, 19 Jan 2001 21:18:21 -0500 (EST) Received: from lemming.engeast.baynetworks.com (lemming [192.32.150.127]) by pobox.engeast.BayNetworks.COM (SMI-8.6/BNET-97/04/24-S) with SMTP id VAA25189; Fri, 19 Jan 2001 21:18:20 -0500 for Received: from psmith by lemming.engeast.baynetworks.com with local (Exim 3.16 #1 (Debian)) id 14JnbY-0006VC-00; Fri, 19 Jan 2001 21:18:12 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14952.62820.678093.884120@lemming.engeast.baynetworks.com> Date: Fri, 19 Jan 2001 21:18:12 -0500 To: Anjan Bacchu Cc: help-make@gnu.org Subject: Re: problems building GNU MAKE 3.79 on win32 In-Reply-To: <3A68DB7C.20505@impetus.com> References: <3A68DB7C.20505@impetus.com> X-Mailer: VM 6.89 under Emacs 20.7.2 From: "Paul D. Smith" Reply-To: "Paul D. Smith" Organization: GNU's Not Unix! Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: Please get the latest version (3.79.1) and try that. -- ------------------------------------------------------------------------------- Paul D. Smith Find some GNU make tips at: http://www.gnu.org http://www.paulandlesley.org/gmake/ "Please remain calm...I may be mad, but I am a professional." --Mad Scientist From cloder@acm.org Tue Jan 23 02:57:27 2001 Received: from laxmls02.socal.rr.com ([24.30.163.11]) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14KyKU-0001FL-00 for ; Tue, 23 Jan 2001 02:57:26 -0500 Received: from chadloder.acm.org (sc-24-24-218-142.socal.rr.com [24.24.218.142]) by laxmls02.socal.rr.com (8.11.1/8.11.1) with ESMTP id f0N7vLe10386 for ; Mon, 22 Jan 2001 23:57:22 -0800 (PST) Message-Id: <5.0.0.25.2.20010122235303.00a9ba00@pop-server.socal.rr.com> X-Sender: cloder@pop-server.socal.rr.com (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.0 Date: Mon, 22 Jan 2001 23:58:41 -0800 To: help-make@gnu.org From: Chad Loder Subject: GNU make puzzle Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: Hello. I would like to indent build messages according to the make level at which they occur. I am considering something along the following lines: #################### /generic.mk ########################## INDENT_STRING:=<# of spaces equal to $(MAKELEVEL)> echo_msg:=echo "$(INDENT_STRING)" #################### sub.mk ############################### include /generic.mk all : $(echo_msg) Building sub $(MAKE) -f subsub.mk #################### subsub.mk ############################ include /generic.mk all : $(echo_msg) Building subsub and so on...where each level of make corresponds to another level of indentation in the echo_msg macro. Any ideas? Thanks, chad From fjh@cs.mu.oz.au Tue Jan 23 08:30:46 2001 Received: from mail-gate.cs.mu.oz.au ([198.142.254.221] helo=mumnunah.cs.mu.OZ.AU) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14L3X0-0008Eu-00 for ; Tue, 23 Jan 2001 08:30:44 -0500 Received: from hg.cs.mu.oz.au (root@hg.cs.mu.OZ.AU [128.250.25.19]) by mumnunah.cs.mu.OZ.AU with ESMTP id AAA03201; Wed, 24 Jan 2001 00:30:37 +1100 (EST) Received: (from fjh@localhost) by hg.cs.mu.oz.au (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id AAA13865; Wed, 24 Jan 2001 00:30:36 +1100 Date: Wed, 24 Jan 2001 00:30:36 +1100 From: Fergus Henderson To: Chad Loder Cc: help-make@gnu.org Subject: Re: GNU make puzzle Message-ID: <20010124003036.A13764@hg.cs.mu.oz.au> References: <5.0.0.25.2.20010122235303.00a9ba00@pop-server.socal.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <5.0.0.25.2.20010122235303.00a9ba00@pop-server.socal.rr.com> Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: On 22-Jan-2001, Chad Loder wrote: > Hello. I would like to indent build messages according to > the make level at which they occur. I am considering something > along the following lines: > > > #################### /generic.mk ########################## > > INDENT_STRING:=<# of spaces equal to $(MAKELEVEL)> > echo_msg:=echo "$(INDENT_STRING)" How about just the following? empty = INDENT_STRING := $(empty)$(INDENT_STRING) $(empty) export INDENT_STRING At each recursive invocation, it will append one space to INDENT_STRING. -- Fergus Henderson | "I have always known that the pursuit | of excellence is a lethal habit" WWW: | -- the last words of T. S. Garp. From leadsleadsmoreleads890@hotmail.com Sat Jan 27 20:55:55 2001 Received: from son.org ([192.41.5.32]) by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian)) id 14Mh4M-0005A2-00 for ; Sat, 27 Jan 2001 20:55:54 -0500 Received: from 234rsaf234qws34qwsd (max2-74.losangeles.corecomm.net [216.214.107.74]) by son.org (8.8.5) id SAA19309; Sat, 27 Jan 2001 18:55:44 -0700 (MST) Date: Sat, 27 Jan 2001 18:55:44 -0700 (MST) From: leadsleadsmoreleads890@hotmail.com Message-Id: <200101280155.SAA19309@son.org> X-Info1: œ***************************************************************** X-Info2: œ* This email came through the SMTP.SON.ORG email server. If you * X-Info3: œ* suspect this email was sent by a spammer through this site * X-Info4: œ* please forward the ENTIRE email message including headers to * X-Info5: œ* abuse@son.org so action can be taken against the spammer. * X-Info6: œ**** Fight Spam on the Internet! See http://spam.abuse.net **** X-Info7: œ**** Outlaw Spam: Support HR 1748 See http://www.cauce.org **** X-Info8: œ**** Block Spam: Blackhole List See http://maps.vix.com/rbl **** X-Info9: œ***************************************************************** To: Subject: Leads>? Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: BUY LEADS WHOLESALE FROM US FOR YOUR BUSINESS http://www.geocities.com/leadoffers1900/leads.htm From DResnick@comversens.com Mon Jan 29 13:52:48 2001 Received: from ns1.comversens.com ([63.64.185.10]) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14NJPz-0008VI-00 for ; Mon, 29 Jan 2001 13:52:47 -0500 Received: from mail-bridge.btrd.bostontechnology.com (host.comversens.com [63.64.185.2]) by ns1.comversens.com (8.9.1b+Sun/8.9.1) with ESMTP id NAA03784; Mon, 29 Jan 2001 13:54:03 -0500 (EST) Received: by mail-bridge.btrd.bostontechnology.com with Internet Mail Service (5.5.2652.78) id ; Mon, 29 Jan 2001 13:51:51 -0500 Message-ID: From: "Resnick, David" To: "'help-make@gnu.org'" Cc: "'dresnick@intouchsys.com'" Subject: question: how to automatically define a group of variables Date: Mon, 29 Jan 2001 13:54:41 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.78) Content-Type: text/plain; charset="windows-1252" Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: I'm struggling to simplify a Makefile that is getting cluttered up with repetition every time we add support for a new language. We have sets of statements like the following: ************************************************* NONBI_SRCS_FRFR = lang-kernel.frfr.c lang-util.c NONBI_SRCS_DEDE = lang-kernel.dede.c lang-util.c NONBI_SRCS_ITIT = lang-kernel.itit.c lang-util.c NONBI_SRCS_PTBR = lang-kernel.ptbr.c lang-util.c NONBI_SRCS_ESCL = lang-kernel.escl.c lang-util.c tdb%-bi.c: $(NONBI_SRCS_%:.c=.o) ************************************************* I originally naively thought I could do something like the following (disregarding the upper/lower case issue for now): ************************************************* define newline endef lc_ccs = frfr dede itit ptbr escl $(foreach lccc, $(lc_ccs), NONBI_SRCS_$(lccc) = lang-kernel.$(lccc).c lang-util.c $(newline)) ************************************************* Alas, that results in a '*** missing separator. Stop.' error. What I want for it to do is to expand, e.g., to: NONBI_SRCS_frfr = lang-kernel.frfr.c lang-util.c before Make decides that the line doesn't have a form like var = defn or TARGETS: blah blah blah. I pawed through the info file for some time, and asked the local Make experts, but couldn't come up with a satisfactory answer. Any help on how to do this (or a pointer to where I might find the answer) would be greatly appreciated. If it is relevant, we're running make-3.79.1. Thanks, -David dresnick@intouchsys.com From gneiss@schoenhofer.de Tue Jan 30 07:22:15 2001 Received: from moutvdom01.kundenserver.de ([195.20.224.200]) by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian)) id 14NZna-0004RG-00 for ; Tue, 30 Jan 2001 07:22:14 -0500 Received: from [195.20.224.208] (helo=mrvdom01.schlund.de) by moutvdom01.kundenserver.de with esmtp (Exim 2.12 #2) id 14NZn9-0001vW-00; Tue, 30 Jan 2001 13:21:47 +0100 Received: from p3e9d3b3e.dip.t-dialin.net ([62.157.59.62] helo=l-stor.sse) by mrvdom01.schlund.de with esmtp (Exim 2.12 #2) id 14NZmb-0006tR-00; Tue, 30 Jan 2001 13:21:13 +0100 Received: from schoenhofer.de (neiss [10.0.1.49]) by l-stor.sse (8.8.8/8.8.8) with ESMTP id NAA23416; Tue, 30 Jan 2001 13:20:40 +0100 Message-ID: <3A76B191.F95E745B@schoenhofer.de> Date: Tue, 30 Jan 2001 13:20:33 +0100 From: =?iso-8859-1?Q?G=FCnter=20Nei=DF?= X-Mailer: Mozilla 4.7 [de] (WinNT; U) X-Accept-Language: de,en-US MIME-Version: 1.0 To: "Resnick, David" CC: "'help-make@gnu.org'" , "'dresnick@intouchsys.com'" Subject: Re: question: how to automatically define a group of variables References: Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------msDAB986EEE0F7F6816A229AF5" Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: Dies ist eine kryptographisch unterzeichnete Nachricht im MIME-Format. --------------msDAB986EEE0F7F6816A229AF5 Content-Type: multipart/mixed; boundary="------------7A92499E099F296868B1C3F0" Dies ist eine mehrteilige Nachricht im MIME-Format. --------------7A92499E099F296868B1C3F0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit "Resnick, David" schrieb: > > I'm struggling to simplify a Makefile that is getting cluttered up with > repetition every time we add support for a new language. We have > sets of statements like the following: > > ************************************************* > NONBI_SRCS_FRFR = lang-kernel.frfr.c lang-util.c > NONBI_SRCS_DEDE = lang-kernel.dede.c lang-util.c > NONBI_SRCS_ITIT = lang-kernel.itit.c lang-util.c > NONBI_SRCS_PTBR = lang-kernel.ptbr.c lang-util.c > NONBI_SRCS_ESCL = lang-kernel.escl.c lang-util.c > > tdb%-bi.c: $(NONBI_SRCS_%:.c=.o) > ************************************************* > > I originally naively thought I could do something like the following > (disregarding the > upper/lower case issue for now): > > ************************************************* > define newline > > endef > lc_ccs = frfr dede itit ptbr escl > $(foreach lccc, $(lc_ccs), NONBI_SRCS_$(lccc) = lang-kernel.$(lccc).c > lang-util.c $(newline)) > ************************************************* > > Alas, that results in a '*** missing separator. Stop.' error. What I want > for it to do is > to expand, e.g., to: > NONBI_SRCS_frfr = lang-kernel.frfr.c lang-util.c > before Make decides that the line doesn't have a form like var = defn or > TARGETS: blah blah blah. > > I pawed through the info file for some time, and asked the local Make > experts, but couldn't come > up with a satisfactory answer. Any help on how to do this (or a pointer to > where I might find > the answer) would be greatly appreciated. If it is relevant, we're running > make-3.79.1. > > Thanks, > -David As far as I know, You can't do it that way... The $(foreach...) will expand to: NONBI_SRCS_frfr = lang-kernel.frfr.c lang-util.c \n NONBI_SRCS_dede = lang-kernel.dede.c lang-util.c ... And thats assigned to ??? The result of $(foreach...) is a string, not a sequence of statements for make ! You migth write: lccc:= frfr NONBI_SRCS_$(lccc) = lang-kernel.$(lccc).c lang-util.c lccc:= dede NONBI_SRCS_$(lccc) = lang-kernel.$(lccc).c lang-util.c ... which will work as You expected... if You do that a little bit more tricky: lc_ccs = frfr dede itit ptbr escl all: for vers in $(lc_ccs); do \ $(MAKE) -f AnotherMakeFile lccc=$$vers ; \ done In AnotherMakeFile: NONBI_SRCS_$(lccc) = lang-kernel.$(lccc).c lang-util.c ... You get a recursive make for all this.... That's the idea behind my 'VersionMake': Write one Makefile(-part) that does the normal work, but requires the actual Version that should be made given before. I write something like that: AllVersions:= frfr dede itit ptbr escl ifeq ($(strip $(VERSION)),) ############################################################################# # Make all Versions # the special target 'force' may be used to force the make even if one fails ############################################################################# Goal:= DoAllVers$(subst force,Force,$(filter force,$(MAKECMDGOALS))) DoTargets:= $(filter-out force,$(MAKECMDGOALS)) DoTargets:= $(if $(DoTargets),$(DoTargets),all) $(DoTargets): $(Goal) .PHONY: force Show DoAllVers DoAllVersForce $(AllVersions) force: $(DoTargets) Show: @echo VersionMake: Goal: $(Goal) @echo VersionMake: DoTargets: $(DoTargets) @echo VersionMake: AllVersions: $(AllVersions) DoAllVers: $(AllVersions) DoAllVersForce: @for version in $(AllVersions); do \ @echo VersionMake: Version: $@ $(MAKE) -s VERSION=$$dir $(DoTargets) ; \ done $(AllVersions): @echo VersionMake: Version: $@ @$(MAKE) VERSION=$@ $(DoTargets) else ############################################################################# # Make Version specified on Command-Line ############################################################################# # in may case There is a file BasicMake, that 'makes' one Version # You might insert the normal rules for Your project here # Error:= $(if $(findstring /src/,$(CURDIR))/,,$(error VersionMake: Current Dir does not contain '/src/')) # include $(firstword $(subst /src/,/src ,$(CURDIR)/))/BasicMake # Construct Your Strings here, VERSION is one of the above defined NONBI_SRCS_Version:= lang-kernel.$(VERSION).c lang-util.c # proceed here with normal make-statements.., using 'NONBI_SRCS_Version' instead of 'NONBI_SRCS_FRFR'... endif Now You might simply call 'make []' without setting the VERSION and make will be called for every entry in 'AllVersions' Or You call 'make VERSION=frfr [] and only this version will be made. As You migth see the above code is only a snippet for my actual Makefile-hirachy, that contains: - a 'BasicMake' that defines the rules needed in any make for a actual project - a 'SubDirMake' that does the actions nessesary to generate code for defined subdirs - a 'VersionMake' that generates different versions from the same source, based on different defines. I attach these files in case they might help You. (They need GNU-Make Version >=2.78 !!) These files assume that the actual project-tree is set up as follows: ProjectDir The root for this project (any name, any deepth) /src Here are the files 'BasicMake' 'SubdirMake' and 'VersionMake' /lib1 Source-files for Library 1 /lib2 Source-files for Library 2 /exe1 Source-files for executable 1 /exe2 Source-files for executable 2 The results will be stored under (if these dirs are non existend they will be created) /OS Actual OS might be Hp or Lx (You may add more) /bin here the results are stored (executables) /lib here the genereated libs are stored /obj/... here all generated intermediate files will be stored. The idea behind this is to keep the 'src' part clean (holding only real source). To save a project, I only save the SRC-part. Everything that can be remade from this is stored into the other dir-parts. Furthermore I am able to compile the project (residing on a fileserver) on different systems (in my case HP-UX and Linux) without any influence. Any suggestions / comments to this are highly recomented. If You (or somebody else) adds more functionality I like to here from it. greetings Gόnter --------------7A92499E099F296868B1C3F0 Content-Type: text/plain; charset=us-ascii; name="VersionMake.template" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="VersionMake.template" ############################################################################### # Variables that SHALL be defined before including 'VersionMake' ############################################################################### AllVersions:= TARGET:= SRCS:= ############################################################################### # Version depended DEFS & SRCS # replace version1, version2... by your defined Version-names # if Version dependend CDEFS SRCS or USE_VXI is not needed, the corrosponding # defined may be omitted ############################################################################### #version1CDEFS:= #version2CDEFS:= #version1SRCS:= #version2SRCS:= #version1USE_VXI:= yes #version2USE_VXI:= no ############################################################################### # Variables that MAY be defined before including 'VersionMake' ############################################################################### # Project-Libraries used in this make # Format: / # : pel-path from 'src'-Dir # : full name of library (including extension) PRJLIBS:= # System-Libraries used in this make #SYSLIBS:= # If 'yes' VISA or SICL will be used for this make #USE_VXI:= yes # Extra DEFS and/or INCLUDES #CPPDEFS:= #CDEFS:= #CXXDEFS:= #CINCLUDE:= #CXXINCLUDE:= # Extra Commands after the normal make #EXTRA_MAKE_CMDS:= # if OPTFLAGS not defined, Debug Version (-g) is assumed #OPTFLAGS:= # Extra SUFFIXES used #EXTRASUFFIXES:= # Extra Flags / other Translators #CPPFLAGS:= #CFLAGS:= #CXXFLAGS:= #LDFLAGS:= #ARFLAGS:= #CC:= gcc #CXX:= g++ #LD:= g++ #AR:= ar #RANLIB:= ranlib ############################################################################### # And now include the Basic-Part ############################################################################### Error:= $(if $(findstring /src/,$(CURDIR))/,,$(error Current Dir does not contain '/src/')) include $(firstword $(subst /src/,/src ,$(CURDIR)/))/VersionMake ############################################################################### # Additional Dependencies / Rules ############################################################################### --------------7A92499E099F296868B1C3F0 Content-Type: text/plain; charset=us-ascii; name="Makefile.template" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makefile.template" ############################################################################### # Variables that SHALL be defined before including 'BasicMake' ############################################################################### TARGET:= SRCS:= ############################################################################### # Variables that MAY be defined before including 'BasicMake' ############################################################################### # Project-Libraries used in this make #PRJLIBS:= # System-Libraries used in this make #SYSLIBS:= # If 'yes' VISA or SICL will be used for this make #USE_VXI:= yes # Extra DEFS and/or INCLUDES #CPPDEFS:= #CDEFS:= #CXXDEFS:= #CINCLUDE:= #CXXINCLUDE:= # Extra Commands after the normal make clean #EXTRA_MAKE_CMDS:= #EXTRA_CLEAN_CMDS:= # if OPTFLAGS not defined, Debug Version (-g) is assumed #OPTFLAGS:= # Extra SUFFIXES used #EXTRASUFFIXES:= # Extra Flags / other Translators #CPPFLAGS:= #CFLAGS:= #CXXFLAGS:= #LDFLAGS:= #ARFLAGS:= #CC:= gcc #CXX:= g++ #LD:= g++ #AR:= ar #RANLIB:= ranlib ############################################################################### # And now include the Basic-Part ############################################################################### Error:= $(if $(findstring /src/,$(CURDIR))/,,$(error Current Dir does not contain '/src/')) include $(firstword $(subst /src/,/src ,$(CURDIR)/))/BasicMake ############################################################################### # Additional Dependencies / Rules ############################################################################### --------------7A92499E099F296868B1C3F0 Content-Type: text/plain; charset=us-ascii; name="SubdirMake" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="SubdirMake" ############################################################################### # SubdirMake # # This Makefile processes all Makefiles in the SubDirectories defined by: # 'SubPrjs' # the special target 'force' may be used to force all makes even if one fails ############################################################################### ############################################################################### # Check Variables that SHALL be defined before including 'SubdirMake' ############################################################################### Error:= $(if $(SubPrjs),,$(error SubdirMake: Variable SubPrjs not specified)) ############################################################################### # Check Variables that MAY be defined before including 'SubdirMake' ############################################################################### ############################################################################### # Make all projects / subdirs ############################################################################### Goal:= DoSubPrjs$(subst force,Force,$(filter force,$(MAKECMDGOALS))) MakeTargets:= $(filter-out force,$(MAKECMDGOALS)) MakeTargets:= $(if $(MakeTargets),$(MakeTargets),all) $(MakeTargets): $(Goal) .PHONY: force Show DoSubPrjs DoSubPrjsForce $(SubPrjs) force: $(MakeTargets) Show: @echo SubdirMake: SubPrjs: $(SubPrjs) @echo SubdirMake: Goal: $(Goal) @echo SubdirMake: MakeTargets: $(MakeTargets) DoSubPrjs: $(SubPrjs) DoSubPrjsForce: @for dir in $(SubPrjs); do \ echo SubdirMake : $(PrjStr)/$$dir ; \ $(MAKE) -s -C $$dir PrjStr=$(PrjStr)/$$dir $(MakeTargets) ; \ done $(SubPrjs): @echo SubdirMake : $(PrjStr)/$@ @$(MAKE) -s -C $@ PrjStr=$(PrjStr)/$@ $(MakeTargets) --------------7A92499E099F296868B1C3F0 Content-Type: text/plain; charset=us-ascii; name="SubdirMake.template" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="SubdirMake.template" ############################################################################### # Variables that SHALL be defined before including 'SubdirMake' ############################################################################### SubPrjs:= # Text that indicates the Basic Prj that was made ifdef PrjStr PrjStr+= /PrjName else PrjStr= PrjName endif ############################################################################### # Variables that MAY be defined before including 'SubdirMake' ############################################################################### ############################################################################### # And now include the Basic-Part ############################################################################### Error:= $(if $(findstring /src/,$(CURDIR))/,,$(error Current Dir does not contain '/src/')) include $(firstword $(subst /src/,/src ,$(CURDIR)/))/SubdirMake ############################################################################### # Additional Dependencies / Rules ############################################################################### --------------7A92499E099F296868B1C3F0 Content-Type: text/plain; charset=us-ascii; name="VersionMake" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="VersionMake" ############################################################################### # VersionMake # # This Makefile makes all Versions of a Target defined by: # 'AllVersions' # the special target 'force' may be used to force all makes even if one fails ############################################################################### ############################################################################### # Check Variables that SHALL be defined before including 'VersionMake' ############################################################################### Error:= $(if $(AllVersions),,$(error VersionMake: Variable AllVersions not specified)) ############################################################################### # Check Variables that MAY be defined before including 'VersionMake' ############################################################################### ############################################################################### # VERSION or VERSION_NR specified on Command-Line ? # if yes make this, else make all ############################################################################### ifdef VERSION_NR VERSION:= $(word $(VERSION_NR),$(AllVersions)) Error:= $(if $(strip $(VERSION)),,$(error VersionMake: Wrong VERSION_NR given)) endif ifdef VERSION Error:= $(if $(strip $(filter $(VERSION),$(AllVersions))),,$(error VersionMake: Unknow VERSION: '$(VERSION)' given)) endif ifeq ($(strip $(VERSION)),) ############################################################################# # Make all Versions # the special target 'force' may be used to force the make even if one fails ############################################################################# Goal:= DoAllVers$(subst force,Force,$(filter force,$(MAKECMDGOALS))) DoTargets:= $(filter-out force,$(MAKECMDGOALS)) DoTargets:= $(if $(DoTargets),$(DoTargets),all) $(DoTargets): $(Goal) .PHONY: force Show DoAllVers DoAllVersForce $(AllVersions) force: $(DoTargets) Show: @echo VersionMake: Goal: $(Goal) @echo VersionMake: DoTargets: $(DoTargets) @echo VersionMake: AllVersions: $(AllVersions) DoAllVers: $(AllVersions) DoAllVersForce: @for version in $(AllVersions); do \ @echo VersionMake: Version: $@ $(MAKE) -s VERSION=$$dir $(DoTargets) ; \ done $(AllVersions): @echo VersionMake: $(PrjStr) Version: $@ @$(MAKE) -s VERSION=$@ PrjStr=$(PrjStr) VersStr=$@ $(DoTargets) else ############################################################################# # Make Version specified on Command-Line ############################################################################# Error:= $(if $(findstring /src/,$(CURDIR))/,,$(error VersionMake: Current Dir does not contain '/src/')) include $(firstword $(subst /src/,/src ,$(CURDIR)/))/BasicMake endif --------------7A92499E099F296868B1C3F0 Content-Type: text/plain; charset=iso-8859-1; name="BasicMake" Content-Transfer-Encoding: 8bit Content-Disposition: inline; filename="BasicMake" ############################################################################### # BasicMake # # This Makefile assumes the following: # # The current working directory is the directory containing the source of the # (sub)project. # The directory-tree of the project shall looks like this: # # ProjectRoot -+- src -+- (Sub)Project1 # | !- (Sub)Project2 # +- os --+- obj *.o and *.d files # +- lib *.a and *.so files # !- bin executables ############################################################################### ############################################################################### # Macro-Functions ############################################################################### # If origin of Variable (par1) was a default or undefined, return para2, else Value of Variable IfDefaultOrUndefined= $(if $(findstring $(origin $(1)),default undefined),$(2),$($(1))) # If Variable (para1) was defined return the Value of Variable (para2) IfDefined= $(if $(findstring $(origin $(1)),undefined),,$($(2))) ############################################################################### # Check Variables that SHALL be defined before including 'BasicMake' ############################################################################### Error:= $(if $(TARGET),,$(error BasicMake: Variable TARGET not specified)) Error:= $(if $(SRCS),,$(error BasicMake: Variable SRCS not specified)) ############################################################################### # Checks to support optional Version depended make ############################################################################### VERSION:= $(strip $(VERSION)) ifneq ($(VERSION),) VERSION_MAKE:= yes endif ############################################################################### # Check Variables that MAY be defined before including 'BasicMake' ############################################################################### OPTFLAGS?= -g PRJLIBS?= SYSLIBS?= EXTRASUFFIXES?= CPPDEFS?= CDEFS?= CDEFS+= $(call IfDefined,VERSION_MAKE,$(VERSION)CDEFS) CXXDEFS?= $(CDEFS) CXXDEFS+= $(call IfDefined,VERSION_MAKE,$(VERSION)CXXDEFS) CINCLUDE?= CXXINCLUDE?= $(CINCLUDE) CPPFLAGS?= CFLAGS?= -pipe -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations CXXFLAGS?= -pipe -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Woverloaded-virtual LDFLAGS?= ARFLAGS:= $(call IfDefaultOrUndefined,ARFLAGS,rcus) CC:= $(call IfDefaultOrUndefined,CC,gcc) CXX:= $(call IfDefaultOrUndefined,CXX,g++) LD:= $(call IfDefaultOrUndefined,LD,g++) AR:= $(call IfDefaultOrUndefined,AR,ar) RANLIB:= $(call IfDefaultOrUndefined,RANLIB,ranlib) ############################################################################### # Determine OS we are running on { HP_UX(HP) or Linux(LX) } ############################################################################### HP-UXShortcut:= Hp LinuxShortcut:= Lx Os:= $($(shell uname)Shortcut) Error:= $(if $(Os),,$(error BasicMake: Unknown OS: $(shell uname))) ############################################################################### # OS depended Constants ############################################################################### HpCFlags:= LxCFlags:= -mpentium HpCxxFlags:= LxCxxFlags:= -mpentium HpLdFlags:= -Wl,-z -Wl,+n LxLdFlags:= -lg++ HpSysLibs:= -lm hxSysLibs:= #HpVxiInc:= -I/usr/e1485/include HpVxiInc:= LxVxiInc:= -I/usr/local/vxipnp/linux/include HpVxiLib:= -lsicl LxVxiLib:= -lvisa #HpVxiDef:= -Dsicl -D_HPUX_SOURCE HpVxiDef:= -Dsicl LxVxiDef:= -Dvisa ############################################################################### # Calculate OS depended Vars ############################################################################### OsCFlags:= $($(Os)CFlags) OsCxxFlags:= $($(Os)CxxFlags) OsLdFlags:= $($(Os)LdFlags) OsSysLibs:= $($(Os)SysLibs) USE_VXI?= $(call IfDefined,VERSION_MAKE,$(VERSION)USE_VXI) OsVxiInc:= $(if $(findstring $(USE_VXI),yes),$($(Os)VxiInc)) OsVxiLib:= $(if $(findstring $(USE_VXI),yes),$($(Os)VxiLib)) OsVxiDef:= $(if $(findstring $(USE_VXI),yes),$($(Os)VxiDef)) ############################################################################### # Calculate Dirs ############################################################################### BaseDir:= $(firstword $(subst /src/, src/,$(CURDIR))) RelSrcDir:= $(subst $(BaseDir)/src/,,$(CURDIR)) RelObjDir:= $(Os)/obj/$(RelSrcDir)$(if $(VERSION),/$(VERSION)) SrcDir:= $(BaseDir)/src/$(RelSrcDir) ObjDir:= $(BaseDir)/$(RelObjDir) LibDir:= $(BaseDir)/$(Os)/lib BinDir:= $(BaseDir)/$(Os)/bin ############################################################################### # Determine what TYPE should be make { LIBRARY(lib) or EXE(exe) } ############################################################################### TypeName:= exe aTypeName:= lib soTypeName:= lib Type:= $($(subst .,,$(suffix $(TARGET)))TypeName) Error:= $(if $(Type),,$(error BasicMake: Unknown TargetType: $(TARGET))) ############################################################################### # TYPE depended Constants ############################################################################### exePath:= $(BinDir) libPath:= $(LibDir) define exeDo @echo Linking: $(notdir $(TargetPath))... @$(CXX) $(CxxFlags) $(ObjsPath) -o $(TargetPath) $(LdFlags) $(PrjLibsLib) $(SysLibs) endef define libDo @echo Make Lib: $(notdir $(TargetPath))... $(AR) $(ArFlags) $(TargetPath) $(ObjsPath) $(RANLIB) $(TargetPath) endef exeDir:= $(BinDir) libDir:= $(LibDir) exeMakeLibsTarget= $(PrjLibsLib) libMakeLibsTarget= _DUMMY_ TypeMakeLibsTarget= $($(Type)MakeLibsTarget) exeMakeLibsPrereq= $(PrjLibsLib) libMakeLibsPrereq= TypeMakeLibsPrereq= $($(Type)MakeLibsPrereq) ############################################################################### # Calculate TYPE depended Vars ############################################################################### TypePath:= $($(Type)Path) TypeDo= $($(Type)Do) TypeDir:= $($(Type)Dir) ############################################################################### # Create TARGET depended Dirs ############################################################################### Tmp:= $(shell if ! test -d $(ObjDir) ; then mkdir -p $(ObjDir); fi) Tmp:= $(shell if ! test -d $(TypeDir) ; then mkdir -p $(TypeDir); fi) ############################################################################### # Calculate TARGET depended Vars ############################################################################### TargetExt:= $(suffix $(TARGET)) TargetName:= $(basename $(notdir $(TARGET)))$(if $(VERSION),_$(VERSION)) TargetPath:= $(TypePath)/$(TARGET)$(if $(VERSION),_$(VERSION)) ############################################################################### # Calculate Automatic Variables ############################################################################### SRCS+= $(call IfDefined,VERSION_MAKE,$(VERSION)SRCS) Objs:= $(addsuffix .o,$(basename $(SRCS))) ObjsPath:= $(addprefix $(ObjDir)/,$(Objs)) Deps:= $(addsuffix .d,$(basename $(SRCS))) DepsPath:= $(addprefix $(ObjDir)/,$(Deps)) PrjLibsDir:= $(dir $(PRJLIBS)) PrjLibsNoDir:= $(notdir $(PRJLIBS)) PrjLibsInc:= $(addprefix -I$(BaseDir)/src/,$(PrjLibsDir)) PrjLibsLib:= $(addprefix $(LibDir)/,$(PrjLibsNoDir)) SysLibs:= $(SYSLIBS) $(OsSysLibs) $(OsVxiLib) ############################################################################### # Calculate resulting Variables ############################################################################### CppFlags:= $(CPPFLAGS) $(CPPDEFS) CFlags:= $(CppFlags) $(CFLAGS) $(OsCFlags) $(OPTFLAGS) $(CDEFS) $(OsVxiDef) $(CINCLUDE) $(OsVxiInc) $(PrjLibsInc) CxxFlags:= $(CppFlags) $(CXXFLAGS) $(OsCxxFlags) $(OPTFLAGS) $(CXXDEFS) $(OsVxiDef) $(CXXINCLUDE) $(OsVxiInc) $(PrjLibsInc) LdFlags:= $(LDFLAGS) $(OsLdFlags) ArFlags:= $(ARFLAGS) Libs:= $(PrjLibsLink) $(SysLibs) ############################################################################### # Set SEARCH-PATH ############################################################################### vpath %.o $(ObjDir) vpath %.d $(ObjDir) vpath %.a $(LibDir) vpath %.so $(LibDir) ############################################################################### # Pattern-Rules ############################################################################### .SUFFIXES: .SUFFIXES: .c .cxx .h .hxx .d $(EXTRASUFFIXES) $(ObjDir)/%.o: %.c @echo Compiling: $(notdir $<)... @$(CC) $(CFlags) -c $< -o $@ $(ObjDir)/%.d: %.c @echo Dependency: $(notdir $<)... @set -e; $(CC) $(CFlags) -MM $< \ | sed 's§$*\.o[ :]*§$(ObjDir)/$*\.o $@ : §' > $@; \ [ -s $@ ] || rm -f $@ $(ObjDir)/%.o: %.cxx @echo Compiling: $(notdir $<)... @$(CXX) $(CxxFlags) -c $< -o $@ $(ObjDir)/%.d: %.cxx @echo Dependency: $(notdir $<)... @set -e; $(CXX) $(CxxFlags) -MM $< \ | sed 's§$*\.o[ :]*§$(ObjDir)/$*\.o $@ : §' > $@; \ [ -s $@ ] || rm -f $@ ############################################################################### # Rules ############################################################################### .PHONY: all build dep clean make show Show _DUMMY_ all: make build: @echo Building: $(notdir $(TargetPath))... @$(MAKE) -s clean @$(MAKE) -s make clean: @echo Cleaning: $(RelObjDir)... @-rm -f $(TargetPath) @-cd $(ObjDir) ; rm -f *.o $(EXTRA_CLEAN_CMDS) fullclean: @echo FullCleaning: $(RelObjDir)... @$(MAKE) -s clean @-cd $(ObjDir) ; rm -f *.d make: $(TargetPath) $(TargetPath): $(ObjsPath) $(TypeMakeLibsPrereq) $(TypeDo) $(EXTRA_MAKE_CMDS) $(TypeMakeLibsTarget): @echo Making Lib '$(notdir $@)' needed by: $(basename $(TargetPath))... $(MAKE) -C $(BaseDir)/src/$(dir $(filter %$(notdir $@),$(PRJLIBS))) show: @echo BasicMake: SRCS: $(SRCS) @echo BasicMake: ObjsPath: $(ObjsPath) Show: @echo BasicMake: TARGET: _$(TARGET)_ # @echo BasicMake: SRCS: _$(SRCS)_ @echo BasicMake: USE_VXI: _$(USE_VXI)_ @echo BasicMake: OPTFLAGS: _$(OPTFLAGS)_ @echo BasicMake: PRJLIBS: _$(PRJLIBS)_ @echo BasicMake: SYSLIBS: _$(SYSLIBS)_ @echo BasicMake: EXTRASUFFIXES: _$(EXTRASUFFIXES)_ @echo BasicMake: CPPDEFS: _$(CPPDEFS)_ @echo BasicMake: CDEFS: _$(CDEFS)_ @echo BasicMake: CXXDEFS: _$(CXXDEFS)_ @echo BasicMake: CINCLUDE: _$(CINCLUDE)_ @echo BasicMake: CXXINCLUDE: _$(CXXINCLUDE)_ @echo BasicMake: CPPFLAGS: _$(CPPFLAGS)_ @echo BasicMake: CFLAGS: _$(CFLAGS)_ @echo BasicMake: CXXFLAGS: _$(CXXFLAGS)_ @echo BasicMake: LDFLAGS: _$(LDFLAGS)_ @echo BasicMake: ARFLAGS: _$(ARFLAGS)_ @echo BasicMake: CC: _$(CC)_ @echo BasicMake: CXX: _$(CXX)_ @echo BasicMake: LD: _$(LD)_ @echo BasicMake: AR: _$(AR)_ @echo BasicMake: RANLIB: _$(RANLIB)_ @echo BasicMake: Os: _$(Os)_ @echo BasicMake: OsLdFlags: _$(OsLdFlags)_ @echo BasicMake: OsSysLibs: _$(OsSysLibs)_ @echo BasicMake: OsVxiInc: _$(OsVxiInc)_ @echo BasicMake: OsVxiLib: _$(OsVxiLib)_ @echo BasicMake: OsVxiDef: _$(OsVxiDef)_ @echo BasicMake: BaseDir: _$(BaseDir)_ @echo BasicMake: RelSrcDir: _$(RelSrcDir)_ @echo BasicMake: SrcDir: _$(SrcDir)_ @echo BasicMake: ObjDir: _$(ObjDir)_ @echo BasicMake: LibDir: _$(LibDir)_ @echo BasicMake: BinDir: _$(BinDir)_ @echo BasicMake: Type: _$(Type)_ @echo BasicMake: TypePath: _$(TypePath)_ # @echo BasicMake: TypeDo: _$(TypeDo)_ @echo BasicMake: TypeDir: _$(TypeDir)_ @echo BasicMake: TargetExt: _$(TargetExt)_ @echo BasicMake: TargetName: _$(TargetName)_ # @echo BasicMake: Objs: _$(Objs)_ # @echo BasicMake: ObjsPath: _$(ObjsPath)_ @echo BasicMake: CFlags: _$(CFlags)_ @echo BasicMake: CxxFlags: _$(CxxFlags)_ @echo BasicMake: LdFlags: _$(LdFlags)_ @echo BasicMake: ArFlags: _$(ArFlags)_ @echo BasicMake: PrjLibsDir: _$(PrjLibsDir)_ @echo BasicMake: PrjLibsNoDir: _$(PrjLibsNoDir)_ @echo BasicMake: PrjLibsInc: _$(PrjLibsInc)_ @echo BasicMake: PrjLibsLink: _$(PrjLibsLink)_ ############################################################################### # include the *.d (dependency) files ############################################################################### ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),build) ifneq ($(MAKECMDGOALS),fullclean) include $(DepsPath) endif endif endif --------------7A92499E099F296868B1C3F0-- --------------msDAB986EEE0F7F6816A229AF5 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: Kryptographische Unterschrift mit S/MIME MIIOoAYJKoZIhvcNAQcCoIIOkTCCDo0CAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC DGQwggUfMIIEB6ADAgECAgMTPOgwDQYJKoZIhvcNAQEEBQAwgaExCzAJBgNVBAYTAkRFMRow GAYDVQQHExFELTc2MjI3IEthcmxzcnVoZTESMBAGA1UEChMJV0VCLkRFIEFHMRcwFQYDVQQL Ew5UcnVzdENlbnRlciBDQTEsMCoGA1UEAxMjV0VCLkRFIFRydXN0Q2VudGVyIFZvbGwtWmVy dGlmaWthdGUxGzAZBgkqhkiG9w0BCQEWDHRydXN0QHdlYi5kZTAeFw0wMDA4MDIwMDAwMDBa Fw0wMTA4MDEyMjAwMDBaMGQxCzAJBgNVBAYTAkRFMRcwFQYDVQQHEw5ELTUzMzQ3IEFsZnRl cjEWMBQGA1UEAxMNR3VlbnRlciBOZWlzczEkMCIGCSqGSIb3DQEJARYVZ25laXNzQHNjaG9l bmhvZmVyLmRlMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3hbJ2fXWUE/ofzci7YC5w uo5wm/I004Sobq2/kof2exZYphY2kS9VOhO4OR5ECnl/qzYJx1MqAFcaPIE986WczAB7IA3T s2E8yhGcrWnc666DcJnULl+/qH5bpj+ia+MxaWcTuevYmLBoj9MgyX1ojrruhIkBvbGcSDS2 wE6qQwIDAQABo4ICHjCCAhowLAYJYIZIAYb4QgEEBB8WHWh0dHBzOi8vdHJ1c3Qud2ViLmRl L3J2Q0EvP3M9MCMGCWCGSAGG+EIBAgQWFhRodHRwczovL3RydXN0LndlYi5kZTAWBglghkgB hvhCAQMECRYHL3J2Lz9zPTAWBglghkgBhvhCAQcECRYHL3JuLz9zPTAaBglghkgBhvhCAQgE DRYLL0hpbGZlL0FHQi8wEQYJYIZIAYb4QgEBBAQDAgCwMIIBZAYJYIZIAYb4QgENBIIBVRaC AVFEYXMgVHJ1c3RDZW50ZXIgdm9uIFdFQi5ERSAtIFNpY2hlcmhlaXQgenVtIE51bGx0YXJp ZgpCZW51dHplcmtvbW1lbnRhcjogRmlybWVuIEFjY291bnQKRGllIE51dHp1bmcgZGllc2Vz IFplcnRpZmlrYXQgd2lyZCB2b24gZGVuIEFsbGdlbWVpbmVuIEdlc2No5GZ0c2JlZGluZ3Vu Z2VuIChBR0IpIC8gWmVydGlmaXppZXJ1bmdzcmljaHRsaW5pZW4gZGVzIFdFQi5ERSBUcnVz dENlbnRlcnMgZ2VyZWdlbHQuCiBEaWUgQUdCcyBzaW5kIGF1ZiBkZW0gV2Vic2VydmVyIGRl cyBXRUIuREUgVHJ1c3RDZW50ZXJzIHVudGVyIGh0dHA6Ly90cnVzdC53ZWIuZGUvSGlsZmUv QUdCIGVpbnNlaGJhci4KMA0GCSqGSIb3DQEBBAUAA4IBAQCU3MhD1r7SpmzEOBtvK9rWwssq 4LlCAT7gkh06+ZrCvsQ2lktudn0D+1z7XD3JGdz/C/dXYXVrqKtLF1kAph6mEIkXjYuLUYx9 4TFwug6A/GG49SbN//uwAluIbFZ1PKqikpGY40WnaPOlKwsN6OY0hVCYpQzd+1yKTlBZgfTH XSRfmgI7WyZr6OXc6v5xpuSINotkJpdrATN8xnGsNSBnsPTrkR14Ooadp4qVNOlxz3u64Hpc 4zDjcb8F9X8C5xGDWZTr2JdOAX4IaQguOtLOQCiHjAgN4KXEjcdZX8T17z/1RFxUJmfjzEAu ph3wV3SRFATyc3chkV+yLlaeX7niMIIHPTCCBSWgAwIBAgIBAzANBgkqhkiG9w0BAQQFADCB jTELMAkGA1UEBhMCREUxGjAYBgNVBAcTEUQtNzYyMjcgS2FybHNydWhlMRIwEAYDVQQKEwlX RUIuREUgQUcxFDASBgNVBAsTC1RydXN0Q2VudGVyMRswGQYDVQQDExJXRUIuREUgVHJ1c3RD ZW50ZXIxGzAZBgkqhkiG9w0BCQEWDHRydXN0QHdlYi5kZTAeFw05OTA2MjMxMTQ3MzFaFw0w NDA2MjExMTQ3MzFaMIGhMQswCQYDVQQGEwJERTEaMBgGA1UEBxMRRC03NjIyNyBLYXJsc3J1 aGUxEjAQBgNVBAoTCVdFQi5ERSBBRzEXMBUGA1UECxMOVHJ1c3RDZW50ZXIgQ0ExLDAqBgNV BAMTI1dFQi5ERSBUcnVzdENlbnRlciBWb2xsLVplcnRpZmlrYXRlMRswGQYJKoZIhvcNAQkB Fgx0cnVzdEB3ZWIuZGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC1WPl9sfwi lDIStSPe0Owy8seLKYdQ3yhrqDKdEfPUzr48XwG6tgzeztYKbQ2R+UYMt/CHwDpzmahLZShU YhMH2nigK4IH4XY1MsdWW2CZnc852iZEduTfB8LoS+BiHshctUHui+psafwNgrKBv4kfFhXN ecoWa0CWFPvP6f6XIT0vE5IwB69vpbQSxk13HJ10dtySAUlI+kHOEHTCl9/PF38euR57kGm9 wMGdyNWgysBmG4DK6Bk0tbbFBfGkR+QQB6SuyobVKfWUr8X2sXCLhxw+LIju+Snd0pDpvWvz jxpg4h+oWCUf4ZPtEN8xIOGw1UHjdWAbsIYLblLfEXtFAgMBAAGjggKQMIICjDAsBglghkgB hvhCAQQEHxYdaHR0cHM6Ly90cnVzdC53ZWIuZGUvcnZDQS8/cz0wIwYJYIZIAYb4QgECBBYW FGh0dHBzOi8vdHJ1c3Qud2ViLmRlMBYGCWCGSAGG+EIBAwQJFgcvcnYvP3M9MBYGCWCGSAGG +EIBBwQJFgcvcm4vP3M9MBoGCWCGSAGG+EIBCAQNFgsvSGlsZmUvQUdCLzARBglghkgBhvhC AQEEBAMCAAcwDAYDVR0TBAUwAwEB/zBJBgNVHSAEQjBAMD4GC2CGSAGG+EUBBwEBMC8wLQYI KwYBBQUHAgEWIWh0dHA6Ly90cnVzdC53ZWIuZGUvSGlsZmUvUG9saWN5LzCCAUoGCWCGSAGG +EIBDQSCATsWggE3VHJ1c3RDZW50ZXIgdm9uIFdFQi5ERSAtIFplcnRpZmlrYXQgZvxyIGRp ZSBBdXNnYWJlIHZvbiBWb2xsLVplcnRpZmlrYXRlbgoKRGllIE51dHp1bmcgZGllc2VzIFpl cnRpZmlrYXRlcyB3aXJkIHZvbiBkZW4gQWxsZ2VtZWluZW4gR2VzY2jkZnRzYmVkaW5ndW5n ZW4gKEFHQikgLyBaZXJ0aWZpemllcnVuZ3NyaWNodGxpbmllbiBkZXMgV0VCLkRFIFRydXN0 Q2VudGVycyBnZXJlZ2VsdC4KRGllIEFHQnMgdW5kIFplcnRpZml6aWVydW5nc3JpY2h0bGlu aWVuIHNpbmQgdW50ZXIgaHR0cDovL3RydXN0LndlYi5kZS9IaWxmZS8gZWluc2VoYmFyLgow MQYDVR0fBCowKDAmoCSgIoYgaHR0cDovL3RydXN0LndlYi5kZS9jcmwvY2EwMS5jcmwwDQYJ KoZIhvcNAQEEBQADggIBABHxqND17r0CadCRrGQaLc7tHcFhnOdillrJ7QSI9pwKV3E7V9nP wKVyLTGnQvKJsiEtduPnF34CfGhqBNxYBJHcm2nyCvsUOI0Hyx685YiAPjl5EZGjIEQxxfrY lepyhuG/+QkLN8grPWD5ZkTPUQHB4cySV8eU4lHADgBVznPzcsLVnipae/ZimJ2lBlCtyDB+ halzxVArzrnckDkCNUMN+cpZuMzlAOkvyOIZg8j/Nz0n1EeHouBcKtNDdWEvdhTE51CSijz2 I7hZrQEeQhAw2O1m2fTWNfV1VOTflG7+oJ3V0KSQoIyTO7p0wr+3jWR0GAptPUga7KtnrB8m HHCTQSqMTDc8Tzv7Qi5dlhMYIV1tmEGe+IoqwU+MIpTh3BVL6Vk9Ck2lWh2hbBQShfi/ZpZz JXspJ0SUh74BimUo2I71v4ZV9TdgXu8ngvxoQBNogz2saeCJTdtiJ++HCZ3tRF+/b4cazbFJ HqUBW2R0U7p+8JrRB4As1zZNdVUdGpoIodl43Kva8+XjpLrQ2icntZVgp+wwtnvkGh3o/HsN N3RrHDYb7HijQKpOBhxMYfe17bOdRpN/wi4+QJoogAPpCYksE7FVnZoq4q0Mc709LTiWC5cf CCs9oRCTDl5IqEtfRtDu76Fs6jBPeetrWRptp4+xmqCur41AasXcroECMYICBDCCAgACAQEw gakwgaExCzAJBgNVBAYTAkRFMRowGAYDVQQHExFELTc2MjI3IEthcmxzcnVoZTESMBAGA1UE ChMJV0VCLkRFIEFHMRcwFQYDVQQLEw5UcnVzdENlbnRlciBDQTEsMCoGA1UEAxMjV0VCLkRF IFRydXN0Q2VudGVyIFZvbGwtWmVydGlmaWthdGUxGzAZBgkqhkiG9w0BCQEWDHRydXN0QHdl Yi5kZQIDEzzoMAkGBSsOAwIaBQCggbEwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkq hkiG9w0BCQUxDxcNMDEwMTMwMTIyMDMzWjAjBgkqhkiG9w0BCQQxFgQUN0Lg5TN/nFOfCdVp AKCcyfarGl8wUgYJKoZIhvcNAQkPMUUwQzAKBggqhkiG9w0DBzAOBggqhkiG9w0DAgICAIAw BwYFKw4DAgcwDQYIKoZIhvcNAwICAUAwDQYIKoZIhvcNAwICASgwDQYJKoZIhvcNAQEBBQAE gYBxcOGy8NvFrup6V1ZivsmpVol2+Nn9CPdv+kx+r9fHRLX1GD/KsSGbscE1juaB1tcz6kgs iL34K2E2CCTSdWnlVJgCzTz9GuRHlLwBETmQtRwZoEHSISPK8vD2HQCFraCBRlxRorpLeO17 2XgNMGO85QYLUi3NmbxJ+Nvss9dRwA== --------------msDAB986EEE0F7F6816A229AF5-- From jaros@stapro.sk Wed Jan 31 05:29:39 2001 Received: from gw.stapro.sk ([62.168.65.37]) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14NuVm-0000J6-00 for ; Wed, 31 Jan 2001 05:29:18 -0500 Received: from stano.stapro.sk (stano [192.168.1.3]) by gw.stapro.sk (8.9.3/8.8.7) with SMTP id MAA13295 for ; Wed, 31 Jan 2001 12:22:17 +0100 Received: by stano.stapro.sk with Microsoft Mail id <01C08B79.1008F4E0@stano.stapro.sk>; Wed, 31 Jan 2001 11:29:24 +0100 Message-ID: <01C08B79.1008F4E0@stano.stapro.sk> From: jaros To: "'help-make@gnu.org'" Subject: problems with make Date: Wed, 31 Jan 2001 11:29:16 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: Hello . I could't install postgreSQL on my server. Help me please. My information about my system: - operating system - Solaris 2.6 for SPARC SunOS 5.6 Generic_105181-23 sun4u sparc SUNW,Ultra-250 I have installed also: - gcc-2.8.1-sol26-sparc-local.gz - gmake-3.78-sol2.6.tar.Z - make-3.76.1-sol26-sparc-local.gz After typing $ make I get message: You must use GNU make to use Postgres. It may be installed on your system with the name 'gmake'. NOTE: If you are sure that you are using GNU make and you are still getting this message, you may simply need to run the configure program. $ gmake I get message : gmake: syntax error at line 1: `(' unexpected Any help would be appreciated. From joostvb@mdcc.cx Wed Jan 31 08:18:45 2001 Received: from d4052.upc-d.chello.nl ([213.46.4.52] helo=mdcc.cx) by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian)) id 14Nx9o-0005re-00 for ; Wed, 31 Jan 2001 08:18:44 -0500 Received: (qmail 18545 invoked by uid 1000); 31 Jan 2001 13:18:35 -0000 Date: Wed, 31 Jan 2001 14:18:34 +0100 From: Joost van Baal To: jaros Cc: "'help-make@gnu.org'" Subject: Re: problems with make Message-ID: <20010131141834.V16138@gelfand> References: <01C08B79.1008F4E0@stano.stapro.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <01C08B79.1008F4E0@stano.stapro.sk>; from jaros@stapro.sk on Wed, Jan 31, 2001 at 11:29:16AM +0100 X-PGP-Fingerprint: 8FC6 A40E 31B8 7E0E 2270 D7A9 0606 9CF2 9694 57F0 X-PGP-Key-ID: 0x969457F0 X-Accept-Language: nl, en Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: On Wed, Jan 31, 2001 at 11:29:16AM +0100, jaros wrote: > Hello . > I could't install postgreSQL on my server. Help me please. > > $ gmake > I get message : > gmake: syntax error at line 1: `(' unexpected > > Any help would be appreciated. I believe you should ask the PostgreSQL people. Joost -- Open Source and Free Software Developers Meeting 3rd and 4th february 2001, Brussels Visit http://www.osdem.org and subscribe to the mailing list! From psmith@baynetworks.com Wed Jan 31 09:23:00 2001 Received: from ns3.baynetworks.com ([192.32.253.3] helo=lobster.baynetworks.com) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14Ny9z-0002TJ-00 for ; Wed, 31 Jan 2001 09:22:59 -0500 Received: from mailhost.BayNetworks.COM (ns4.baynetworks.com [132.245.135.84]) by lobster.baynetworks.com (8.9.1/8.9.1) with ESMTP id JAA20074 for ; Wed, 31 Jan 2001 09:28:29 -0500 (EST) Received: from pobox.engeast.BayNetworks.COM (pobox.engeast.baynetworks.com [192.32.61.6]) by mailhost.BayNetworks.COM (8.9.1/8.8.8) with ESMTP id JAA01573 for ; Wed, 31 Jan 2001 09:22:58 -0500 (EST) Received: from lemming.engeast.baynetworks.com (lemming [192.32.150.127]) by pobox.engeast.BayNetworks.COM (SMI-8.6/BNET-97/04/24-S) with SMTP id JAA04171; Wed, 31 Jan 2001 09:22:57 -0500 for Received: from psmith by lemming.engeast.baynetworks.com with local (Exim 3.16 #1 (Debian)) id 14Ny9p-00054H-00; Wed, 31 Jan 2001 09:22:49 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14968.8121.808044.401851@lemming.engeast.baynetworks.com> Date: Wed, 31 Jan 2001 09:22:49 -0500 To: jaros Cc: "'help-make@gnu.org'" Subject: Re: problems with make In-Reply-To: <01C08B79.1008F4E0@stano.stapro.sk> References: <01C08B79.1008F4E0@stano.stapro.sk> X-Mailer: VM 6.89 under Emacs 20.7.2 From: "Paul D. Smith" Reply-To: "Paul D. Smith" Organization: GNU's Not Unix! Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: %% jaros writes: j> - make-3.76.1-sol26-sparc-local.gz Where does this version of make get installed, and what is it called? If it's installed as "make" you need to make sure its directory is on your PATH _before_ any other directories containing other "make" programs (like /usr/ccs/bin). j> $ gmake j> I get message : j> gmake: syntax error at line 1: `(' unexpected This error is not generated by GNU make. That says to me that "gmake" is not the actual GNU make program, but rather a script, or some other program. -- ------------------------------------------------------------------------------- Paul D. Smith Find some GNU make tips at: http://www.gnu.org http://www.paulandlesley.org/gmake/ "Please remain calm...I may be mad, but I am a professional." --Mad Scientist From fjh@cs.mu.oz.au Wed Jan 31 10:51:07 2001 Received: from mail-gate.cs.mu.oz.au ([198.142.254.221] helo=mumnunah.cs.mu.OZ.AU) by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian)) id 14NzXD-0008EG-00; Wed, 31 Jan 2001 10:51:05 -0500 Received: from hg.cs.mu.oz.au (root@hg.cs.mu.OZ.AU [128.250.25.19]) by mumnunah.cs.mu.OZ.AU with ESMTP id CAA04635; Thu, 1 Feb 2001 02:50:51 +1100 (EST) Received: (from fjh@localhost) by hg.cs.mu.oz.au (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id CAA19070; Thu, 1 Feb 2001 02:50:49 +1100 Date: Thu, 1 Feb 2001 02:50:49 +1100 From: Fergus Henderson To: "Paul D. Smith" Cc: jaros , "'help-make@gnu.org'" Subject: Re: problems with make Message-ID: <20010201025049.A17339@hg.cs.mu.oz.au> References: <01C08B79.1008F4E0@stano.stapro.sk> <14968.8121.808044.401851@lemming.engeast.baynetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <14968.8121.808044.401851@lemming.engeast.baynetworks.com> Sender: help-make-admin@gnu.org Errors-To: help-make-admin@gnu.org X-BeenThere: help-make@gnu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU implementation of make List-Unsubscribe: , List-Archive: On 31-Jan-2001, Paul D. Smith wrote: > j> gmake: syntax error at line 1: `(' unexpected > > This error is not generated by GNU make. That says to me that "gmake" > is not the actual GNU make program, but rather a script, or some other > program. Another possible cause is that you're trying to run a version of make that was compiled for one architecture on a different architecture. In that case, the shell or OS may notice that the file you're trying to run doesn't match the usual format for an executable on this system, and so may fall back to treating it as a shell script; you'll then get a message from the shell like the one above, indicating that the binary file that it tried to execute is not valid syntax for a shell script. -- Fergus Henderson | "I have always known that the pursuit | of excellence is a lethal habit" WWW: | -- the last words of T. S. Garp.