 # $Id: Makefile.binsample,v 1.2 2004/08/26 18:21:03 ulucs Exp $
 #
 # This file is part of the RHexLib Robot Control Software
 #
 #  The contents of this file are subject to the RHexLib Public
 # License Version 2.0 (the "License"); you may not use this file
 # except in compliance with the License. To obtain a copy of the
 # License, please contact <ulucs+rhexlib@cs.cmu.edu>.
 #
 #  Software distributed under the License is distributed on an "AS
 # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 # implied. See the License for the specific language governing
 # rights and limitations under the License.
 #
 #  The Original Code is RHexLib Robot Control Software.
 #
 #  The Initial Developer of the Original Code is
 #    The Regents of the University of Michigan.
 #
 #  Portions created by 
 #    Regents of the University of Michigan
 # are Copyright (C) 2003.  All Rights Reserved.
 #
 #  Contributor(s): Uluc Saranli.
 #
 #  Alternatively, the contents of this file may be used under the
 # terms of the GNU Public license (the "GPL License"), in which
 # case the provisions of the GNU Public License are applicable
 # instead of those above.  If you wish to allow use of your version
 # of this file only under the terms of the GPL License and not to
 # allow others to use your version of this file under the RHexLib
 # Public License, indicate your decision by deleting the provisions
 # above and replace them with the notice and other provisions
 # required by the GPL License.  If you do not delete the provisions
 # above, a recipient may use your version of this file under either
 # the RHexLib Public License or the GPL License."
 #
 # Uluc Saranli <ulucs+rhexlib@cs.cmu.edu>

 ######################################################################
 # $Id: Makefile.binsample,v 1.2 2004/08/26 18:21:03 ulucs Exp $
 #
 # Sample Makefile for compiling RHexLib executables
 #
 # Created       : Uluc Saranli, 11/16/2000
 # Last Modified : Uluc Saranli, 06/27/2001
 #
 ######################################################################

UNAME = $(shell uname)

###########################################################
# You will need to modify the following section           #
###########################################################

# This line defines the name of the executables. Note that we assume
# the presence of an associated .cc file as well.
EXEC = example

# This line specifies all the other source files that need to be
# compiled and linked together with the executable
SOURCES = SampleModule.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 = 

# This line specifies any additional libraries that you want to link
# your executable against. Note that you MUST specify the full path of
# the library in question.
AUXLIBS = \
	$(LIBS_TOPDIR)/lib/libbase.a \
	$(LIBS_TOPDIR)/lib/libutils.a

###########################################################
# The following section will rarely need to change.       #
###########################################################

# The following sections set the variable LIBS based on which hardware
# platform is currently being uised. The LIBS variable contains ONLY
# the names of the libraries, without the path. The Makefile tools
# append the path automatically.

ifeq ($(RHEX_HARDWARE), _MCRHIO_)
AUXLIBS += \
	$(RHEX_TOPDIR)/lib/librhexresearchhw.a \
	$(RHEX_TOPDIR)/lib/librhexcommonhw.a
endif

ifeq ($(RHEX_HARDWARE), _SIMSECT_)
AUXLIBS += \
	$(RHEX_TOPDIR)/lib/librhexsimsecthw.a \
	$(RHEX_TOPDIR)/lib/librhexcommonhw.a \
	$(RHEX_TOPDIR)/lib/libhexapod.a \
	$(RHEX_TOPDIR)/lib/libengine.a \
	$(RHEX_TOPDIR)/lib/libml.a \
	$(RHEX_TOPDIR)/lib/libmisc.a 
endif

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

ifndef RHEX_DIR
$(error RHEX_DIR environment variable is not defined!)
endif

include $(RHEX_DIR)/tools/bintargets.mk
