[ace-users] ACE: Need a makefile for building a library ofcomponents that use ACE.

[ace-users] ACE: Need a makefile for building a library ofcomponents that use ACE.

Post by Steve Hust » Sat, 23 Sep 2006 00:52:02


his is a multi-part message in MIME format.



Hi Robert,

Chad's advice to use MPC is good. If you do want to use your Makefile
below, I believe all you'll need to do is add:

include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU

in the section of includes.

Best regards,
-Steve

--
Steve Huston, Riverace Corporation
Next public ACE training October 17-20, 2006!
See http://www.riverace.com/training.htm


-----Original Message-----
From: XXXX@XXXXX.COM
[mailto: XXXX@XXXXX.COM ] On Behalf Of Robert
Thornthwaite
Sent: Wednesday, September 20, 2006 1:33 PM
To: XXXX@XXXXX.COM
Subject: [ace-users] ACE: Need a makefile for building a library
ofcomponents that use ACE.


Hello,

I hope this is an easy question for someone:

ACE VERSION: 5.5.1

HOST MACHINE and OPERATING SYSTEM:
RedHat Enterprise Linux Version 4
gcc (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2)
GNU Make 3.80

THE $ACE_ROOT/ace/config.h FILE :
#include "ace/config-linux.h"

THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE :
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU

CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
I am not using MPC. Should I use it for a simple job? I could not
find the default.features file.

DESCRIPTION:
I am trying to build a small object library which can be used to
build other applications.
I can build an application that works with these modules if I
just compile and link everything together
but it would be useful if I could make an object library.
I am having trouble with the makefile. I am using the example from
the APG but it is not working.
I am hoping for advice but I will figure it out on my own if
necessary.

Here is my makefile:
SHLIB = DR_STIZ.$(SOEXT)
FILES = DR_STIZ DR_STIZ_Messages Configuration
LSRC = $(addsuffix .cpp, $(FILES))
LIBS += $(ACELIB)
BUILD = $(VSHLIB)
#----------------------------------------------------
# Include macros and targets
#----------------------------------------------------
include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
#----------------------------------------------------
# Local targets
#----------------------------------------------------
CPPFLAGS += -DLINUX -I../ias_common
ifeq ($(shared_libs),1)
ifneq ($(SHLIB),)
CPPFLAGS += -DSLD_BUILD_DLL
endif
endif
#%.o : %.cpp
# $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

Here is what I get when I run make:
[bthornth@roer ias_dr_stiz]$ make
GNUmakefile: /user/bthornth/workarea/ias_dr_stiz/GNUmakefile
MAKEFLAGS=
[bthornth@roer ias_dr_stiz]$


SYNOPSIS:
How does one make a makefile for building a library of components that
use ACE?


Thank you.

Regards,
Bob


This email and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to whom they
are addressed. If you are not the original recipient or the person
responsible for delivering the email to the intended recipient, be
advised that you have received this email in error, and that any use,
dissemination, forwarding, printing, or copying of this email is
strict
 
 
 

[ace-users] ACE: Need a makefile for building a library ofcomponents that use ACE.

Post by Robert Tho » Sat, 23 Sep 2006 02:11:58

his is a multi-part message in MIME format.


To: Steve Huston, Chad Elliott, David Hawkins

Thanks for the help. I have had success with MPC. I will be learning
more about MPC and Autotools as well.
I am having great success with ACE. Thank you for supporting it. It
is a great contribution to humanity.

Regards,
Bob

Robert Thornthwaite
Input/Output, Inc.
web: http://www.i-o.com/



________________________________

From: Steve Huston [mailto: XXXX@XXXXX.COM ]
Sent: Thursday, September 21, 2006 10:52 AM
To: Robert Thornthwaite; XXXX@XXXXX.COM
Subject: RE: [ace-users] ACE: Need a makefile for building a
library ofcomponents that use ACE.


Hi Robert,

Chad's advice to use MPC is good. If you do want to use your
Makefile below, I believe all you'll need to do is add:


include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU

in the section of includes.

Best regards,
-Steve

--
Steve Huston, Riverace Corporation
Next public ACE training October 17-20, 2006!
See http://www.riverace.com/training.htm


-----Original Message-----
From: XXXX@XXXXX.COM
[mailto: XXXX@XXXXX.COM ] On Behalf Of Robert
Thornthwaite
Sent: Wednesday, September 20, 2006 1:33 PM
To: XXXX@XXXXX.COM
Subject: [ace-users] ACE: Need a makefile for building a
library ofcomponents that use ACE.


Hello,

I hope this is an easy question for someone:

ACE VERSION: 5.5.1

HOST MACHINE and OPERATING SYSTEM:
RedHat Enterprise Linux Version 4
gcc (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2)
GNU Make 3.80

THE $ACE_ROOT/ace/config.h FILE :
#include "ace/config-linux.h"

THE $ACE_ROOT/include/makeinclude/platform_macros.GNU
FILE :
include
$(ACE_ROOT)/include/makeinclude/platform_linux.GNU

CONTENTS OF
$ACE_ROOT/bin/MakeProjectCreator/config/default.features
I am not using MPC. Should I use it for a simple
job? I could not find the default.features file.

DESCRIPTION:
I am trying to build a small object library which
can be used to build other applications.
I can build an application that works with these
modules if I just compile and link everything together
but it would be useful if I could make an object
library.
I am having trouble with the makefile. I am using
the example from the APG but it is not working.
I am hoping for advice but I will figure it out on
my own if necessary.

Here is my makefile:
SHLIB = DR_STIZ.$(SOEXT)
FILES = DR_STIZ DR_STIZ_Messages Configuration
LSRC = $(addsuffix .cpp, $(FILES))
LIBS += $(ACELIB)
BUILD = $(VSHLIB)
#----------------------------------------------------
# Include macros and targets
#----------------------------------------------------
include
$(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
include
$(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
#----------------------------------------------------
# Local targets
#----------------------------------------------------
CPPFLAGS += -DLINUX -I../ias_common
ifeq ($(shared_libs),1)
ifneq ($(SHLIB),)
CPPFLAGS += -DSLD_BUILD_DLL
endif
endif
#%.o : %