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

# Example 5 - Dhrystone V2.1 

PROG	=dhry
SRCS	=dhry21a.c dhry21b.c timers_b.c

# For inter-module optimization uncomment the next line
#OBJS	=dhry21.o timers_b.o

# For Dhrystone V1.1 uncomment the next line
#SRCS	=dhry11.c timers_b.c

# Enable loop unrolling, but not function inlining (dhrystone rules)
CFLAGS += -O3 -funroll-loops -fno-inline-functions
CFLAGS += -ffunction-sections
LDFLAGS += -Wl,--gc-sections

# Select ANSI clock() timer (see timers_b.c)
CPPFLAGS=-DCTimer

# Floating-point is required by Dhrystone timer routines.
# Remove or comment the next line if your program
# does NOT contain floating point arithmetic
FLOAT	=yes

include $(SDETOP)/examples/make.mk

# For inter-module optimization compile all source as a single unit
dhry21.o: $(SRCS)
	$(COMPILE.c) -o $@ $(SRCS)
