# -*- Makefile -*-
#
# @file  Makefile.Integrator
# @brief RTComponent makefile for "Integrator component"
# @date  $Date$
#
# This file is generated by rtc-template with the following argments.
#
#  /usr/bin/rtc-template -bcxx --module-name=Integrator 
#  --module-desc=Integrator component --module-version=1.0 
#  --module-vendor=MS_LAB --inport=datain:TimedLong 
#  --inport=dataout:TimedLong --service=PrvPort:integrator:integrator 
#  --service-idl=Integrator.idl --config=DataType:std::string:double 
#  --config=ART_Cycle:double:0.001 
#
#
# $Id$
#
CXXFLAGS = `rtm-config --cflags`
LDFLAGS  = `rtm-config --libs`
SHFLAGS  = -shared

IDLC     = `rtm-config --idlc`
IDLFLAGS = `rtm-config --idlflags` -I`rtm-config --prefix`/include/rtm/idl
WRAPPER  = rtm-skelwrapper
WRAPPER_FLAGS = --include-dir="" --skel-suffix=Skel --stub-suffix=Stub

SKEL_OBJ = IntegratorSkel.o  	
STUB_OBJ = IntegratorStub.o 
IMPL_OBJ = IntegratorSVC_impl.o 
OBJS     = Integrator.o $(SKEL_OBJ) $(IMPL_OBJ)

.SUFFIXES : .so

all: Integrator.so IntegratorComp


.cpp.o:
	rm -f $@
	$(CXX) $(CXXFLAGS) -c -o $@ $<

.o.so:
	rm -f $@
	$(CXX) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)

IntegratorComp: IntegratorComp.o $(OBJS)
	$(CXX) -o $@ $(OBJS) IntegratorComp.o $(LDFLAGS) 


clean: clean_objs clean_skelstub
	rm -f *~

clean_objs:
	rm -f $(OBJS) IntegratorComp.o Integrator.so IntegratorComp

clean_skelstub:
	rm -f *Skel.h *Skel.cpp
	rm -f *Stub.h *Stub.cpp




IntegratorSkel.cpp : Integrator.idl
	$(IDLC) $(IDLFLAGS) Integrator.idl
	$(WRAPPER) $(WRAPPER_FLAGS) --idl-file=Integrator.idl
IntegratorSkel.h : Integrator.idl
	$(IDLC) $(IDLFLAGS) Integrator.idl
	$(WRAPPER) $(WRAPPER_FLAGS) --idl-file=Integrator.idl
IntegratorStub.cpp : Integrator.idl
	$(IDLC) $(IDLFLAGS) Integrator.idl
	$(WRAPPER) $(WRAPPER_FLAGS) --idl-file=Integrator.idl
IntegratorStub.h : Integrator.idl
	$(IDLC) $(IDLFLAGS) Integrator.idl
	$(WRAPPER) $(WRAPPER_FLAGS) --idl-file=Integrator.idl





Integrator.so: $(OBJS)
Integrator.o: Integrator.h 	IntegratorSkel.h IntegratorSVC_impl.h  	
IntegratorComp.o: IntegratorComp.cpp Integrator.cpp Integrator.h IntegratorSkel.h IntegratorSVC_impl.h 


IntegratorSVC_impl.o: IntegratorSVC_impl.cpp IntegratorSVC_impl.h IntegratorSkel.h IntegratorStub.h
IntegratorSkel.o: IntegratorSkel.cpp IntegratorSkel.h IntegratorStub.h
IntegratorStub.o: IntegratorStub.cpp IntegratorStub.h




# end of Makefile
