# -*- Makefile -*-
#
# @file  Makefile.TrajectoryCalculation
# @brief RTComponent makefile for "TrajectoryCalculation component"
# @date  $Date$
#
# This file is generated by rtc-template with the following argments.
#
#   rtc-template -bcxx --module-name=TrajectoryCalculation 
#   --module-desc='ModuleDescription' --module-version=1.0.0 --module-vendor=VenderName 
#   --module-category=Category --module-comp-type=STATIC 
#   --module-act-type=PERIODIC --module-max-inst=0 
#   --inport=xyzR_filnal_in:RTC::TimedDoubleSeq --inport=xyzR_cur_in:RTC::TimedDoubleSeq --outport=xyzR_ref_out:RTC::TimedDoubleSeq --outport=plan_flag_out:RTC::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     = TrajectoryCalculation.o $(SKEL_OBJ) $(STUB_OBJ) $(IMPL_OBJ)

.SUFFIXES : .so

all: TrajectoryCalculation.so TrajectoryCalculationComp

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

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

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


clean: clean_objs clean_skelstub
	rm -f *~

clean_objs:
	rm -f $(OBJS) TrajectoryCalculationComp.o TrajectoryCalculation.so TrajectoryCalculationComp

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

clean_log:
	rm -f log_*


TrajectoryCalculation.so: $(OBJS)
TrajectoryCalculation.o: TrajectoryCalculation.h 	 	
TrajectoryCalculationComp.o: TrajectoryCalculationComp.cpp TrajectoryCalculation.cpp TrajectoryCalculation.h 


############## modified by skd...
run: TrajectoryCalculationComp
	./TrajectoryCalculationComp

SOURCES=$(OBJS:.o=.cpp)
depend:
	$(CXX) -MM $(INCLUDE) $(CXXFLAGS) $(SOURCES) > dependencies

-include dependencies
##############


# end of Makefile
