# BMCoCo Pi 500 platform probe.
#
# The Circle and circle-stdlib trees are external, pinned dependencies. This
# Makefile deliberately does not copy or modify them.

CIRCLE_STDLIB_DIR ?= /home/ron/source/BMCoCo-deps/circle-stdlib
CIRCLEHOME = $(CIRCLE_STDLIB_DIR)/libs/circle

OBJS = main.o kernel.o audio_probe.o

include $(CIRCLE_STDLIB_DIR)/Config.mk

# circle-stdlib configured Circle with Newlib support. Link the same complete
# library set used by its supported samples; linking bare Circle archives here
# would leave libc symbols unresolved.
INCLUDE := -I../../../include $(CIRCLE_STDLIB_INCLUDES) $(INCLUDE)
LIBS := $(CIRCLE_STDLIB_LIBS)
LIBS += $(CIRCLEHOME)/lib/fs/fat/libfatfs.a
LIBS += $(CIRCLEHOME)/lib/sound/libsound.a

include $(CIRCLEHOME)/Rules.mk

-include $(DEPS)
