[ace-users] Generating Makefiles with mpc

[ace-users] Generating Makefiles with mpc

Post by Stev » Sat, 27 Nov 2004 17:52:41


This is a multi-part message in MIME format.


ACE Version:
This is ACE version 5.3a_p1-OCI, released Tue Oct 21 13:50:00 2003.
HOST MACHINE and OPERATING SYSTM:
P4 1.7Ghz Windows XP with Interix POSIX subsystem 3.5
CONTENTS OF $ACE_ROOT/ace/config.h
-- Not relevant to question
COPY OF PLATFORM_MACROS_GNU (points to platform_interix.GNU)

-- Not relevant to question


Hi:

Is there a simpleton guide to generating Makefiles via MPC?

I have downloaded from CVS the latest sources and there is no makefile. What is the quickest way (without reading 3 days of MPC manuals) to generate a G++ makefile. A makefile that should probably be in CVS... The same makefile that comes with dowloaded versions.

Thanks
Steve


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6603.0">
<TITLE>Generating Makefiles with mpc</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Courier New">ACE Version:</FONT><FONT FACE="Times New Roman"><BR>
</FONT><FONT SIZE=2 FACE="Courier New">This is ACE version 5.3a_p1-OCI, released Tue Oct 21 13:50:00 2003.</FONT><FONT FACE="Times New Roman"> </FONT>

<BR><FONT SIZE=2 FACE="Courier New">HOST MACHINE and OPERATING SYSTM:</FONT><FONT FACE="Times New Roman"><BR>
</FONT><FONT SIZE=2 FACE="Courier New">P4 1.7Ghz Windows XP with Interix POSIX subsystem 3.5</FONT><FONT FACE="Times New Roman"> </FONT>

<BR><FONT SIZE=2 FACE="Courier New">CONTENTS OF $ACE_ROOT/ace/config.h</FONT><FONT FACE="Times New Roman"> </FONT>

<BR><FONT FACE="Times New Roman">-- Not relevant to question<BR>
</FONT><FONT SIZE=2 FACE="Courier New">COPY OF PLATFORM_MACROS_GNU (points to platform_interix.GNU)</FONT><FONT FACE="Times New Roman"> </FONT>
</P>

<P><FONT FACE="Times New Roman">-- Not relevant to question<BR>
</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Hi:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Is there a simpleton guide to generating Makefiles via MPC?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have downloaded from CVS the latest sources and there is no makefile.  What is the quickest way (without reading 3 days of MPC manuals) to generate a G++ makefile.  A makefile that should probably be in CVS...  The same makefile that comes with dowloaded versions.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Thanks</FONT>

<BR><FONT SIZE=2 FACE="Arial">Steve</FONT>
</P>

</BODY>
</HTML>
 
 
 

[ace-users] Generating Makefiles with mpc

Post by Stefan N » Sat, 27 Nov 2004 17:54:19


Lookie, lookie here:

http://www.yqcomputer.com/

and in $ACE_ROOT/MPC/{USAGE,README}

HTH

Stefan

--
----------------------------------------------------------------------
Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-3969 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen

 
 
 

[ace-users] Generating Makefiles with mpc

Post by Johnny Wil » Sat, 27 Nov 2004 17:54:33

Hi,

Please use the PRF form when asking questions.


For questions about the OCI distribution please contact OCI directly.


Yes, see ACE_wrappers/MPC for explanations or the ACE-INSTALL.html file


First, makefiles are not in cvs anymore, they are generated in the release
process. See the ACE-INSTALL.html, at the end of this file there is a
description how to regenerate the files.

Regards,

Johnny Willemsen
Remedy IT
Leeghwaterstraat 25
2811 DT Reeuwijk
The Netherlands
www.theaceorb.nl / www.remedy.nl
 
 
 

[ace-users] Generating Makefiles with mpc

Post by Stev » Sat, 27 Nov 2004 17:56:16

Hi Stefan:

That is a download page.

What commands do I run to generate the makefile.

Thanks
Steve

