# ******************************************************************************
# (C) Automotive-Lighting Reutlingen GmbH  -  ALRT/EEG
#     Tuebinger Strasse 123, 72762 Reutlingen, Germany
# ******************************************************************************

# ------------------------------------------------------------------------------
# file   Hal_030_Flags.gmk
#
# \brief compiler/assembler/linker options on HAL level
#
# \descr
#
# ------------------------------------------------------------------------------

# The results of this file are:
#   CFLAGS_DEFAULT (Compiler flags for C)
#   CFLAGS_NOWARN  (Compiler flags for C, all warnings disabled)
#   CFLAGS_DEBUG   (Compiler flags for C, debug info available and optimization disabled)
#   CPPFLAGS       (Compiler flags for C++)
#   AFLAGS         (Compiler flags for assembler)
#   LDFLAGS        (Compiler flags for linker)

C_DEFINES               := $(C_DEFINES)

C_DEFINES_TOOL_INTERNAL := $(C_DEFINES_TOOL_INTERNAL)                \
                           _MSC_VER                                  \
                           _WIN32                                    \
                           _WIN64                                    \
                           _M_X64                                    \
                           NDEBUG                                    \
                           _CONSOLE

ifeq ($(TYP_CORE),X64)
$(GNUECHO) TBD: Set the tool chain flags for X64
endif

CFLAGS_DEFAULT  = /TC /GS /W3 /WX- /Gy /Gd /GR /MT /FC /Zc:wchar_t /Z7 /Gm- /Od /sdl /fp:precise /errorreport:prompt /Zc:inline /Zc:forScope /EHsc /nologo /wd4996
CFLAGS_NOWARN   = /TC /GS /W0 /WX- /Gy /Gd /GR /MT /FC /Zc:wchar_t /Z7 /Gm- /Od /sdl /fp:precise /errorreport:prompt /Zc:inline /Zc:forScope /EHsc /nologo /wd4996
CFLAGS_DEBUG    = /TC /GS /W0 /WX- /Gy /Gd /GR /MT /FC /Zc:wchar_t /Z7 /Gm- /Od /sdl /fp:precise /errorreport:prompt /Zc:inline /Zc:forScope /EHsc /nologo /wd4996
CPPFLAGS        = /TP /GS /W3 /WX- /Gy /Gd /GR /MT /FC /Zc:wchar_t /Z7 /Gm- /Od /sdl /fp:precise /errorreport:prompt /Zc:inline /Zc:forScope /EHsc /nologo /wd4996
LDFLAGS         = /MANIFEST /NXCOMPAT /DYNAMICBASE /DEBUG /MACHINE:X64 /INCREMENTAL /SUBSYSTEM:CONSOLE /ERRORREPORT:PROMPT /NOLOGO /TLBID:1
AFLAGS          = $(CFLAGS_DEFAULT)
