# -*- Makefile -*-
#
# @file  Makefile.ComposeMessage
# @brief RTComponent makefile for "ComposeMessage component"
# @date  $Date$
#
# This file is generated by rtc-template with the following argments.
#
#   rtc-template -bcxx --module-name=ComposeMessage 
#   --module-desc='ComposeMessageComponent' --module-version=1.0.0 --module-vendor=Toshihiro.MIURA_ShibauraHRI 
#   --module-category=CANComp --module-comp-type=DataFlowComponent 
#   --module-act-type=PERIODIC --module-max-inst=10 
#   --inport=LED8bit:TimedOctet --inport=ADC:TimedLong --outport=SendMessage:TimedOctetSeq 
#
#
# $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     = ComposeMessage.o $(SKEL_OBJ) $(IMPL_OBJ)

.SUFFIXES : .so

all: ComposeMessage.so ComposeMessageComp

.cpp.o:
	rm -f $@
	$(CXX) $(CXXFLAGS) -c -o $@ $<

.o.so:
	rm -f $@
	$(CXX) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)

ComposeMessageComp: ComposeMessageComp.o $(OBJS)
	$(CXX) -o $@ $(OBJS) ComposeMessageComp.o $(LDFLAGS) 


clean: clean_objs clean_skelstub
	rm -f *~

clean_objs:
	rm -f $(OBJS) ComposeMessageComp.o ComposeMessage.so ComposeMessageComp

clean_skelstub:
	rm -f *Skel.h *Skel.cpp
	rm -f *Stub.h *Stub.cpp



ComposeMessage.so: $(OBJS)
ComposeMessage.o: ComposeMessage.h 	 	
ComposeMessageComp.o: ComposeMessageComp.cpp ComposeMessage.cpp ComposeMessage.h 



# end of Makefile
