ifneq (,$(wildcard *.sbd))
include $(wildcard *.sbd)
endif
SDETOP ?= ../..

PROG 	   	=linpack
SRCS            =linpack.c

# Enable compiler loop unrolling
ROLL=-funroll-loops -DROLL

# Enable manual loop unrolling
#ROLL=-DUNROLL

# Reduce loop count for simulated MIPS16 targets
ifneq (,$(strip $(filter MSIM16% MSIMM4K%,$(SBD))))
  NTIMES = -DNTIMES=1
endif

CFLAGS += -O3 -g $(ROLL) $(PRECISION) $(NTIMES)
CFLAGS += -ffunction-sections
LDFLAGS += -Wl,--gc-sections

FLOAT           =yes

include $(SDETOP)/examples/make.mk

ifeq ($(FPU),single)
  PRECISION=-DSP
else
  PRECISION=-DDP
endif
