Rev 3666 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3666 | Rev 4153 | ||
---|---|---|---|
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/softint \ |
38 | lib/softint \ |
38 | lib/softfloat \ |
39 | lib/softfloat \ |
39 | srv/ns \ |
40 | srv/ns \ |
40 | srv/loader \ |
41 | srv/loader \ |
41 | srv/fb \ |
42 | srv/fb \ |
Line 47... | Line 48... | ||
47 | srv/vfs \ |
48 | srv/vfs \ |
48 | srv/devmap \ |
49 | srv/devmap \ |
49 | srv/net \ |
50 | srv/net \ |
50 | app/tetris \ |
51 | app/tetris \ |
51 | app/tester \ |
52 | app/tester \ |
- | 53 | app/trace \ |
|
52 | app/klog \ |
54 | app/klog \ |
53 | app/init \ |
55 | app/init \ |
54 | app/bdsh |
56 | app/bdsh |
55 | 57 | ||
56 | ifeq ($(ARCH), amd64) |
58 | ifeq ($(UARCH),amd64) |
57 | DIRS += srv/pci |
59 | DIRS += srv/pci |
58 | endif |
60 | endif |
59 | 61 | ||
60 | ifeq ($(ARCH), ia32) |
62 | ifeq ($(UARCH),ia32) |
61 | DIRS += srv/pci |
63 | DIRS += srv/pci |
62 | endif |
64 | endif |
63 | 65 | ||
64 | ifeq ($(ARCH), mips32) |
66 | ifeq ($(UARCH),sparc64) |
65 | CFLAGS += -DCONFIG_MIPS_FPU |
67 | DIRS += \ |
66 | endif |
68 | srv/fhc \ |
67 | - | ||
68 | ifeq ($(ARCH), mips32eb) |
69 | srv/obio |
69 | CFLAGS += -DCONFIG_MIPS_FPU |
- | |
70 | endif |
70 | endif |
71 | 71 | ||
72 | BUILDS := $(addsuffix .build,$(DIRS)) |
72 | BUILDS := $(addsuffix .build,$(DIRS)) |
73 | CLEANS := $(addsuffix .clean,$(DIRS)) |
73 | CLEANS := $(addsuffix .clean,$(DIRS)) |
74 | 74 | ||
75 | .PHONY: all config build $(BUILDS) $(CLEANS) clean distclean |
75 | .PHONY: all $(BUILDS) $(CLEANS) clean |
76 | - | ||
77 | all: |
- | |
78 | ../tools/config.py uspace.config default $(ARCH) $(COMPILER) $(CONFIG_DEBUG) |
- | |
79 | $(MAKE) -C . build |
- | |
80 | 76 | ||
81 | config: |
- | |
82 | ../tools/config.py uspace.config |
77 | all: ../Makefile.config ../config.h ../config.defs $(BUILDS) |
83 | - | ||
84 | build: $(BUILDS) |
- | |
85 | 78 | ||
86 | clean: $(CLEANS) |
79 | clean: $(CLEANS) |
87 | find $(DIRS) -name '*.o' -follow -exec rm \{\} \; |
- | |
88 | find lib/libc -name "_link.ld" -exec rm \{\} \; |
- | |
89 | - | ||
90 | distclean: clean |
- | |
91 | -rm Makefile.config |
- | |
92 | 80 | ||
93 | $(CLEANS): |
81 | $(CLEANS): |
94 | -$(MAKE) -C $(basename $@) clean ARCH=$(ARCH) |
82 | -$(MAKE) -C $(basename $@) clean |
95 | 83 | ||
96 | $(BUILDS): |
84 | $(BUILDS): |
97 | $(MAKE) -C $(basename $@) all ARCH=$(ARCH) COMPILER=$(COMPILER) NETWORKING=$(NETWORKING) |
85 | $(MAKE) -C $(basename $@) all |
- | 86 |