Subversion Repositories HelenOS

Rev

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

Rev 4340 Rev 4342
Line 29... Line 29...
29
## Include configuration
29
## Include configuration
30
#
30
#
31
 
31
 
32
-include Makefile.config
32
-include Makefile.config
33
 
33
 
34
## Setup platform configuration
-
 
35
#
-
 
36
 
-
 
37
ifeq ($(PLATFORM),amd64)
-
 
38
	KARCH = amd64
-
 
39
	UARCH = amd64
-
 
40
	BARCH = amd64
-
 
41
endif
-
 
42
 
-
 
43
ifeq ($(PLATFORM),arm32)
-
 
44
	KARCH = arm32
-
 
45
	UARCH = arm32
-
 
46
	BARCH = arm32
-
 
47
endif
-
 
48
 
-
 
49
ifeq ($(PLATFORM),ia32)
-
 
50
	KARCH = ia32
-
 
51
	UARCH = ia32
-
 
52
	BARCH = ia32
-
 
53
endif
-
 
54
 
-
 
55
ifeq ($(PLATFORM),ia64)
-
 
56
	KARCH = ia64
-
 
57
	UARCH = ia64
-
 
58
	BARCH = ia64
-
 
59
endif
-
 
60
 
-
 
61
ifeq ($(PLATFORM),mips32)
-
 
62
	KARCH = mips32
-
 
63
	BARCH = mips32
-
 
64
	
-
 
65
	ifeq ($(MACHINE),msim)
-
 
66
		UARCH = mips32
-
 
67
		IMAGE = binary
-
 
68
	endif
-
 
69
	
-
 
70
	ifeq ($(MACHINE),simics)
-
 
71
		UARCH = mips32
-
 
72
		IMAGE = ecoff
-
 
73
	endif
-
 
74
	
-
 
75
	ifeq ($(MACHINE),bgxemul)
-
 
76
		UARCH = mips32eb
-
 
77
		IMAGE = ecoff
-
 
78
	endif
-
 
79
	
-
 
80
	ifeq ($(MACHINE),lgxemul)
-
 
81
		UARCH = mips32
-
 
82
		IMAGE = ecoff
-
 
83
	endif
-
 
84
endif
-
 
85
 
-
 
86
ifeq ($(PLATFORM),ppc32)
-
 
87
	KARCH = ppc32
-
 
88
	UARCH = ppc32
-
 
89
	BARCH = ppc32
-
 
90
endif
-
 
91
 
-
 
92
ifeq ($(PLATFORM),ppc64)
-
 
93
	KARCH = ppc64
-
 
94
	UARCH = ppc64
-
 
95
	BARCH = ppc64
-
 
96
endif
-
 
97
 
-
 
98
ifeq ($(PLATFORM),sparc64)
-
 
99
	KARCH = sparc64
-
 
100
	UARCH = sparc64
-
 
101
	BARCH = sparc64
-
 
102
endif
-
 
103
 
-
 
104
ifeq ($(PLATFORM),ia32xen)
-
 
105
	KARCH = ia32xen
-
 
106
	UARCH = ia32
-
 
107
	BARCH = ia32xen
-
 
108
endif
-
 
109
 
-
 
110
.PHONY: all build config distclean clean cscope
34
.PHONY: all build config distclean clean cscope
111
 
35
 
112
all:
36
all:
113
	tools/config.py HelenOS.config default
37
	tools/config.py HelenOS.config default
114
	$(MAKE) -C . build
38
	$(MAKE) -C . build
115
 
39
 
116
build: Makefile.config
40
build: Makefile.config config.h config.defs
117
	$(MAKE) -C kernel ARCH=$(KARCH)
41
	$(MAKE) -C kernel
118
	$(MAKE) -C uspace ARCH=$(UARCH)
42
	$(MAKE) -C uspace
119
	$(MAKE) -C boot ARCH=$(BARCH) IMAGE=$(IMAGE)
43
	$(MAKE) -C boot
120
 
44
 
121
config: HelenOS.config
45
config: HelenOS.config
122
	tools/config.py HelenOS.config
46
	tools/config.py HelenOS.config
123
 
47
 
124
distclean: clean
48
distclean: clean
125
	rm -f Makefile.config tools/*.pyc
49
	rm -f Makefile.config config.h config.defs tools/*.pyc
126
 
50
 
127
clean:
51
clean:
128
	-$(MAKE) -C kernel clean ARCH=$(KARCH)
52
	-$(MAKE) -C kernel clean
129
	-$(MAKE) -C uspace clean ARCH=$(UARCH)
53
	-$(MAKE) -C uspace clean
130
	-$(MAKE) -C boot clean ARCH=$(BARCH) IMAGE=$(IMAGE)
54
	-$(MAKE) -C boot clean
131
 
55
 
132
cscope:
56
cscope:
133
	find kernel boot uspace -regex '^.*\.[chsS]$$' -print > srclist
57
	find kernel boot uspace -regex '^.*\.[chsS]$$' -print > srclist
134
	rm -f cscope.out
58
	rm -f cscope.out
135
	cscope -bi srclist
59
	cscope -bi srclist