mirror of
https://github.com/AntonioND/nitro-engine.git
synced 2025-06-18 08:35:44 -04:00

Until now the main makefiles of Nitro Engine have been the ones of devkitPro, forcing users to go through extra steps to build everything under BlocksDS. Now, the easy makefiles are the BlocksDS ones, and additional notes have been added to warn about the limitations of devkitPro: - No GRF support in libnds. - NitroFS doesn't work in melonDS.
29 lines
544 B
Makefile
29 lines
544 B
Makefile
# SPDX-License-Identifier: CC0-1.0
|
|
#
|
|
# SPDX-FileContributor: Antonio Niño Díaz, 2023-2024
|
|
|
|
.PHONY: all clean
|
|
|
|
MAKE := make
|
|
|
|
all:
|
|
@for i in `ls`; do \
|
|
if test -e $$i/Makefile ; then \
|
|
cd $$i; \
|
|
$(MAKE) --no-print-directory || exit 1 ; \
|
|
cd ..; \
|
|
fi; \
|
|
done;
|
|
@mkdir -p build-all
|
|
@find . -name "*.nds" -not -path build-all -exec cp -fv {} build-all \;
|
|
|
|
clean:
|
|
@for i in `ls`; do \
|
|
if test -e $$i/Makefile ; then \
|
|
cd $$i; \
|
|
$(MAKE) clean --no-print-directory || exit 1 ; \
|
|
cd ..; \
|
|
fi; \
|
|
done;
|
|
@rm -fr build-all
|