# -*- Makefile -*-
#
# @file  Makefile.IntComponent# @brief RTComponent makefile for "IntComponent component"
# @date  $Date$
#
# This file is generated by rtc-template with the following argments.
#
#  /usr/bin/rtc-template -bcxx --module-name=IntComponent  \
#  --module-type=Sample --module-desc=IntOutputComponent  \
#  --module-version=0.1 --module-vendor=KLAB --module-category=Generic  \
#  --module-comp-type=DataFlowComponent --module-act-type=SPORADIC  \
#  --inport=order:TimedInt --outport=out:TimedInt  
#
#
# $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     = IntComponent.o $(SKEL_OBJ) $(STUB_OBJ) $(IMPL_OBJ)

.SUFFIXES : .so

all: IntComponent.so IntComponentComp


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

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

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


clean: clean_objs clean_skelstub
	rm -f *~

clean_objs:
	rm -f $(OBJS) IntComponentComp.o IntComponent.so IntComponentComp

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



IntComponent.so: $(OBJS)
IntComponent.o: IntComponent.h  
IntComponentComp.o: IntComponentComp.cpp IntComponent.cpp IntComponent.h  



# end of Makefile

