# ============================================================== # Copyright (c) 1998-1999 ACT Financial Systems Pty Ltd. # All Rights Reserved. # This make library may be used and distributed under the terms # of the GNU LGPL, as published by the Free Software Foundation. # See the file COPYING for details. # ============================================================== # $Id: omniidl.mk,v 1.14 1999/07/11 04:17:56 trb Exp $ #------------------------------------------------------------------------------------------------------- # refers to: OMNIIDL omniidl_flags omniorbflags OMNIORBINCS omniorblibs OMNIORBLIBDIRS defineflag #------------------------------------------------------------------------------------------------------- # provides variables: omniorbflags idl_incpathflag #------------------------------------------------------------------------------------------------------- # provides commands: idl_compiler #------------------------------------------------------------------------------------------------------- # contributes to: lib3rd_cxxflags_debug lib3rd_cxxflags_optimise lib3rd_cxxincs # lib3rd_cxxlibs_debug lib3rd_cxxlibs_optimise lib3rd_cxxlibdirs #------------------------------------------------------------------------------------------------------- # OmniORB compiler/linker settings # settings depend on the platform (Windows, unix) ifeq ($(target_os_kind),$(ms_windows)) omniorbflags = $(defineflag)OMNIORB $(defineflag)__WIN32__ $(defineflag)__x86__ \ $(defineflag)__NT__ $(defineflag)__OSVERSION__=4 omniorbflags_debug = $(omniorbflags) omniorbflags_optimise = $(omniorbflags) omniorbincs = $(OMNIORB_BASE)/include $(OMNIORB_BASE)/include/omniORB2 omniorblibs_debug = omniORB271_rtd omnithread2_rtd omniorblibs_optimise = omniORB271_rt omnithread2_rt omniorblibdirs = $(OMNIORB_BASE)/lib/x86_win32 else ifeq ($(target_os),$(linux)) # current egcs compilers do not need -fhandle-exceptions, older compilers may omniorbflags = -Wall -Wno-unused $(defineflag)__OMNIORB2__ $(defineflag)PthreadDraftVersion=10 $(defineflag)NoNanoSleep $(defineflag)_REENTRANT $(defineflag)__x86__ $(defineflag)__linux__ $(defineflag)__OSVERSION__=2 omniorbflags_debug = $(omniorbflags) omniorbflags_optimise = $(omniorbflags) omniorbincs = /usr/include/omniORB2 omniorblibs = omniORB2 omnithread pthread nsl tcpwrapGK omniorblibs_debug = $(omniorblibs) omniorblibs_optimise = $(omniorblibs) # this is /usr/lib - don't need to specify it omniorblibdirs = else omniorbflags = -w -fsimple $(defineflag)__OMNIORB2__ $(defineflag)UsePthread $(defineflag)_REENTRANT \ -mt $(defineflag)__sparc__ $(defineflag)__sunos__ $(defineflag)__OSVERSION__=5 omniorbflags_debug = $(omniorbflags) omniorbflags_optimise = $(omniorbflags) omniorbincs = $(OMNIORB_BASE)/include $(OMNIORB_BASE)/include/omniORB2 omniorblibs = omniORB2 omnithread pthread posix4 socket nsl tcpwrapGK omniorblibs_debug = $(omniorblibs) omniorblibs_optimise = $(omniorblibs) omniorblibdirs = $(OMNIORB_BASE)/lib/sun4_sosV_5.6 endif endif # this is not for omniORB itself # it just tells our corba support code that we are using omniORB omniorbflags += -DOMNIORB # make generated header file suffix ".h", and skeleton file suffix "SK.cpp" omniidl_flags = -h .hh -s SK.cpp # OmniORB IDL compiler idl_compiler = $(OMNIIDL) $(omniidl_flags) # use platform default include path flag for IDL compiler idl_incpathflag = $(default_incpathflag) #//+ WHAT ABOUT the LD_LIBRARY_PATH setting needed by omniORB ?? # provide support for corba, if required # map OmniORB settings to general ORB settings ifeq ($(strip $(SUPPORT_CORBA)),yes) lib3rd_cxxflags_debug += $(omniorbflags_debug) lib3rd_cxxflags_optimise += $(omniorbflags_optimise) lib3rd_cxxincs += $(omniorbincs) lib3rd_cxxlibs_debug += $(omniorblibs_debug) lib3rd_cxxlibs_optimise += $(omniorblibs_optimise) lib3rd_cxxlibdirs += $(omniorblibdirs) endif