From c876d3bbefe0dc00c27ca0c12d29da5874946962 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Wed, 15 Dec 2021 21:04:28 +0100 Subject: rbutil: Merge rbutil with utils folder. rbutil uses several components from the utils folder, and can be considered part of utils too. Having it in a separate folder is an arbitrary split that doesn't help anymore these days, so merge them. This also allows other utils to easily use libtools.make without the need to navigate to a different folder. Change-Id: I3fc2f4de19e3e776553efb5dea5f779dfec0dc21 --- utils/mkamsboot/Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 utils/mkamsboot/Makefile (limited to 'utils/mkamsboot/Makefile') diff --git a/utils/mkamsboot/Makefile b/utils/mkamsboot/Makefile new file mode 100644 index 0000000000..7100bd9512 --- /dev/null +++ b/utils/mkamsboot/Makefile @@ -0,0 +1,31 @@ +# __________ __ ___. +# Open \______ \ ____ ____ | | _\_ |__ _______ ___ +# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +# \/ \/ \/ \/ \/ + +# We use the UCL code available in the Rockbox tools/ directory +CFLAGS += -I../../tools/ucl/include -Wall + +OUTPUT = mkamsboot +LIBUCL = libucl.a + +# inputs +LIBSOURCES := dualboot.c md5.c mkamsboot.c +SOURCES := main.c +# additional link dependencies for the standalone executable +EXTRADEPS := $(LIBUCL) + +include ../libtools.make +# explicit dependencies on dualboot.{c,h} and mkamsboot.h +$(OBJDIR)mkamsboot.o: dualboot.h dualboot.c mkamsboot.c mkamsboot.h +$(OBJDIR)main.o: dualboot.h dualboot.c main.c mkamsboot.h + + +$(TARGET_DIR)$(OUTPUT).dll: EXTRALIBOBJS += $(TARGET_DIR)ucl.dll +$(TARGET_DIR)$(OUTPUT).dll: $(TARGET_DIR)ucl.dll +$(TARGET_DIR)ucl.dll: + $(SILENT)$(MAKE) -C ../../tools/ucl/src/ \ + BUILD_DIR=$(BUILD_DIR) CC=$(CC) CROSS=$(CROSS) \ + TARGET_DIR=$(TARGET_DIR)/ ucl.dll -- cgit v1.2.3