 #
 # This file is part of RHexLib, 
 #
 # Copyright (c) 2001 The University of Michigan, its Regents,
 # Fellows, Employees and Agents. All rights reserved, and distributed as
 # free software under the following license.
 # 
 #  Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions are
 # met:
 # 
 # 1) Redistributions of source code must retain the above copyright
 # notice, this list of conditions, the following disclaimer and the
 # file called "CREDITS" which accompanies this distribution.
 # 
 # 2) Redistributions in binary form must reproduce the above copyright
 # notice, this list of conditions, the following disclaimer and the file
 # called "CREDITS" which accompanies this distribution in the
 # documentation and/or other materials provided with the distribution.
 # 
 # 3) Neither the name of the University of Michigan, Ann Arbor or the
 # names of its contributors may be used to endorse or promote products
 # derived from this software without specific prior written permission.
 # 
 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

 ######################################################################
 # $Id$
 ######################################################################

############################################
# Modify the following segment only.       #
############################################

# This line specifies the name of the library in which all the object
# files for the sources below will be collected into.
LIBRARY = librhexmodules.a

# This line specifies the source files that will becompiled to form
# the library
SOURCES = \
	RHexModules.cc          \
	MichiganModules.cc      \
	McGillModules.cc        \
	CMUModules.cc           \
	WalkMachine.cc      \
	CalibMachine.cc         \
	SitMachine.cc           \
	StandMachine.cc         \
	WalkMachine.cc          \
	StartupMachine.cc       \
	RHexLogger.cc		    \
	WalkProfiler.cc         \
	SlopeEstimator.cc       \
	RHexWalker.cc           \
	ExpRunner.cc            \
	FizGyroModule.cc        \
	RotationIntModule.cc    \
	RotationKalmanModule.cc \
	AccelKalmanModule.cc    \
	StateProxy.cc           \
	BSOCMonModule.cc        \
	HeatSinkModule.cc       \
	RemoteControl.cc	    \
	GpsModule.cc            \
	CompassModule.cc        \
	CustomGaitModule.cc     \
	CustomGait.cc           \
	BuehlerWalker.cc        \
	BuehlerScheme.cc        \
	DownHillController.cc     \
	InchWormController.cc     \
	Super.cc                  \
	TraverseController.cc     \
	TurnHillController.cc     \
	SitMachineH.cc            \
	RHexRunner.cc             \
	EmergencyExit.cc          \
	Protocol.cc               \
	LegNetIF.cc               \
	LegSensor.cc              \
	NelderMead2.cc            \
	WalkExp.cc                \
	SpecResist.cc             \
	LegSensorProxy.cc         \
	CostFunction.cc	          \
	NMTune.cc                 \
	ParamObj.cc               \
	WalkMachine2.cc	          \
	PacketLogger.cc           \
	HipControl.cc             \
	RCWriter.cc               \
	ThrustLeapMachine.cc      \
	DitchLeapMachine.cc       \
	DoubleLeapMachine.cc      \
	JoelLeapController.cc     \
	LeapMachine.cc            \
	HeadingServoModule.cc     \
	LineFollowerModule.cc     \
	LocalizerModule.cc        \
	FlipMachine.cc            \
	FlipController.cc         \
	ConstrainedLinearOptimize.cc \
	matrixutil.cc             \
	OdometryModule.cc         \
	RHexStateModule.cc		  \
	PronkMachine.cc           \
	NewStairMachine.cc        \
	RotationEstimator.cc      \
	SharpIR.cc  			  \
	PipeMachine.cc 			  \
	Handspring.cc  			  \
	ScoutBound.cc 			  \
	TMonModule.cc 			  \
	ArbTrajectory.cc 		  \
	Biped.cc 				  \
	RHexWheeler.cc 			  \
	IRStopWatch.cc 			  \
	LegAdjustModule.cc 		  \
	videoSwitch.cc 			  \
	loadSwitch.cc 			  \
	UnderwaterSwimmer.cc	  \
	HomeoTrans.cc \
	CoorFeedBack.cc \
	ModelClocks.cc \
	HipProfiler.cc \
	microstrainGyro.cc \
	microstrainIMU.cc \
	AquaAutopilot.cc \
	AquaDepthmeter.cc \
	VisionStack.cc \
	AquaBoilerPlateAP.cc \
	SASAP.cc \
	AquaAutopilotNicolas.cc \
	AquaAutopilotNicolas2010.cc \
	AquaAutopilotWorking.cc \
	MsrsCommunication.cc

#	AquaSwimmerController.cc \

# This line specifies any additional flags that you want to feed the
# compiler. It is usually used to specify additional include
# directories through -I and additional link directories through -L
AUXFLAGS = \
	-I../include \
	-I$(SIMSECT_DIR)/include \
	-I$(SIMSECT_DIR)/systems/hexapod \
	-I$(RHEX_TOPDIR)/RobotCode/Hardware/include \
	-I$(RHEX_TOPDIR)/RobotCode/Hardware/SimSectHW

ifeq ($(RHEX_HARDWARE),_SIMSECT_)
SOURCES += \
	LegSensorSimSect.cc \
	SimSectSensor.cc
endif

ifeq ($(RHEX_HARDWARE),_MCRHIO_)
SOURCES += \
	LegSensorLegNet.cc
endif




#################################################
# The rest of this file should not be modified  #
#################################################

ifndef RHEX_DIR
all:
	@echo
	@echo "RHEX_DIR environment variable undefined!"
else

include $(RHEX_DIR)/tools/libtargets.mk

endif