-----Original Message-----
From: Stefan Ne [mailto: XXXX@XXXXX.COM ]
Sent: Friday, November 26, 2004 12:50 AM
To: Frare, Steven A (Steven)
Cc: XXXX@XXXXX.COM
Subject: Re: [ace-users] Generating Makefiles with mpc




Lookie, lookie here:

http://www.yqcomputer.com/

and in $ACE_ROOT/MPC/{USAGE,README}

HTH

Stefan
--
----------------------------------------------------------------------
Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-3969 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
 
 
 

[ace-users] Generating Makefiles with mpc

Post by Stev » Sat, 27 Nov 2004 18:07:50

HI:


I DID USE THE PRF FORM.


PLEASE READ IT, I DOWNLOADED THE LATEST SOURCE FROM CVS.


<quote>
$ACE_ROOT/bin/mwc.pl ACE.mwc </quote>
SO YOU ARE SAYING TO GENERATE GNU MAKEFILES PASS THE VC6 COMMAND TO MPC? OKAY..

THANKS

Steve



-----Original Message-----
From: Johnny Willemsen [mailto: XXXX@XXXXX.COM ]
Sent: Friday, November 26, 2004 12:51 AM
To: Frare, Steven A (Steven); XXXX@XXXXX.COM
Subject: RE: [ace-users] Generating Makefiles with mpc


Hi,

Please use the PRF form when asking questions.


For questions about the OCI distribution please contact OCI directly.


Yes, see ACE_wrappers/MPC for explanations or the ACE-INSTALL.html file


First, makefiles are not in cvs anymore, they are generated in the release
process. See the ACE-INSTALL.html, at the end of this file there is a
description how to regenerate the files.

Regards,

Johnny Willemsen
Remedy IT
Leeghwaterstraat 25
2811 DT Reeuwijk
The Netherlands
www.theaceorb.nl / www.remedy.nl
 
 
 

[ace-users] Generating Makefiles with mpc

Post by Stefan N » Sat, 27 Nov 2004 18:21:47


What do you mean by 'pass the VC6 command to MPC' ??

If you want to generate GNUMakefiles for make/g++ use

$ACE_ROOT/bin/mwc.pl ACE.mwc

For VC6 Workspaces:

$ACE_ROOT/bin/mwc.pl -type vc6 ACE.mwc

For VC6 Makefiles usable with nmake:

$ACE_ROOT/bin/mwc.pl -type nmake ACE.mwc


HTH

Stefan
--
----------------------------------------------------------------------
Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-3969 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
 
 
 

[ace-users] Generating Makefiles with mpc

Post by Stev » Sat, 27 Nov 2004 19:18:59

Thanks Stefan, that is very helpful.

-----Original Message-----
From: Stefan Ne [mailto: XXXX@XXXXX.COM ]
Sent: Friday, November 26, 2004 1:17 AM
To: Frare, Steven A (Steven)
Cc: XXXX@XXXXX.COM
Subject: Re: [ace-users] Generating Makefiles with mpc




What do you mean by 'pass the VC6 command to MPC' ??

If you want to generate GNUMakefiles for make/g++ use

$ACE_ROOT/bin/mwc.pl ACE.mwc

For VC6 Workspaces:

$ACE_ROOT/bin/mwc.pl -type vc6 ACE.mwc

For VC6 Makefiles usable with nmake:

$ACE_ROOT/bin/mwc.pl -type nmake ACE.mwc


HTH

Stefan
--
----------------------------------------------------------------------
Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-3969 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
 
 
 

[ace-users] Generating Makefiles with mpc

Post by Stev » Sat, 27 Nov 2004 19:19:05

Hi Johnny:

Here is the output from doing _EXACTLY_ what you said, the result is not the desired result. Hopefully you can answer the question I asked. If not I can always work around it...

Thanks
Steve

