[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: omniorb debs



Hallo,

On Tue, Dec 18, 2001 at 04:56:18PM +0100, Bastian Blank wrote:
> i know the power of autoconf/automake and use them in my own projects,
> but i aren't able to do such transition in omniORB.
> what about only including the sources without makefiles?

Even the non-working Makefiles might be better than none,
because people can deduce something from them.

I'm not an autoconf/automake expert, so other people might
suggest better ideas.  But, what I did was to include some
checks in configure.in (has to be configure.ac nowadays):

AC_CHECK_HEADERS(omniORB3/CORBA.h omniORB3/callDescriptor.h omniORB3/tcDescriptor.h)

and:

AC_CHECK_PROGS(OMNIIDL, omniidl, false)

And my Makefile.am was sth. like:

IDLFILE=myidl
bin_PROGRAMS = client server
BUILT_SOURCES = $(IDLFILE)SK.cc $(IDLFILE).hh
client_SOURCES = client.cc $(BUILT_SOURCES)
server_SOURCES = server.cc $(BUILT_SOURCES)
LDADD = -lomniORB3 -ltcpwrapGK -lomnithread -lpthread
INCLUDES = -I.
CXXFLAGS = -O2 -Wall -Wno-unused -D__OMNIORB3__ -D_REENTRANT -D__x86__ -D__linux__ -D__OSVERSION__=2

$(IDLFILE)SK.cc $(IDLFILE).hh: $(IDLFILE).idl
	$(OMNIIDL) -bcxx -Wba $<; rm -f $(IDLFILE)DynSK.cc

I didn't need the myidlDynSK.cc, but it might be better not
to remove it.

Cheers,
-- 
W. Borgert <debacle@debian.org>



Reply to: