Files
PolyORB/Makefile.common
Thomas Quinot b4c373ec85 Prevent make from building ALI files before building corresponding .o
files in parallel build (the ALI file comes for free as a by-product
of building the object).

Submitted by:	Vadim Godunko
Reviewed by:	Thomas Quinot

[Imported from Perforce change 10419 at 2006-12-01 22:55:28]

Subversion-branch: /trunk/polyorb
Subversion-revision: 37878
2006-10-09 13:06:49 +00:00

164 lines
4.6 KiB
Makefile

# Common Makefile fragments for all PolyORB subsystems
# $Id$
#
# PolyORB's libraries
#
aws_lib=-I$(top_builddir)/src/aws/libpolyorb-aws.la
corba_lib=$(top_builddir)/src/corba/libpolyorb-corba.la \
$(top_builddir)/src/corba/rtcorba/libpolyorb-corba-rtcorba.la
moma_lib=$(top_builddir)/src/moma/libpolyorb-moma.la
giop_lib=$(top_builddir)/src/giop/libpolyorb-giop.la \
$(top_builddir)/src/giop/diop/libpolyorb-giop-diop.la \
$(top_builddir)/src/giop/iiop/libpolyorb-giop-iiop.la \
$(top_builddir)/src/giop/miop/libpolyorb-giop-miop.la
if HAVE_SSL
giop_lib += $(top_builddir)/src/giop/iiop/ssliop/libpolyorb-giop-iiop-ssliop.la
endif
soap_lib=$(top_builddir)/src/soap/libpolyorb-soap.la
srp_lib=$(top_builddir)/src/srp/libpolyorb-srp.la
web_common_lib=$(top_builddir)/src/web_common/libpolyorb-web_common.la
POLYORB_LIBS= $(top_builddir)/src/libpolyorb.la \
$(top_builddir)/src/setup/libpolyorb-setup.la \
@PROTO_LIBS@ \
@APPLI_LIBS@ \
@LIBS_LIBS@
if HAVE_SSL
POLYORB_LIBS += $(top_builddir)/src/ssl/libpolyorb-ssl.la
endif
#
# PolyORB's include files
#
aws_inc=-I$(top_srcdir)/src/aws \
-I$(top_builddir)/src/aws \
-I$(top_srcdir)/src/aws_orig \
-I$(top_builddir)/src/aws_orig
corba_inc=-I$(top_srcdir)/src/corba -I$(top_builddir)/src/corba \
-I$(top_srcdir)/src/corba/iop -I$(top_builddir)/src/corba/iop \
-I$(top_srcdir)/src/corba/messaging \
-I$(top_builddir)/src/corba/messaging \
-I$(top_srcdir)/src/corba/portableinterceptor \
-I$(top_builddir)/src/corba/portableinterceptor \
-I$(top_srcdir)/src/corba/rtcorba -I$(top_builddir)/src/corba/rtcorba
moma_inc=-I$(top_srcdir)/src/moma -I$(top_builddir)/src/moma
giop_inc=-I$(top_srcdir)/src/giop -I$(top_builddir)/src/giop \
-I$(top_srcdir)/src/giop/diop -I$(top_builddir)/src/giop/diop \
-I$(top_srcdir)/src/giop/iiop -I$(top_builddir)/src/giop/iiop \
-I$(top_srcdir)/src/giop/miop -I$(top_builddir)/src/giop/miop
if HAVE_SSL
giop_inc+=-I$(top_srcdir)/src/giop/iiop/ssliop \
-I$(top_builddir)/src/giop/iiop/ssliop
endif
soap_inc=-I$(top_srcdir)/src/soap -I$(top_builddir)/src/soap
srp_inc=-I$(top_srcdir)/src/srp -I$(top_builddir)/src/srp
web_common_inc=-I$(top_srcdir)/src/web_common -I$(top_builddir)/src/web_common
naming_inc=-I$(top_srcdir)/cos/naming -I$(top_builddir)/cos/naming \
-I$(top_builddir)/idls/cos/naming
time_inc=-I$(top_srcdir)/cos/time -I$(top_builddir)/cos/time \
-I$(top_builddir)/idls/cos/time
event_inc=-I$(top_srcdir)/cos/event -I$(top_builddir)/cos/event \
-I$(top_builddir)/idls/cos/event
notification_inc=-I$(top_srcdir)/cos/notification \
-I$(top_builddir)/cos/notification \
-I$(top_builddir)/idls/cos/notification
ir_inc=-I$(top_srcdir)/cos/ir -I$(top_builddir)/cos/ir
POLYORB_INCS = -I$(srcdir) \
-I$(top_srcdir)/src \
-I$(top_builddir)/src \
-I$(top_srcdir)/src/setup \
-I$(top_builddir)/src/setup \
@PROTO_INCS@ \
@APPLI_INCS@ \
@SERVICE_INCS@ \
@LIBS_INCS@
if HAVE_SSL
POLYORB_INCS+=-I$(top_srcdir)/src/ssl -I$(top_builddir)/src/ssl
endif
#
# ALI files install
#
aliDATA_INSTALL = $(INSTALL) -m 444
#
# Scripts and common build rules
#
SUFFIXES= .c .adb .ads .lo .ali .idl
ADACOMPILER= $(top_builddir)/support/adacompiler
LINKER= $(top_builddir)/support/linker
NATIVE_LINKER= $(top_builddir)/support/native-linker
MOVEIFCHANGE= $(top_builddir)/support/move-if-change
IDLAC_dir= $(top_builddir)/compilers/$(IDLAC)
IDLAC_bin= $(IDLAC_dir)/$(IDLAC)
IDLAC_WRAPPER= $(top_builddir)/contrib/idlac_wrapper/idlac_wrapper
GEN_CODESET_dir=$(top_builddir)/src/giop
GEN_CODESET= $(GEN_CODESET_dir)/gen_codeset
LINK= $(LINKER) -o $@
.c.lo:
$(LTCOMPILE) -c $<
.adb.lo:
@chmod a+x $(ADACOMPILER)
$(LIBTOOL) $(LIBTOOL_TAG) --mode=compile $(ADACOMPILER) -c $(ADAFLAGS) $<
.ads.lo:
@chmod a+x $(ADACOMPILER)
$(LIBTOOL) $(LIBTOOL_TAG) --mode=compile $(ADACOMPILER) -c $(ADAFLAGS) $<
.idl.ads:
$(IDLAC_bin) -I$(srcdir) $(IDLAC_FLAGS) $<
.idl.adb:
$(IDLAC_bin) -I$(srcdir) $(IDLAC_FLAGS) $<
.idl.idl-stamp:
@chmod a+x $(IDLAC_WRAPPER)
$(IDLAC_WRAPPER) --idlac=$(IDLAC_bin) -I$(srcdir) $(IDLAC_FLAGS) $<
touch $@
## Prevent make from building ALI files before building corresponding .o
## files in parallel build (the ALI file comes for free as a by-product
## of building the object).
.o.ali:
@true
__default__:: all
$(IDLAC): $(FORCE_IDLAC)
cd $(IDLAC_dir) && $(MAKE)
$(GEN_CODESET): $(FORCE_GEN_CODESET)
cd $(GEN_CODESET_dir) && $(MAKE) all-gen_codeset