include $(CERT_ROOT)/make/config.mk

#never change this
CERT_ARCH_TARGET:=linux_64
RELEASED:=TRUE
# Add flags set by config.mk
CFLAGS_GLOBAL += $(CFLAGS_COMMON_CONFIG)
ASFLAGS_GLOBAL += $(CFLAGS_COMMON_CONFIG)

CPPFLAGS_GLOBAL = -I$(CERT_ROOT)

CFLAGS_GLOBAL = $(CPPFLAGS_GLOBAL)

CFLAGS_GLOBAL += -DCERT_BRANCH_TARGET=${BRANCH_TARGET} -DSEMP_PLATFORM=${SEMP_PLATFORM} -DRELEASED=${RELEASED}
CFLAGS_GLOBAL += -Wall  

ASFLAGS_GLOBAL = $(CPPFLAGS_GLOBAL) -g

LDFLAGS_GLOBAL =

LDFLAGS_PATH = -L$(CERT_ROOT)/target/lib

PREFIX=-linux_64
CFLAGS_GLOBAL += -DCERT_ARCH_TARGET=${CERT_ARCH_TARGET}
ASFLAGS_GLOBAL += -DCERT_ARCH_TARGET=${CERT_ARCH_TARGET}
LDFLAGS_GLOBAL += -lrt

CC = gcc
AR = ar
LD = ld
STRIP = strip
OBJDUMP = objdump
NM = nm

CPP = g++

#  build object directory

OBJ_DIR = obj$(PREFIX)

OBJ_DIR_CPP = obj$(PREFIX)/cpp

#  standard compile line

COMPILE = $(CC) $(CFLAGS_GLOBAL) $(CFLAGS_LOCAL) -MD -c -o $@ $< 

ASSEMBLE = $(CC) $(ASFLAGS_GLOBAL) $(ASFLAGS_LOCAL) -MD -c -o $@ $<

MYARCHIVE = $(AR) -cr $@ $<

CPPCOMPILE = $(CPP) $(CFLAGS_GLOBAL) $(CFLAGS_LOCAL) -MD -c -o $@ $<
