# -*- Makefile -*-
#
# @file  Makefile.ConsoleInString
# @brief RTComponent makefile for "ConsoleInString component"
# @date  $Date$
#
# This file is generated by rtc-template with the following argments.
#
#   rtc-template -bcxx --module-name=ConsoleInString 
#   --module-desc='Console input component for TimedString data' --module-version=1.0.0 --module-vendor=TakeshiSasaki 
#   --module-category=generic --module-comp-type=COMMUTATIVE 
#   --module-act-type=SPORADIC --module-max-inst=10 
#   --outport=OutString:TimedString 
#
#
# $Id$
#
CXXFLAGS = `rtm-config --cflags` -I.
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     = ConsoleInString.o $(SKEL_OBJ) $(STUB_OBJ) $(IMPL_OBJ)

.SUFFIXES : .so

all: ConsoleInString.so ConsoleInStringComp

.cpp.o:
	rm -f $@
	$(CXX) $(CXXFLAGS) -c -o $@ $<

.o.so:
	rm -f $@
	$(CXX) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)

ConsoleInStringComp: ConsoleInStringComp.o $(OBJS)
	$(CXX) -o $@ $(OBJS) ConsoleInStringComp.o $(LDFLAGS) 


clean: clean_objs clean_skelstub
	rm -f *~

clean_objs:
	rm -f $(OBJS) ConsoleInStringComp.o ConsoleInString.so ConsoleInStringComp

clean_skelstub:
	rm -f *Skel.h *Skel.cpp
	rm -f *Stub.h *Stub.cpp



ConsoleInString.so: $(OBJS)
ConsoleInString.o: ConsoleInString.h 	 	
ConsoleInStringComp.o: ConsoleInStringComp.cpp ConsoleInString.cpp ConsoleInString.h 



# end of Makefile
