[openrtm-commit:01321] r2513 - trunk/OpenRTM-aist/src/ext/sdo/observer
openrtm @ openrtm.org
openrtm @ openrtm.org
2014年 3月 3日 (月) 15:47:45 JST
Author: n-ando
Date: 2014-03-03 15:47:45 +0900 (Mon, 03 Mar 2014)
New Revision: 2513
Modified:
trunk/OpenRTM-aist/src/ext/sdo/observer/Makefile.am
Log:
[compat] Makefile.am has been updated for parallel compile.
Modified: trunk/OpenRTM-aist/src/ext/sdo/observer/Makefile.am
===================================================================
--- trunk/OpenRTM-aist/src/ext/sdo/observer/Makefile.am 2014-03-03 02:28:36 UTC (rev 2512)
+++ trunk/OpenRTM-aist/src/ext/sdo/observer/Makefile.am 2014-03-03 06:47:45 UTC (rev 2513)
@@ -22,22 +22,25 @@
WRAPPER = $(top_builddir)/utils/rtm-skelwrapper/rtm-skelwrapper
WRAPPER_FLAGS = --include-dir="" --skel-suffix=Skel --stub-suffix=Stub
-.idlSkel.cpp:
- echo $(PROVIDER_OBJ)
+idl-stamp: $(IDL_SOURCES)
+ @touch idl-stamp
mkdir -p idl
- cp $< idl/
- (cd idl ; $(IDLC) $(IDLFLAGS) $< )
- PYTHONPATH="$(top_srcdir)/build:$(PYTHONPATH)" \
- PATH="$(top_srcdir)/utils/rtm-config:$(PATH)" \
- $(WRAPPER) $(WRAPPER_FLAGS) --idl-file=$< --include-dir=idl/
+ (cd $(top_builddir)/utils/rtm-config; $(MAKE))
+ @for f in $(IDL_SOURCES) ; do \
+ cp $$f idl/ ; \
+ (cd idl ; $(IDLC) $(IDLFLAGS) $$f ; cd ..) ; \
+ PYTHONPATH="$(top_srcdir)/build:$(PYTHONPATH)" \
+ PATH="$(top_srcdir)/utils/rtm-config:$(PATH)" \
+ $(WRAPPER) $(WRAPPER_FLAGS) --idl-file=$$f --include-dir=idl/ ; \
+ done ;
-.idlStub.cpp:
- mkdir -p idl
- cp $< idl/
- (cd idl ; $(IDLC) $(IDLFLAGS) $< )
- PYTHONPATH="$(PYTHONPATH):$(top_srcdir)/build" \
- PATH="$(top_srcdir)/utils/rtm-config:$(PATH)" \
- $(WRAPPER) $(WRAPPER_FLAGS) --idl-file=$< --include-dir=idl/
+$(ALL_SRC): idl-stamp
+ @if test -f $@ ; then \
+ touch $@ ; \
+ else \
+ rm -f idl-stamp ; \
+ $(MAKE) $(AM_MAKEFLAGS) idl-stamp ; \
+ fi ;
#------------------------------------------------------------
# Source list
@@ -45,7 +48,7 @@
IDL_SOURCES = ComponentObserver.idl
OBSERVER_DIST_SRC = ComponentObserverConsumer.cpp
-OBSERVER_NODIST_SRC = idl/$(IDL_SOURCES:.idl=Stub.cpp)
+OBSERVER_NODIST_SRC = $(IDL_SOURCES:.idl=Stub.cpp)
OBSERVER_NDWIN_SRC = $(IDL_SOURCES:.idl=Stub.cpp)
OBSERVER_SRC = $(OBSERVER_DIST_SRC) $(OBSERVER_NODIST_SRC)
OBSERVER_WIN_SRC = $(OBSERVER_DIST_SRC) $(OBSERVER_NDWIN_SRC)
@@ -68,9 +71,8 @@
socompdir = $(rtm_sdodir)
# Loadable Module
-noinst_LTLIBRARIES = libComponentObserverSkel.la libComponentObserverStub.la
-nodist_libComponentObserverSkel_la_SOURCES = $(IDL_SOURCES:.idl=Skel.cpp)
-nodist_libComponentObserverStub_la_SOURCES = $(IDL_SOURCES:.idl=Stub.cpp)
+noinst_LTLIBRARIES = libComponentObserverStub.la
+nodist_libComponentObserverStub_la_SOURCES = $(IDL_SOURCES:.idl=Stub.cpp)
socomp_LTLIBRARIES = ComponentObserverConsumer.la
@@ -158,4 +160,5 @@
clean-local: clean_objs clean_skelstub
rm -f *.bak *.rpo *.sym lib*.*_pure_*
rm -f *.lst *core *~ *loT *.log
- rm -f Makefile.old
+ rm -f Makefile.old
+ rm -rf idl-stamp
More information about the openrtm-commit
mailing list