root / xseg / Makefile @ 9fb0f83b
History | View | Annotate | Download (823 Bytes)
1 |
.PHONY: default clean target-list distclean |
---|---|
2 |
|
3 |
TARGET=default |
4 |
include ./base.mk |
5 |
|
6 |
XSEG_CLEAN_TARGETS=$(patsubst %,clean-%,$(XSEG_DOMAIN_TARGETS)) |
7 |
|
8 |
default: targets |
9 |
|
10 |
target-list: |
11 |
@echo $(XSEG_DOMAIN_TARGETS) |
12 |
|
13 |
targets: $(XSEG_DOMAIN_TARGETS) |
14 |
|
15 |
clean: $(XSEG_CLEAN_TARGETS) |
16 |
|
17 |
.PHONY: $(XSEG_DOMAIN_TARGETS) |
18 |
$(XSEG_DOMAIN_TARGETS): |
19 |
@for f in $(XSEG_DOMAIN_DIRS); do \ |
20 |
echo " "; \ |
21 |
echo "=== $@ in $$f ==="; \ |
22 |
echo " "; \ |
23 |
make -C $$f/$@ TARGET=$@ default || exit 1; \ |
24 |
echo " "; \ |
25 |
done |
26 |
@echo " " |
27 |
|
28 |
.PHONY: $(XSEG_CLEAN_TARGETS) |
29 |
$(XSEG_CLEAN_TARGETS): |
30 |
@for f in $(XSEG_DOMAIN_DIRS); do \ |
31 |
echo " "; \ |
32 |
echo "=== $@ in $$f ==="; \ |
33 |
echo " "; \ |
34 |
make -C $$f/$(@:clean-%=%) TARGET=$@ clean || true; \ |
35 |
echo " "; \ |
36 |
done |
37 |
rm -f ./config.mk |
38 |
@echo " " |
39 |
|
40 |
distclean: |
41 |
rm -f lib/user/*.so* lib/user/*.a |
42 |
rm -f lib/kernel/*.ko |