 # $Id$
 #
 # 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>

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

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

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

# This line specifies the source files that will becompiled to form
# the library
SOURCES = LogClient.cc WriteML.cc WriteASCII.cc WriteRaw.cc \
    MsgLogClient.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
AUXLIBS = $(RHEX_DIR)/lib/libbase.a $(RHEX_DIR)/lib/libutils.a
AUXFLAGS = -I./include

UNAME = $(shell uname)
ifeq ($(UNAME),Linux)
AUXFLAGS += -D_XOPEN_SOURCE=500
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

.PHONY : tools

tools :
	@make -C tools
	@make -C loggui

allclean : clean
	@make -C tools clean
	@make -C loggui clean

endif

