Subversion Repositories HelenOS

Rev

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

Rev 3403 Rev 4340
Line 34... Line 34...
34
## Setup platform configuration
34
## Setup platform configuration
35
#
35
#
36
 
36
 
37
ifeq ($(PLATFORM),amd64)
37
ifeq ($(PLATFORM),amd64)
38
	KARCH = amd64
38
	KARCH = amd64
39
	MACHINE = opteron
-
 
40
	UARCH = amd64
39
	UARCH = amd64
41
	BARCH = amd64
40
	BARCH = amd64
42
endif
41
endif
43
 
42
 
44
ifeq ($(PLATFORM),arm32)
43
ifeq ($(PLATFORM),arm32)
Line 109... Line 108...
109
endif
108
endif
110
 
109
 
111
.PHONY: all build config distclean clean cscope
110
.PHONY: all build config distclean clean cscope
112
 
111
 
113
all:
112
all:
114
	tools/config.py HelenOS.config default $(PLATFORM) $(COMPILER) $(CONFIG_DEBUG)
113
	tools/config.py HelenOS.config default
115
	$(MAKE) -C . build
114
	$(MAKE) -C . build
116
 
115
 
117
build:
-
 
118
ifneq ($(MACHINE),)
116
build: Makefile.config
119
	$(MAKE) -C kernel ARCH=$(KARCH) COMPILER=$(COMPILER) CONFIG_DEBUG=$(CONFIG_DEBUG) MACHINE=$(MACHINE)
-
 
120
else
-
 
121
	$(MAKE) -C kernel ARCH=$(KARCH) COMPILER=$(COMPILER) CONFIG_DEBUG=$(CONFIG_DEBUG)
117
	$(MAKE) -C kernel ARCH=$(KARCH)
122
endif
-
 
123
	$(MAKE) -C uspace ARCH=$(UARCH) COMPILER=$(COMPILER) CONFIG_DEBUG=$(CONFIG_DEBUG)
118
	$(MAKE) -C uspace ARCH=$(UARCH)
124
ifneq ($(IMAGE),)
-
 
125
	$(MAKE) -C boot ARCH=$(BARCH) COMPILER=$(COMPILER) CONFIG_DEBUG=$(CONFIG_DEBUG) IMAGE=$(IMAGE)
-
 
126
else
-
 
127
	$(MAKE) -C boot ARCH=$(BARCH) COMPILER=$(COMPILER) CONFIG_DEBUG=$(CONFIG_DEBUG)
119
	$(MAKE) -C boot ARCH=$(BARCH) IMAGE=$(IMAGE)
128
endif
-
 
129
 
120
 
130
config:
121
config: HelenOS.config
131
	tools/config.py HelenOS.config
122
	tools/config.py HelenOS.config
132
 
123
 
133
distclean:
124
distclean: clean
134
	-$(MAKE) -C kernel distclean
-
 
135
	-$(MAKE) -C uspace distclean
-
 
136
	-$(MAKE) -C boot distclean
-
 
137
	rm -f Makefile.config tools/*.pyc
125
	rm -f Makefile.config tools/*.pyc
138
 
126
 
139
clean:
127
clean:
140
	-$(MAKE) -C kernel clean
128
	-$(MAKE) -C kernel clean ARCH=$(KARCH)
141
	-$(MAKE) -C uspace clean
129
	-$(MAKE) -C uspace clean ARCH=$(UARCH)
142
	-$(MAKE) -C boot clean
130
	-$(MAKE) -C boot clean ARCH=$(BARCH) IMAGE=$(IMAGE)
143
 
131
 
144
cscope:
132
cscope:
145
	find kernel boot uspace -regex '^.*\.[chsS]$$' -print > srclist
133
	find kernel boot uspace -regex '^.*\.[chsS]$$' -print > srclist
146
	rm -f cscope.out
134
	rm -f cscope.out
147
	cscope -bi srclist
135
	cscope -bi srclist