#this includes the configuration Makefile from carmen
include ../../../Makefile.conf

#Insert here the name of any submodules you have
#SUBDIRS =

#Compilation flags for gcc
CFLAGS += -lstdc++
#Compilation flags for g++
CXXFLAGS +=

#Insert here the name of any include directories you may need.
#NOTE: default carmen/include directories or even default directories like /urs/include are not required
#NOTE: must use the -I before the directory
IFLAGS +=  -I./

#Insert here the name of any library directories you may need.
#NOTE: default carmen/lib directories or even default directories like /urs/lib are not required
#Default carmen global lib. Always here.
#Default ipc lib. Always here.
#Default carmen param_interface lib. Always here.
LFLAGS +=  -lglobal\
			-lipc\
			-lparam_interface\
			libreadcommandlineparameters.a\
			librcud_interface.a\
			libatlas_interface.a
#			libsoundplayer_interface.a\
#falta colocar o libatlas_interface.a libsoundgenerator_interface.a libimagelogger_interface.a

#Insert here the module name in capitals
MODULE_NAME = UAN - Ultrasinic Assisted Navigation
#Insert here a sumary of the module funtion.
MODULE_COMMENT =  Assisted Navigation using ultrasonic data [Bruno A.]

#Insert here all the source files required for compilation
SOURCES =	uan.cpp\
		uan_functions.cpp\
		uan_interface.cpp

#Insert here all the header files that public. They are public if they are needed by other modules. Make will copy them to carmen/include. Usually both the _interface.h and the _messages.h are added here.
PUBLIC_INCLUDES = uan_messages.h uan_interface.h
# ultrasonic_messages.h ultrasonic_interface.h

#insert here the name of the libraries that should be public. They are public if they are needed by other modules. Make will copy them to carmen/lib. Usually the lib[modulename]_interface.a is added here.
PUBLIC_LIBRARIES = 
# libultrasonic_interface.a

#insert here the name of the shared libraries that should be public. They are public if they are needed by other modules. Make will copy them to carmen/lib. Usually the lib[modulename]_interface.so is added here.
PUBLIC_LIBRARIES_SO =

#insert here the name of the binaries that should be public. They are public if they are needed by other modules. Make will copy them to carmen/bin.
PUBLIC_BINARIES = uan

#Here we define all the targets that we want to compile
TARGETS = uan 
# libultrasonic_interface.a

#im not sure why this is here but i know it should be :)
ifndef NO_PYTHON
TARGETS += libmoduletemplate_interface.so.1
endif

#Compilation rules for all targets defined. Usually, implicit actions for the rules are used so there is no need to write them . However, if you want to write explicitly dont forget to use at least one tab.
#NOTE: In this section there should be only the compilation rules for the targets declared previously and eventual libraries from submodules. All other libs from other carmen modules from which the dependency rules are set in Makefile.lar.rules.

#Example for a submodule interface library rule
#submoduletemplate/libsubmoduletemplate_interface.a:
#	cd submoduletemplate && $(MAKE)

#Rule for all module libraries
# libultrasonic_interface.a: ultrasonic_interface.o
# libultrasonic_interface.so.1: ultrasonic_interface.o


#Rule for all module binaries
uan:	uan_functions.o\
		uan.o\
		$(LAR_HOME)/lib/libreadcommandlineparameters.a\
		$(LAR_HOME)/src/sensors/ultrasonic/libultrasonic_interface.a
# 		$(LAR_HOME)/src/hmi/soundplayer/libsoundplayer_interface.a

#../imagelogger/libimagelogger_interface.a

#A compilation rule all moduletemplate public libraries should be added to ../Makefile.lar.rules
#Example for libmoduletemplate_interface
#libmoduletemplate_interface.a:
#	cd ../moduletemplate && $(MAKE)

#Compilation rules for standart carmen libraries
include ../../../Makefile.rules
