# -*- Makefile -*-
#
# @file  Makefile.GnuplotViewer
# @brief RTComponent makefile for "GnuplotViewer component"
# @date  $Date$
#
# This file is generated by rtc-template with the following argments.
#
#   rtc-template -bcxx --module-name=GnuplotViewer 
#   --module-desc='Versatile viewer component using gnuplot' --module-version=1.0.0 --module-vendor=TakeshiSasaki 
#   --module-category=generic --module-comp-type=COMMUTATIVE 
#   --module-act-type=SPORADIC --module-max-inst=10 
#   --config=gpOpenOption:string:* --config=gpSeparatePos:string:1 --config=gpPeriodicExecCommand:string:* --config=pShortInPortNum:int:0 --config=pLongInPortNum:int:0 --config=pFloatInPortNum:int:0 --config=pDoubleInPortNum:int:0 
#   --inport=Command:TimedString --inport=ShortSeqData:DynamicInPort<TimedShortSeq> --inport=LongSeqData:DynamicInPort<TimedLongSeq> --inport=FloatSeqData:DynamicInPort<TimedFloatSeq> --inport=DoubleSeqData:DynamicInPort<TimedDoubleSeq> 
#
#
# $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     = GnuplotViewer.o gnuplot_view.o configuration_manip.o $(SKEL_OBJ) $(STUB_OBJ) $(IMPL_OBJ)

LIBS = -L/usr/lib -L/usr/local/lib  
INC = -I/usr/include/ -I.

.SUFFIXES : .so

all: GnuplotViewer.so GnuplotViewerComp

.cpp.o:
	rm -f $@
	$(CXX) $(CXXFLAGS) -c -o $@ $< $(INC)

.o.so:
	rm -f $@
	$(CXX) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)

GnuplotViewerComp: GnuplotViewerComp.o $(OBJS)
	$(CXX) -o $@ $(OBJS) GnuplotViewerComp.o $(LDFLAGS) $(LIBS) 


clean: clean_objs clean_skelstub
	rm -f *~

clean_objs:
	rm -f $(OBJS) GnuplotViewerComp.o GnuplotViewer.so GnuplotViewerComp

clean_skelstub:
	rm -f *Skel.h *Skel.cpp
	rm -f *Stub.h *Stub.cpp



GnuplotViewer.so: $(OBJS)
GnuplotViewer.o: GnuplotViewer.h  gnuplot_view.h configuration_manip.h 	
GnuplotViewerComp.o: GnuplotViewerComp.cpp GnuplotViewer.cpp GnuplotViewer.h gnuplot_view.cpp gnuplot_view.h configuration_manip.cpp configuration_manip.h



# end of Makefile
