mirror of
https://github.com/AdaCore/PolyORB.git
synced 2026-02-12 13:01:15 -08:00
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
40 lines
1.0 KiB
Makefile
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
|