Subversion Repositories HelenOS

Rev

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

Rev 4337 Rev 4340
Line 28... Line 28...
28
 
28
 
29
 
29
 
30
## Include configuration
30
## Include configuration
31
#
31
#
32
 
32
 
33
-include ../version
33
include ../version
34
-include Makefile.config
34
-include ../Makefile.config
35
 
35
 
36
INCLUDES = generic/include
36
INCLUDES = generic/include
37
OPTIMIZATION = 3
37
OPTIMIZATION = 3
38
 
38
 
39
## Common compiler flags
39
## Common compiler flags
Line 357... Line 357...
357
 
357
 
358
GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
358
GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
359
ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
359
ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
360
GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES)))
360
GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES)))
361
 
361
 
362
.PHONY: all build config distclean clean archlinks depend disasm
362
.PHONY: all build clean archlinks depend disasm
363
 
363
 
364
all:
364
all: ../Makefile.config
365
	../tools/config.py kernel.config default $(ARCH) $(COMPILER) $(CONFIG_DEBUG) $(MACHINE)
365
	-rm Makefile.depend
366
	$(MAKE) -C . build
366
	$(MAKE) -C . build
367
 
367
 
368
build: kernel.bin disasm
368
build: kernel.bin disasm
369
 
369
 
370
config:
-
 
371
	-rm Makefile.depend
-
 
372
	../tools/config.py kernel.config
-
 
373
 
-
 
374
-include Makefile.depend
370
-include Makefile.depend
375
 
371
 
376
distclean: clean
-
 
377
	-rm Makefile.config
-
 
378
 
-
 
379
clean:
372
clean:
380
	-rm -f kernel.bin kernel.raw kernel.map kernel.map.pre kernel.objdump kernel.disasm generic/src/debug/real_map.bin Makefile.depend* generic/include/arch generic/include/genarch arch/$(ARCH)/_link.ld
373
	-rm -f kernel.bin kernel.raw kernel.map kernel.map.pre kernel.objdump kernel.disasm generic/src/debug/real_map.bin Makefile.depend* generic/include/arch generic/include/genarch arch/$(ARCH)/_link.ld
381
	find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \;
374
	find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \;
382
	for arch in arch/* ; do \
375
	for arch in arch/* ; do \
383
	    [ -e $$arch/_link.ld ] && rm $$arch/_link.ld 2>/dev/null ; \
376
	    [ -e $$arch/_link.ld ] && rm $$arch/_link.ld 2>/dev/null ; \