Subversion Repositories HelenOS

Rev

Rev 1787 | Rev 1997 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1787 Rev 1802
Line 27... Line 27...
27
#
27
#
28
 
28
 
29
## Include configuration
29
## Include configuration
30
#
30
#
31
 
31
 
-
 
32
-include ../version
32
-include Makefile.config
33
-include Makefile.config
33
 
34
 
34
DIRS = \
35
DIRS = \
35
	libc \
36
	libc \
36
	softint \
37
	softint \
Line 45... Line 46...
45
	klog
46
	klog
46
 
47
 
47
ifeq ($(ARCH), amd64)
48
ifeq ($(ARCH), amd64)
48
	DIRS += pci
49
	DIRS += pci
49
endif
50
endif
-
 
51
 
50
ifeq ($(ARCH), ia32)
52
ifeq ($(ARCH), ia32)
51
	DIRS += pci
53
	DIRS += pci
52
endif
54
endif
53
 
55
 
-
 
56
ifeq ($(ARCH), mips32)
54
CFLAGS += -DCONFIG_MIPS_FPU
57
	CFLAGS += -DCONFIG_MIPS_FPU
-
 
58
endif
-
 
59
 
-
 
60
ifeq ($(ARCH), mips32eb)
-
 
61
	CFLAGS += -DCONFIG_MIPS_FPU
-
 
62
endif
55
 
63
 
56
BUILDS := $(addsuffix .build,$(DIRS))
64
BUILDS := $(addsuffix .build,$(DIRS))
57
CLEANS := $(addsuffix .clean,$(DIRS))
65
CLEANS := $(addsuffix .clean,$(DIRS))
58
 
66
 
59
.PHONY: all config build $(BUILDS) $(CLEANS) clean distclean
67
.PHONY: all config build $(BUILDS) $(CLEANS) clean distclean
60
 
68
 
61
all:
69
all:
62
	tools/config.py default $(NARCH)
70
	../tools/config.py uspace.config default $(ARCH) $(COMPILER) $(CONFIG_DEBUG)
63
ifdef NARCH
-
 
64
 ifneq ($(ARCH), $(NARCH))
-
 
65
	$(MAKE) -C . clean
-
 
66
 endif
-
 
67
endif
-
 
68
	$(MAKE) -C . build
71
	$(MAKE) -C . build
69
 
72
 
70
config:
73
config:
71
	tools/config.py
74
	../tools/config.py uspace.config
72
 
75
 
73
build: $(BUILDS)
76
build: $(BUILDS)
74
 
77
 
75
clean: $(CLEANS)
78
clean: $(CLEANS)
76
	find $(SOURCES) -name '*.o' -follow -exec rm \{\} \;
79
	find $(SOURCES) -name '*.o' -follow -exec rm \{\} \;