-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
34 lines (25 loc) · 794 Bytes
/
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
EXAMPLES = crappy kernel sdio usb \
framebuffer textmode blitter_balls blitter_video \
chiptune mod sampler bytebeat\
serial events
PROJECTS = 1st_boot 2nd_boot $(EXAMPLES:%=examples/%)
ALLCLEAN = $(patsubst %,%-clean,$(PROJECTS))
ALLTEST = $(patsubst %,%-test,$(TESTABLE))
export BITBOX=$(PWD)/sdk
.PHONY: $(PROJECTS)
.PHONY: $(ALLCLEAN)
$(info making $(PROJECTS))
all: $(PROJECTS)
$(PROJECTS):
$(info "-------------------------------------------------------")
$(info $@)
$(info "-------------------------------------------------------")
$(info "")
$(MAKE) -C $@ # can fail
clean: $(ALLCLEAN)
test: $(ALLTEST)
$(ALLCLEAN):
$(MAKE) -C $(patsubst %-clean,%,$@) clean
$(ALLTEST):
echo "\n\n **** Testing $(patsubst %-test,%,$@)\n";
$(MAKE) -C $(patsubst %-test,%,$@) test