-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (27 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PROJECTS = $(shell git submodule status | cut -c 43- | cut -d " " -f 1)
ALLCLEAN = $(patsubst %,%-clean,$(PROJECTS))
export BITBOX = $(shell pwd)/bitbox
.PHONY: $(PROJECTS)
.PHONY: stable-clean $(ALLCLEAN) ubuntudeps haikudeps
$(info $(PROJECTS))
all: $(PROJECTS)
$(PROJECTS):
$(info "-------------------------------------------------------")
$(info $@)
$(info "-------------------------------------------------------")
$(info "")
$(MAKE) -C $@ # can fail
allclean: $(ALLCLEAN)
$(ALLCLEAN):
$(MAKE) -C $(patsubst %-clean,%,$@) clean
test_allemu: $(PROJECTS)
for prg in $(PROJECTS);do echo "\n\n **** Testing $$prg\n\n"; cd $$prg && ./*_emu --quiet; cd .. ; done
haikudeps:
pkgman install arm_none_eabi_gcc_x86 arm_none_eabi_newlib_x86 arm_none_eabi_binutils_x86 \
libsdl_x86_devel ncurses_x86_devel mpc_x86 make python_imaging gws
echo "Remember to run \"setarch x86\" before compiling!"
ubuntudeps:
sudo apt install build-essential gcc-arm-none-eabi python libsdl1.2-dev sox
pip install pillow
arm-none-eabi-gcc --version
gcc --version