% pwd
/opt/ACE_wrappers
% $ACE_ROOT/bin/mwc.pl ACE.mwc
Generating gnuace output using ACE.mwc
Start Time: Fri Nov 26 01:39:03 2004
Skipping QtReactor_Test (tests.mpc), it requires qt.
Skipping Thread_Pool_Reactor_SSL_Test (tests.mpc), it requires ssl.
Skipping RPC_Client (RPC.mpc), it requires rpc.
Skipping RPC_Server (RPC.mpc), it requires rpc.
Skipping QOS_Simple_Receiver (QOS_Simple.mpc), it requires qos.
Skipping QOS_Simple_Sender (QOS_Simple.mpc), it requires qos.
Skipping QOS_Diffserv_Client (QOS_Diffserv.mpc), it requires qos.
Skipping QOS_Diffserv_Server (QOS_Diffserv.mpc), it requires qos.
Skipping QOS_Change_Sender_FlowSpec_Receiver
(QOS_Change_Sender_FlowSpec.mpc), i
t requires qos.
Skipping QOS_Change_Sender_FlowSpec_Sender (QOS_Change_Sender_FlowSpec.mpc),
it
requires qos.
Skipping QOS_Change_Receiver_FlowSpec_Receiver
(QOS_Change_Receiver_FlowSpec.mpc
), it requires qos.
Skipping QOS_Change_Receiver_FlowSpec_Sender
(QOS_Change_Receiver_FlowSpec.mpc),
it requires qos.
Skipping Log_Msg_MFC (Log_Msg_MFC.mpc), it requires mfc.
Skipping SSL_SAP_Client (SSL_SAP.mpc), it requires ssl.
Skipping SSL_SAP_Client_Simple (SSL_SAP.mpc), it requires ssl.
Skipping SSL_SAP_Server (SSL_SAP.mpc), it requires ssl.
Skipping SSL_SAP_Server_Fancy (SSL_SAP.mpc), it requires ssl.
Skipping SSL_SAP_Server_Poll (SSL_SAP.mpc), it requires ssl.
Skipping SSL_SAP_Server_Simple (SSL_SAP.mpc), it requires ssl.
Skipping ConfigViewer (ConfigViewer.mpc), it requires wxWindows.
Skipping C++NPv2_AC_CLD (C++NPv2.mpc), it requires ssl.
Skipping C++NPv2_AIO_CLD (C++NPv2.mpc), it requires ssl.
Skipping C++NPv2_TPCLS (C++NPv2.mpc), it requires ssl.
Skipping FaCENOACE (FaCENOACE.mpc), it requires wince.
Skipping FaCE (FaCE.mpc), it requires wince.
Skipping SSL (ssl.mpc), it requires ssl.
Skipping QoS (qos.mpc), it requires qos.
End Time: Fri Nov 26 01:48:27 2004
% pwd
/opt/ACE_wrappers
% find . -name Makefile
%


-----Original Message-----
From: Johnny Willemsen [mailto: XXXX@XXXXX.COM ]
Sent: Friday, November 26, 2004 1:08 AM
To: Frare, Steven A (Steven); XXXX@XXXXX.COM
Subject: RE: [ace-users] Generating Makefiles with mpc


Hi,


You zapped to much, just don't change the layout, fill in the things


Your PRF form states with the version the following, this says enough. If
you use CVS, say that with the version


Just read the ACE-INSTALL.html

Johnny
 
 
 

[ace-users] Generating Makefiles with mpc

Post by Johnny Wil » Sat, 27 Nov 2004 19:19:54

i,


Just give make, the files generated are called GNUmakefile*, not Makefile

Regards,

Johnny Willemsen
Remedy IT
Leeghwaterstraat 25
2811 DT Reeuwijk
The Netherlands
www.theaceorb.nl / www.remedy.nl





















































































 
 
 

[ace-users] Generating Makefiles with mpc

Post by Stefan N » Sat, 27 Nov 2004 19:21:29


> I asked. If not I can always work around it...
> [...]

Try 'find . -name GNUmakefile' instead.

ACE's mwc.pl uses '-type gnuace' as default which generates GNUmakefiles
for g++/GNU make (which knows about GNUmakefiles, btw.).

