| 1 |
# Makefile for libs/simulator |
| 2 |
# Satofumi KAMIMURA |
| 3 |
# $Id$ |
| 4 |
|
| 5 |
# Compile options |
| 6 |
CC = g++ |
| 7 |
CXXFLAGS = -g -O0 -Wall -Werror -DSIMULATOR ${INCLUDES} `sdl-config --cflags` |
| 8 |
INCLUDES = -I. -I../runCtrl/tRunCtrl -I../common -I../connection -I../sh7045 -I../runCtrl |
| 9 |
LDFLAGS = |
| 10 |
LDLIBS = |
| 11 |
|
| 12 |
# Target |
| 13 |
T_RUN_CTRL_SIM = tRunCtrl_sim.a |
| 14 |
URG_CTRL_SIM = urgCtrl_sim.a |
| 15 |
TARGET = ${T_RUN_CTRL_SIM} ${URG_CTRL_SIM} |
| 16 |
|
| 17 |
all : ${TARGET} |
| 18 |
|
| 19 |
clean : |
| 20 |
${RM} *.o ${TARGET} allTest |
| 21 |
cd samples/ && ${MAKE} clean |
| 22 |
|
| 23 |
test : allTest |
| 24 |
./allTest |
| 25 |
|
| 26 |
depend : |
| 27 |
makedepend -Y -- ${INCLUDES} -- ${wildcard *.h *.cpp} |
| 28 |
|
| 29 |
.PHONY : all clean depend |
| 30 |
###################################################################### |
| 31 |
${T_RUN_CTRL_SIM} : \ |
| 32 |
${T_RUN_CTRL_SIM}(tRunCtrlSimulator.o) \ |
| 33 |
${T_RUN_CTRL_SIM}(tRunCtrlDevice.o) \ |
| 34 |
${T_RUN_CTRL_SIM}(wdtHandle.o) \ |
| 35 |
${T_RUN_CTRL_SIM}(taskCtrl.o) \ |
| 36 |
${T_RUN_CTRL_SIM}(wheelCtrl.o) \ |
| 37 |
${T_RUN_CTRL_SIM}(bodyCtrl.o) \ |
| 38 |
${T_RUN_CTRL_SIM}(bodyPosition.o) \ |
| 39 |
${T_RUN_CTRL_SIM}(modeManager.o) \ |
| 40 |
${T_RUN_CTRL_SIM}(coordinateConvert.o) \ |
| 41 |
${T_RUN_CTRL_SIM}(gridPosition.o) \ |
| 42 |
${T_RUN_CTRL_SIM}(velocityCtrl.o) \ |
| 43 |
${T_RUN_CTRL_SIM}(positionCtrl.o) \ |
| 44 |
${T_RUN_CTRL_SIM}(followCtrl.o) \ |
| 45 |
${T_RUN_CTRL_SIM}(bodyPosition.o) \ |
| 46 |
${T_RUN_CTRL_SIM}(averageVelocity.o) \ |
| 47 |
${T_RUN_CTRL_SIM}(structUpdate.o) \ |
| 48 |
${T_RUN_CTRL_SIM}(transferCtrl.o) \ |
| 49 |
${T_RUN_CTRL_SIM}(sci_ctrlSim.o) \ |
| 50 |
${T_RUN_CTRL_SIM}(isincos.o) \ |
| 51 |
${T_RUN_CTRL_SIM}(iatan2.o) \ |
| 52 |
${T_RUN_CTRL_SIM}(isqrt.o) \ |
| 53 |
${T_RUN_CTRL_SIM}(moving_average.o) |
| 54 |
|
| 55 |
${URG_CTRL_SIM} : \ |
| 56 |
${URG_CTRL_SIM}(UrgSimulator.o) \ |
| 57 |
|
| 58 |
wdtHandle.o : ../runCtrl/tRunCtrl/wdtHandle.c |
| 59 |
${CXX} ${CXXFLAGS} $< -c |
| 60 |
|
| 61 |
taskCtrl.o : ../runCtrl/tRunCtrl/taskCtrl.c |
| 62 |
${CXX} ${CXXFLAGS} $< -c |
| 63 |
|
| 64 |
wheelCtrl.o : ../runCtrl/tRunCtrl/wheelCtrl.c |
| 65 |
${CXX} ${CXXFLAGS} $< -c |
| 66 |
|
| 67 |
bodyCtrl.o : ../runCtrl/tRunCtrl/bodyCtrl.c |
| 68 |
${CXX} ${CXXFLAGS} $< -c |
| 69 |
|
| 70 |
bodyPosition.o : ../runCtrl/tRunCtrl/bodyPosition.c |
| 71 |
${CXX} ${CXXFLAGS} $< -c |
| 72 |
|
| 73 |
averageVelocity.o : ../runCtrl/tRunCtrl/averageVelocity.c |
| 74 |
${CXX} ${CXXFLAGS} $< -c |
| 75 |
|
| 76 |
modeManager.o : ../runCtrl/tRunCtrl/modeManager.c |
| 77 |
${CXX} ${CXXFLAGS} $< -c |
| 78 |
|
| 79 |
coordinateConvert.o : ../runCtrl/tRunCtrl/coordinateConvert.c |
| 80 |
${CXX} ${CXXFLAGS} $< -c |
| 81 |
|
| 82 |
gridPosition.o : ../runCtrl/tRunCtrl/gridPosition.c |
| 83 |
${CXX} ${CXXFLAGS} $< -c |
| 84 |
|
| 85 |
velocityCtrl.o : ../runCtrl/tRunCtrl/velocityCtrl.c |
| 86 |
${CXX} ${CXXFLAGS} $< -c |
| 87 |
|
| 88 |
positionCtrl.o : ../runCtrl/tRunCtrl/positionCtrl.c |
| 89 |
${CXX} ${CXXFLAGS} $< -c |
| 90 |
|
| 91 |
followCtrl.o : ../runCtrl/tRunCtrl/followCtrl.c |
| 92 |
${CXX} ${CXXFLAGS} $< -c |
| 93 |
|
| 94 |
structUpdate.o : ../runCtrl/tRunCtrl/structUpdate.c |
| 95 |
${CXX} ${CXXFLAGS} $< -c |
| 96 |
|
| 97 |
transferCtrl.o : ../runCtrl/tRunCtrl/transferCtrl.c |
| 98 |
${CXX} ${CXXFLAGS} $< -c |
| 99 |
|
| 100 |
isincos.o : ../runCtrl/tRunCtrl/isincos.c |
| 101 |
${CXX} ${CXXFLAGS} $< -c |
| 102 |
|
| 103 |
iatan2.o : ../runCtrl/tRunCtrl/iatan2.c |
| 104 |
${CXX} ${CXXFLAGS} $< -c |
| 105 |
|
| 106 |
isqrt.o : ../runCtrl/tRunCtrl/isqrt.c |
| 107 |
${CXX} ${CXXFLAGS} $< -c |
| 108 |
|
| 109 |
moving_average.o : ../runCtrl/tRunCtrl/moving_average.c |
| 110 |
${CXX} ${CXXFLAGS} $< -c |
| 111 |
|
| 112 |
|
| 113 |
allTest.o : ../unittest/allTest.cpp |
| 114 |
${CXX} ${CXXFLAGS} `cppunit-config --cflags` $< -c -o $@ |
| 115 |
|
| 116 |
REQUIRE_LIBS = ../connection/connection.a ../common/common.a |
| 117 |
${REQUIRE_LIBS} : |
| 118 |
cd ${@D}/ && ${MAKE} ${@F} |
| 119 |
|
| 120 |
TEST_OBJS = allTest.o TestTRunCtrlSimulator.o TestStructUpdate.o TestBodyPosition.o ${T_RUN_CTRL_SIM} ${REQUIRE_LIBS} |
| 121 |
TEST_LDLIBS = -lSDL_net |
| 122 |
|
| 123 |
allTest : ${TEST_OBJS} |
| 124 |
${CXX} ${CXXFLAGS} ${TEST_OBJS} -o $@ `cppunit-config --libs` ${TEST_LDLIBS} |
| 125 |
|
| 126 |
# DO NOT DELETE |
| 127 |
|
| 128 |
UrgSimulator.o: SimulatorInterface.h |
| 129 |
tRunCtrlSimulator.o: SimulatorInterface.h ../common/GridTypes.h |
| 130 |
SimulatorManager.o: SimulatorManager.h |
| 131 |
TestBodyPosition.o: TestBodyPosition.h ../runCtrl/tRunCtrl/structTable.h |
| 132 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/wdtHandle.h |
| 133 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/bodyCtrl.h |
| 134 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/wheelCtrl.h |
| 135 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/motorCtrl.h |
| 136 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/encoderCtrl.h |
| 137 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/modeManager.h |
| 138 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/coordinateConvert.h |
| 139 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/bodyPosition.h |
| 140 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/gridPosition.h |
| 141 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/positionCtrl.h |
| 142 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/velocityCtrl.h |
| 143 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/averageVelocity.h |
| 144 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/moving_average.h |
| 145 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/followCtrl.h |
| 146 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/directDeviceCtrl.h |
| 147 |
TestBodyPosition.o: ../runCtrl/tRunCtrl/tRunCtrl.h |
| 148 |
TestStructUpdate.o: TestStructUpdate.h ../runCtrl/tRunCtrl/structUpdate.h |
| 149 |
TestTRunCtrlSimulator.o: TestTRunCtrlSimulator.h tRunCtrlSimulator.h |
| 150 |
TestTRunCtrlSimulator.o: SimulatorInterface.h ../common/GridTypes.h |
| 151 |
TestTRunCtrlSimulator.o: ../connection/TcpipCtrl.h |
| 152 |
TestTRunCtrlSimulator.o: ../connection/ConnectionInterface.h |
| 153 |
UrgSimulator.o: UrgSimulator.h SimulatorInterface.h |
| 154 |
sci_ctrlSim.o: sci_ctrlSim.h ../connection/ConnectionInterface.h |
| 155 |
tRunCtrlDevice.o: ../runCtrl/tRunCtrl/motorCtrl.h |
| 156 |
tRunCtrlDevice.o: ../runCtrl/tRunCtrl/encoderCtrl.h |
| 157 |
tRunCtrlSimulator.o: tRunCtrlSimulator.h SimulatorInterface.h |
| 158 |
tRunCtrlSimulator.o: ../common/GridTypes.h ../runCtrl/tRunCtrl/taskCtrl.h |
| 159 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/structTable.h |
| 160 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/wdtHandle.h |
| 161 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/bodyCtrl.h |
| 162 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/wheelCtrl.h |
| 163 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/motorCtrl.h |
| 164 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/encoderCtrl.h |
| 165 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/modeManager.h |
| 166 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/coordinateConvert.h |
| 167 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/bodyPosition.h |
| 168 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/gridPosition.h |
| 169 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/positionCtrl.h |
| 170 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/velocityCtrl.h |
| 171 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/averageVelocity.h |
| 172 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/moving_average.h |
| 173 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/followCtrl.h |
| 174 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/directDeviceCtrl.h |
| 175 |
tRunCtrlSimulator.o: ../runCtrl/tRunCtrl/transferCtrl.h ../sh7045/sci_ctrl.h |
| 176 |
tRunCtrlSimulator.o: ../runCtrl/TransmitPacket.h ../connection/TcpipCtrl.h |
| 177 |
tRunCtrlSimulator.o: ../connection/ConnectionInterface.h |
| 178 |
tRunCtrlSimulator.o: ../connection/TcpipAccept.h ../common/ThreadCreator.h |