Files
PolyORB/Makefile.common
Jérôme Hugues 2233e91fab (LINK): Replace AutoMake variable by make target name
Patch submitted by Vadim Godunko, reviewed by Jerome Hugues

[Imported from Perforce change 9330 at 2006-12-01 21:20:39]

Subversion-branch: /trunk/polyorb
Subversion-revision: 36832
2005-05-21 18:35:04 +00:00

40 lines
1.0 KiB
Makefile

# Common Makefile fragments for all PolyORB subsystems
# $Id$
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= $(IDLAC_dir)/idlac
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) -I$(srcdir) $(IDLAC_FLAGS) $<
.idl.adb:
$(IDLAC) -I$(srcdir) $(IDLAC_FLAGS) $<
__default__:: all
$(IDLAC): $(FORCE_IDLAC)
cd $(IDLAC_dir) && $(MAKE)
$(GEN_CODESET): $(FORCE_GEN_CODESET)
cd $(GEN_CODESET_dir) && $(MAKE) all-gen_codeset