Stefan

--
----------------------------------------------------------------------
Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-3969 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
 
 
 

[ace-users] Generating Makefiles with mpc

Post by Stev » Sat, 27 Nov 2004 19:25:35

know that, the question was how to make Makefile from mpc.

I already have a build system under HPUX and Windows, I am now trying to add a new platform. With the new platform I need to build from CVS (the others work fine from DL archive which includes Makefile, the new platform I need to work out of CVS). They expect MAKEFILE not GNUMAKEFILE.

If there is no way to do that then I can simply write a script to rename GNUMakefile to Makefile recursively.

Thanks
Steve


-----Original Message-----
From: Johnny Willemsen [mailto: XXXX@XXXXX.COM ]
Sent: Friday, November 26, 2004 2:15 AM
To: Frare, Steven A (Steven); XXXX@XXXXX.COM
Subject: RE: [ace-users] Generating Makefiles with mpc


Hi,


Just give make, the files generated are called GNUmakefile*, not Makefile

Regards,

Johnny Willemsen
Remedy IT
Leeghwaterstraat 25
2811 DT Reeuwijk
The Netherlands
www.theaceorb.nl / www.remedy.nl




































































 
 
 

[ace-users] Generating Makefiles with mpc

Post by Johnny Wil » Sat, 27 Nov 2004 19:29:38

Hi,


You question was how to create G++ makefiles, GNU make understands the files
GNUmakefile.


Are you using the GNU make?


I think you are not using GNU make, but another make. In case you use
another make, you maybe need to have another mpc target to generate. What is
the output of make --? Or make --version.

Johnny
 
 
 

[ace-users] Generating Makefiles with mpc

Post by Stefan N » Sat, 27 Nov 2004 19:31:14


> to add a new platform. With the new platform I need to build from

> the new platform I need to work out of CVS). They expect MAKEFILE
> not NUMAKEFILE.
> rename GNUMakefile to Makefile recursively.

That would work only for the 'real' GNUmakefiles and not for the
GNUmakefile.projectname.


You could instead create a top-level Makefile by hand that
either includes the GNUmakefile or calls 'make -f GNUmakefile'

Stefan
--
----------------------------------------------------------------------
Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-3969 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
 
 
 

[ace-users] Generating Makefiles with mpc

Post by Stev » Sat, 27 Nov 2004 19:45:15

Hi Johnny:

Unfortunately not all versions of gmake (at least the ones I have used) understand the precedence order of Makefiles as outlined by man Make...

I don't have access to the Windows machine right now, here is HPUX and Interix:

#HPUX
$ uname -a
HP-UX redux07 B.11.00 A 9000/785 2006737919 two-user license
$ gmake -version
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
$

#Interix
% uname -a
Interix PENTIUM 3.5 SP-8.0.1969.1 x86 Intel_x86_Family15_Model1_Stepping2
% make --version
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
%

Thanks
Steve

-----Original Message-----
From: Johnny Willemsen [mailto: XXXX@XXXXX.COM ]
Sent: Friday, November 26, 2004 2:25 AM
To: Frare, Steven A (Steven); XXXX@XXXXX.COM
Subject: RE: [ace-users] Generating Makefiles with mpc


Hi,


You question was how to create G++ makefiles, GNU make understands the files
GNUmakefile.


Are you using the GNU make?


I think you are not using GNU make, but another make. In case you use
another make, you maybe need to have another mpc target to generate. What is
the output of make --? Or make --version.

Johnny
 
 
 

[ace-users] Generating Makefiles with mpc

Post by Johnny Wil » Sat, 27 Nov 2004 19:48:58

Hi,


So far as I know all GNU makes from 3.79 and newer support this (gnu make
versions older than 3.79 are not supported). The versions you give below are
newer and support this. If you have somewhere a GNU make version 3.79 or
newer that don't support GNUmakefile, then please contact the maintains of
GNU make on that platform.

Regards,

Johnny