# -*- Makefile -*-
#
# @file  Makefile.VoiceIn
# @brief RTComponent makefile for "VoiceIn component"
# @date  $Date$
#
# This file is generated by rtc-template with the following argments.
#
#  C:\Program_Files\OpenRTM-aist\utils\rtc-template\rtc-template.py 
#  -bcxx -bvcproject --module-name=VoiceIn 
#  --module-desc=Sample component --module-version=0.1 
#  --module-vendor=AIST --module-category=Generic 
#  --module-comp-type=DataFlowComponent --module-act-type=SPORADIC 
#  --module-max-inst=10 --config=int_param0:int:0 
#  --config=int_param1:int:1 --config=double_param0:double:3.14 
#  --config=double_param1:double:9.99 
#  --config=str_param0:std::string:hoge 
#  --config=str_param1:std::string:foo --inport=Ref:TimedFloat 
#  --inport=Sens:TimedFloat --outport=Ctrl:TimedDouble 
#  --outport=Monitor:TimedShort 
#
#
# $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 =  	
STUB_OBJ = 
IMPL_OBJ = 
OBJS     = VoiceIn.o $(SKEL_OBJ) $(IMPL_OBJ)

.SUFFIXES : .so

all: VoiceIn.so VoiceInComp


.cpp.o:
	rm -f $@
	$(CXX) $(CXXFLAGS) -c -o $@ $<

.o.so:
	rm -f $@
	$(CXX) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)

VoiceInComp: VoiceInComp.o $(OBJS)
	$(CXX) -o $@ $(OBJS) VoiceInComp.o $(LDFLAGS) 


clean: clean_objs clean_skelstub
	rm -f *~

clean_objs:
	rm -f $(OBJS) VoiceInComp.o VoiceIn.so VoiceInComp

clean_skelstub:
	rm -f *Skel.h *Skel.cpp
	rm -f *Stub.h *Stub.cpp








VoiceIn.so: $(OBJS)
VoiceIn.o: VoiceIn.h 	 	
VoiceInComp.o: VoiceInComp.cpp VoiceIn.cpp VoiceIn.h 





# end of Makefile
