diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-15 21:04:28 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-24 18:05:53 +0100 |
commit | c876d3bbefe0dc00c27ca0c12d29da5874946962 (patch) | |
tree | 69f468a185a369b01998314bc3ecc19b70f4fcaa /utils/mkamsboot/Makefile | |
parent | 6c6f0757d7a902feb293be165d1490c42bc8e7ad (diff) | |
download | rockbox-c876d3bbefe0dc00c27ca0c12d29da5874946962.tar.gz rockbox-c876d3bbefe0dc00c27ca0c12d29da5874946962.zip |
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
Diffstat (limited to 'utils/mkamsboot/Makefile')
-rw-r--r-- | utils/mkamsboot/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
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 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | |||
8 | # We use the UCL code available in the Rockbox tools/ directory | ||
9 | CFLAGS += -I../../tools/ucl/include -Wall | ||
10 | |||
11 | OUTPUT = mkamsboot | ||
12 | LIBUCL = libucl.a | ||
13 | |||
14 | # inputs | ||
15 | LIBSOURCES := dualboot.c md5.c mkamsboot.c | ||
16 | SOURCES := main.c | ||
17 | # additional link dependencies for the standalone executable | ||
18 | EXTRADEPS := $(LIBUCL) | ||
19 | |||
20 | include ../libtools.make | ||
21 | # explicit dependencies on dualboot.{c,h} and mkamsboot.h | ||
22 | $(OBJDIR)mkamsboot.o: dualboot.h dualboot.c mkamsboot.c mkamsboot.h | ||
23 | $(OBJDIR)main.o: dualboot.h dualboot.c main.c mkamsboot.h | ||
24 | |||
25 | |||
26 | $(TARGET_DIR)$(OUTPUT).dll: EXTRALIBOBJS += $(TARGET_DIR)ucl.dll | ||
27 | $(TARGET_DIR)$(OUTPUT).dll: $(TARGET_DIR)ucl.dll | ||
28 | $(TARGET_DIR)ucl.dll: | ||
29 | $(SILENT)$(MAKE) -C ../../tools/ucl/src/ \ | ||
30 | BUILD_DIR=$(BUILD_DIR) CC=$(CC) CROSS=$(CROSS) \ | ||
31 | TARGET_DIR=$(TARGET_DIR)/ ucl.dll | ||