Rev 3597 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3597 | Rev 4377 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | # |
27 | # |
28 | 28 | ||
29 | ## Include configuration |
29 | ## Include configuration |
30 | # |
30 | # |
31 | 31 | ||
32 | -include Makefile.config |
32 | -include ../Makefile.config |
33 | 33 | ||
34 | DIRS = \ |
34 | DIRS = \ |
35 | lib/libc \ |
35 | lib/libc \ |
36 | lib/libfs \ |
36 | lib/libfs \ |
37 | lib/libblock \ |
37 | lib/libblock \ |
Line 53... | Line 53... | ||
53 | app/tester \ |
53 | app/tester \ |
54 | app/klog \ |
54 | app/klog \ |
55 | app/init \ |
55 | app/init \ |
56 | app/bdsh |
56 | app/bdsh |
57 | 57 | ||
58 | ifeq ($(ARCH), amd64) |
58 | ifeq ($(UARCH),amd64) |
59 | DIRS += srv/pci |
59 | DIRS += srv/pci |
60 | endif |
60 | endif |
61 | 61 | ||
62 | ifeq ($(ARCH), ia32) |
62 | ifeq ($(UARCH),ia32) |
63 | DIRS += srv/pci |
63 | DIRS += srv/pci |
64 | endif |
64 | endif |
65 | 65 | ||
66 | ifeq ($(ARCH), mips32) |
66 | ifeq ($(UARCH),sparc64) |
67 | CFLAGS += -DCONFIG_MIPS_FPU |
67 | DIRS += \ |
68 | endif |
68 | srv/fhc \ |
69 | - | ||
70 | ifeq ($(ARCH), mips32eb) |
69 | srv/obio |
71 | CFLAGS += -DCONFIG_MIPS_FPU |
- | |
72 | endif |
70 | endif |
73 | 71 | ||
74 | BUILDS := $(addsuffix .build,$(DIRS)) |
72 | BUILDS := $(addsuffix .build,$(DIRS)) |
75 | CLEANS := $(addsuffix .clean,$(DIRS)) |
73 | CLEANS := $(addsuffix .clean,$(DIRS)) |
76 | 74 | ||
77 | .PHONY: all config build $(BUILDS) $(CLEANS) clean distclean |
75 | .PHONY: all $(BUILDS) $(CLEANS) clean |
78 | - | ||
79 | all: |
- | |
80 | ../tools/config.py uspace.config default $(ARCH) $(COMPILER) $(CONFIG_DEBUG) |
- | |
81 | $(MAKE) -C . build |
- | |
82 | 76 | ||
83 | config: |
- | |
84 | ../tools/config.py uspace.config |
77 | all: ../Makefile.config ../config.h ../config.defs $(BUILDS) |
85 | - | ||
86 | build: $(BUILDS) |
- | |
87 | 78 | ||
88 | clean: $(CLEANS) |
79 | clean: $(CLEANS) |
89 | find $(DIRS) -name '*.o' -follow -exec rm \{\} \; |
- | |
90 | find lib/libc -name "_link.ld" -exec rm \{\} \; |
- | |
91 | - | ||
92 | distclean: clean |
- | |
93 | -rm Makefile.config |
- | |
94 | 80 | ||
95 | $(CLEANS): |
81 | $(CLEANS): |
96 | -$(MAKE) -C $(basename $@) clean |
82 | -$(MAKE) -C $(basename $@) clean |
97 | 83 | ||
98 | $(BUILDS): |
84 | $(BUILDS): |