# -*-mode: Makefile;-*-  ;; Have EMACS always use makefile-mode for this file. 
#
#   packageVar
#
# To use it, please include this file in your top-level makeVar.


# Please, replace "((PACKAGENAME))" with the project name
# (e.g. DISPLAYWINDOW_MAKEVAR )
ifeq "${IPP_MAKEVAR}" "" # include only once
IPP_MAKEVAR=IPP_MAKEVAR  # include only once

# include only if IPP available
ifeq "$(HAVE_IPP)" "TRUE"

# Please, include here the inherited projects
# (e.g. include ${AGNI_GLOBAL_ROOT}/globalVar )
# (e.g. include ${AGNI_GLOBAL_ROOT}/Basics/Base/1.0/packageVar )

# Please, place here the include directory of the project
# (e.g. -I${AGNI_GLOBAL_ROOT}/Modules/DisplayWindow/1.0/include )
ifeq "${OS_TYPE}" "linux"
ABS_INCLUDES:= ${ABS_INCLUDES} \
               -I${IPP_ROOT}/5.2/include
endif
ifeq "${OS_TYPE}" "macosx"
#mac support
ABS_INCLUDES:= ${ABS_INCLUDES} \
               -I${IPP_ROOT}/Intel_IPP.framework/Headers
endif

# Please, do not change this ifeq statement
ifeq "${HRI_INHERIT_MODE}" "STATIC"


# Please, place here the static libraries
# (e.g. ${AGNI_GLOBAL_ROOT}/Modules/DisplayWindow/1.0/lib/libDisplayWindow.a )
ABS_OBJECTS:= ${ABS_OBJECTS} 

# Please, do not remove the else statement
else

# Please, place here the lib directory of the project
# and the library name. Add extra library path with
# library names as well (when needed)
# (e.g. -L${AGNI_GLOBAL_ROOT}/Modules/DisplayWindow/1.0/lib \
#       -lDisplayWindow )
# (e.g. extra library like: -L/usr/lib -lpthreads )
ifeq "${OS_TYPE}" "linux"
ABS_LIBRARIES:= ${ABS_LIBRARIES} \
                -L${IPP_ROOT}/5.2/sharedlib -Wl,-rpath=${IPP_ROOT}/5.2/sharedlib \
                -lippcore \
                -lippi \
                -lipps \
                -lippsr \
                -lippcv \
                -lippm \
                -lippcc \
                -lguide
endif
ifeq "${OS_TYPE}" "macosx"
ABS_LIBRARIES:= ${ABS_LIBRARIES} \
                -L${IPP_ROOT}/Intel_IPP.framework/Versions/5.2/ia32/Libraries \
                -lippcore \
                -lippi \
                -lipps \
                -lippsr \
                -lippcv \
                -lippm \
                -lippcc \
                -lguide
endif

# Please, do not remove this endif statement
endif

# Please, place here needed C defines (for static compilation)
CDEFINES:= ${CDEFINES}

# Please, place here C flags (for static compilation)
CFLAGS:= ${CFLAGS}

# place here needed C++ defines (for static compilation)
# (e.g. -DASSERT, -DEXCEPTION, -DREENTRANT )
CPPDEFINES:= ${CPPDEFINES}

# Please, place here C++ flags (for static compilation)
CPPFLAGS:= ${CPPFLAGS}

REQUIRES_PKGCONFIG:=Intel-IPP


# Please, don't forget to set the appropriate AGNI_GLOBAL_ROOT in your environment.

endif # IPP available
endif # only once